Just playing with materials made in code. So far, so good
There are some things I am unsure of how to translate in to code.
How would I do this programmatically?
Code: Select all
env_map spherical
Thanks in advance.
Code: Select all
env_map spherical
Code: Select all
TextureUnitState* textureUnit=material->getTechnique(0)->getPass(0)->getTextureUnitState(tex);
textureUnit->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);
Yep, this is intended. env_map simulates a reflected environment, so just like a mirrored ball, no matter how you rotate it the same thing is reflected.lonewolff wrote: Maybe this is by design with this particular call, being an 'environment' call.