fireball/lib/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl

6 lines
159 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
#ifdef USE_DISPLACEMENTMAP
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );
#endif