web3d / node_modules /three /src /renderers /shaders /ShaderLib /background_frag.glsl.js
julien-c's picture
julien-c HF Staff
do not gitignore the builds
6cd9596
Raw
History Blame Contribute Delete
243 Bytes
export default /* glsl */`
uniform sampler2D t2D;
varying vec2 vUv;
void main() {
vec4 texColor = texture2D( t2D, vUv );
gl_FragColor = mapTexelToLinear( texColor );
#include <tonemapping_fragment>
#include <encodings_fragment>
}
`;