Page 1 of 1

Material Quiz

Posted: Wed May 07, 2008 12:10 pm
by uchickenbutt
How do .material file receive custom data? For example, I would like to send mouse position to .cg through .material file.

Posted: Wed May 07, 2008 4:53 pm
by Kojack
Take a look at the "Programmatic control of color parameter" section of http://www.ogre3d.org/wiki/index.php/Ge ... _Materials
It shows how to send custom data to a shader.