6 lines
159 B
GLSL
6 lines
159 B
GLSL
#ifdef USE_DISPLACEMENTMAP
|
|
|
|
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );
|
|
|
|
#endif
|