cube_frag.glsl.js 365 B

12345678910111213141516171819202122
  1. export default /* glsl */`
  2. #include <envmap_common_pars_fragment>
  3. uniform float opacity;
  4. varying vec3 vWorldDirection;
  5. #include <cube_uv_reflection_fragment>
  6. void main() {
  7. vec3 vReflect = vWorldDirection;
  8. #include <envmap_fragment>
  9. gl_FragColor = envColor;
  10. gl_FragColor.a *= opacity;
  11. #include <tonemapping_fragment>
  12. #include <encodings_fragment>
  13. }
  14. `;