julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame
385 Bytes
export default /* glsl */`
uniform samplerCube tCube;
uniform float tFlip;
uniform float opacity;
varying vec3 vWorldDirection;
void main() {
vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
gl_FragColor = mapTexelToLinear( texColor );
gl_FragColor.a *= opacity;
#include <tonemapping_fragment>
#include <encodings_fragment>
}
`;