three
Version:
JavaScript 3D library
18 lines (10 loc) • 377 B
JavaScript
export default /* glsl */`
vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
// use inline sRGB decode until browsers properly support SRGB8_ALPHA8 with video textures (#26516)
emissiveColor = sRGBTransferEOTF( emissiveColor );
totalEmissiveRadiance *= emissiveColor.rgb;
`;