Shader definition issue or me not understanding ?
- 
 It seems incrementreturns back to0.0at each iteration, hence not incrementing...Is this a normal behaviour? (entire code executed in loop or only main())
 Is there a way to watch a variable in a shader?float increment = 0.0; void main() { increment += 0.1; // Does not seem to increment (at least more than once) }
- 
 I have just tested online and effectively it does not increment... 
 The thing is that I want to increment a variable but not rely on iTime for other reasons.EDIT: well I think I will just use a uniformin the end and increment from Hise script...
- 
 @ustk the mainfunction of a fragment shader is stateless because it will be executed simultaneously for every pixel on the GPU which is an absurd fact to wrap your head around at the beginning.

