displacementmap_vertex top-level property

String displacementmap_vertex
getter/setter pair

Implementation

String displacementmap_vertex = """
#ifdef USE_DISPLACEMENTMAP

	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );

#endif
""";