Uniform questions
by Anthony Rosenbaum · in Torque Game Engine Advanced · 06/25/2004 (4:05 am) · 1 replies
Should specific shader variables like frequency for a noise shader be bound to a TexCoord#, in order to be passed thru the pipeline? Should uniform variables be initalized in the customMaterial Datablock? How would one bind other variables from the engine as a possible uniform variables? Would it be possible to use the gui editor to develop shader tools to dynamically change the variables?
So I guess the important question is where are the existing variables being bound as uniform variables?
So I guess the important question is where are the existing variables being bound as uniform variables?
About the author
Associate Kyle Carter
If you're talking about a per vertex property, then I would say using a texcoord would be a good idea. Unfortunately, off the top of my head I'm not sure Torque supports that through the DTS or interior pipelines. Obviously, you can always add the data for your own renderer.
You can do a lot with the stuff that's there. Check the .h file in the shaders subdir for a list of the constants currently used.