SpotLigth: the cosine of the inner and outer angle of a spotlight are packed in the same float to send it to the shader (to save some varryings). This imples that their precision is no more than 0.001. This was producing wrong lighting for very close angles because the cosine were equals.
There is now a check that ensure that the outer cos is lower than the inner cos. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10648 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
4c4e235e61
commit
130ddbdfd2
Loading…
Reference in new issue