Lights in ogre
-
sunbox
- Gnoblar
- Posts: 13
- Joined: Thu Sep 08, 2005 12:00 am
Lights in ogre
Does ogre's lights supports map projection ?
- Alexis
- Halfling
- Posts: 59
- Joined: Fri Jul 22, 2005 3:35 pm
- Location: Ukraine
- x 1
You can attach a texture to a frustum and use it as a projection texture.
Now "Caustic" texture projected by m_caustic_frustum.
Code: Select all
MaterialPtr mat_caust = MaterialManager::getSingleton().getByName("Caustic");
TextureUnitState* tus_caust = mat_caust->getTechnique(0)->getPass(0)->getTextureUnitState(0);
tus_caust->setProjectiveTexturing(true, m_caustic_frustum);