Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
2 answers
4k views

How can I show the GLSL code generate by node?

Sorry for my english. how can i show the code generate by the node and can i write my own node Element? Can i add a uniform float var? in order to comunicate with the fragment shaders?
ruhtra's user avatar
  • 31
2 votes
1 answer
1k views

Is it possible to set the vertex shader without overriding the fragment shader?

I'd like to make vertices of an object randomly move around a little. To do this, I created a vertex shader. I assigned the vertex shader to the object's material with ...
gandalf3's user avatar
  • 158k
2 votes
1 answer
794 views

Materials modified with GLSL in bge, return to original material (using only python)

I'm a noob and probably this is a completely silly question... Started using BGE two days ago... I'm using GLSL to visualize a distance field while running in standalone player. I'm doing it using ...
Matteo Ragni's user avatar
4 votes
1 answer
7k views

How to access the window width/height inside a GLSL Shader?

Inside a Python script defining a GLSL shader used on the game engine, how do I access the width/height of the game window?
Dokkat's user avatar
  • 275
4 votes
1 answer
2k views

Can I access the render screen size in a custom filter 2D in the game engine?

I am using Blender Game Engines Filter 2D to make a post effect with GLSL. In an fragment shader applied on the frame buffer, I want to access the size in pixels of that buffer in GLSL. ...
lubosz's user avatar
  • 231