Newer
Older
HuangJiPC / public / static / three / src / renderers / shaders / ShaderChunk / output_fragment.glsl.js
@zhangdeliang zhangdeliang on 21 Jun 261 bytes update
export default /* glsl */`
#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif

// https://github.com/mrdoob/three.js/pull/22425
#ifdef USE_TRANSMISSION
diffuseColor.a *= material.transmissionAlpha + 0.1;
#endif

gl_FragColor = vec4( outgoingLight, diffuseColor.a );
`;