Newer
Older
HuangJiPC / public / static / three / src / renderers / shaders / ShaderChunk / envmap_pars_vertex.glsl.js
@zhangdeliang zhangdeliang on 21 Jun 320 bytes update
export default /* glsl */`
#ifdef USE_ENVMAP

	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )

		#define ENV_WORLDPOS

	#endif

	#ifdef ENV_WORLDPOS
		
		varying vec3 vWorldPosition;

	#else

		varying vec3 vReflect;
		uniform float refractionRatio;

	#endif

#endif
`;