|
@@ -5,6 +5,12 @@ export default /* glsl */`
|
|
|
|
|
|
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( PHONG )
|
|
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( PHONG )
|
|
|
|
|
|
|
|
+ #define ENV_WORLDPOS
|
|
|
|
+
|
|
|
|
+ #endif
|
|
|
|
+
|
|
|
|
+ #ifdef ENV_WORLDPOS
|
|
|
|
+
|
|
varying vec3 vWorldPosition;
|
|
varying vec3 vWorldPosition;
|
|
uniform float refractionRatio;
|
|
uniform float refractionRatio;
|
|
#else
|
|
#else
|