cocos2d/cocos2d-swift — pull request #1006 by thayerandrews (2014-09-29 19:54:41+00:00)
Title: CCEffects - Fix reflection map aliasing and add first pass at effect unit tests

- Apply a smooth step function to the fresnel reflectance term as N-dot-V approaches 0.0 (aka the normal vector approaches a 90 degree angle to the view vector). This conceals the aliasing of the reflection map at silhouette edges in the normal map. If this proves insufficient another fix may be to enable mipmaps on the reflection map and fool with the lod bias based on the value of N-dot-V.
- Also add a first pass at effect unit tests. So far these only test the node to node transform code that was introduced to fix problems with effects and render textures.