You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find information of what uniforms are available and what they do. It would be useful to provide a short explanation of each uniform.
From what I found, these uniforms are available:
float time; // Seconds since start.
vec2 mouse; // Mouse position, X and Y 0 to 1, X starts left, Y starts bottom.
vec2 resolution; // Resolution.
sampler2D backbuffer // Texture storing previous rendered image.
vec2 surfaceSize; // ???
??? texture; // ???
What's the function of surfaceSize and texture by the way?
And I know of one varying
varying vec2 surfacePosition;
But I don't know what it does.
The text was updated successfully, but these errors were encountered:
Agreed. It's not intuitive to me what's available either.
A simple one is what model/geometry is in gl_FragCoord? For experienced folks, some of this is obvious, but for newbies, it's not so obvious and this seems like a fantastic site to learn on.
I couldn't find information of what uniforms are available and what they do. It would be useful to provide a short explanation of each uniform.
From what I found, these uniforms are available:
What's the function of surfaceSize and texture by the way?
And I know of one varying
But I don't know what it does.
The text was updated successfully, but these errors were encountered: