|
|

楼主 |
发表于 2008-8-1 09:29:00
|
显示全部楼层
Re:求助:实体缩放后为什么没有光泽了
这里真的是太冷了!
不过我已经找到答案了。
在OgreSDK的帮助文档中是这样说的
------------------------------------------------------------------
|void Ogre::Entity::setNormaliseNormals ( bool normalise ) |
------------------------------------------------------------------
If set to true, this forces normals of this entity to be normalised dynamically by the hardware.
Remarks:
This option can be used to prevent lighting variations when scaling an Entity using a SceneNode - normally because this scaling is hardware based, the normals get scaled too which causes lighting to become inconsistent. However, this has an overhead so only do this if you really need to.
就是说在Scale以后表面对光的反映会受到影响。所以在Scale以后要调用Entity::setNormaliseNormals(true)
来重新计算表面对光的反映。也就是计算平面的Normal
|
|