shader error

Minor issues with the Ogre API that can be trivial to fix
User avatar
madmarx
OGRE Expert User
OGRE Expert User
Posts: 1671
Joined: Mon Jan 21, 2008 10:26 pm
x 50

shader error

Post by madmarx »

In the bump mapping section media, dot(bumpVec, ...) is used directly in the cg shader.
It should have a

Code: Select all

saturate(dot(bumpVec,...))
, to avoid negative values (or a

Code: Select all

max(0,dot(bumpVec,...))
).
Tutorials + Ogre searchable API + more for Ogre1.7 : http://sourceforge.net/projects/so3dtools/
Corresponding thread : http://www.ogre3d.org/forums/viewtopic. ... 93&start=0