GLSL-handle parameters
If i want to pass two parameters from the source code to the fragment shader program,what should i do?
Thanks...
If you mean uniform variables, you need to read http://www.lighthouse3d.com/opengl/glsl/index.php?ogluniform
Quote:Original post by HuntsMan
If you mean uniform variables, you need to read http://www.lighthouse3d.com/opengl/glsl/index.php?ogluniform
Thank you!
I have read that before.What i want are two adjustable parameters,they will be modified in the source code sometimes.
But could you give me more details?
i am very grateful if you can give me a example,and forgive my pool English..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement