GLSL-handle parameters

Started by
2 comments, last by tiankangyan 15 years, 8 months ago
If i want to pass two parameters from the source code to the fragment shader program,what should i do? Thanks...
Advertisement
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..
Quote:Original post by HuntsMan
If you mean uniform variables, you need to read http://www.lighthouse3d.com/opengl/glsl/index.php?ogluniform


I use Uniform Variables,it works! It's so easy!Thank you very much.

This topic is closed to new replies.

Advertisement