envmap_pars_vertex.glsl.js 230 B

123456789101112131415
  1. export default `
  2. #ifdef USE_ENVMAP
  3. #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )
  4. varying vec3 vWorldPosition;
  5. #else
  6. varying vec3 vReflect;
  7. uniform float refractionRatio;
  8. #endif
  9. #endif
  10. `;