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

6 lines
149 B
GLSL

#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )
vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );
#endif