Material Quiz
-
uchickenbutt
- Kobold
- Posts: 27
- Joined: Mon Sep 11, 2006 9:28 am
Material Quiz
How do .material file receive custom data? For example, I would like to send mouse position to .cg through .material file.
- Kojack
- OGRE Moderator

- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 538
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.
It shows how to send custom data to a shader.