fireball/lib/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl
2018-12-25 17:29:22 +03:30

6 lines
159 B
GLSL

#ifdef USE_DISPLACEMENTMAP
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );
#endif