Material Quiz

Problems building or running the engine, queries about how to use features etc.
Post Reply
uchickenbutt
Kobold
Posts: 27
Joined: Mon Sep 11, 2006 9:28 am

Material Quiz

Post by uchickenbutt »

How do .material file receive custom data? For example, I would like to send mouse position to .cg through .material file.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Post 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.
Post Reply