Newer
Older
HuangJiPC / public / static / three / src / renderers / shaders / ShaderChunk / worldpos_vertex.glsl.js
@zhangdeliang zhangdeliang on 21 Jun 357 bytes update
export default /* glsl */`
#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0

	vec4 worldPosition = vec4( transformed, 1.0 );

	#ifdef USE_INSTANCING

		worldPosition = instanceMatrix * worldPosition;

	#endif

	worldPosition = modelMatrix * worldPosition;

#endif
`;