12345678910111213141516171819202122 |
- export default /* glsl */`
- #include <envmap_common_pars_fragment>
- uniform float opacity;
- varying vec3 vWorldDirection;
- #include <cube_uv_reflection_fragment>
- void main() {
- vec3 vReflect = vWorldDirection;
- #include <envmap_fragment>
- gl_FragColor = envColor;
- gl_FragColor.a *= opacity;
- #include <tonemapping_fragment>
- #include <encodings_fragment>
- }
- `;
|