@needle-tools/three
Version:
JavaScript 3D library
22 lines (14 loc) • 460 B
JavaScript
export default /* glsl */`
vec4 sampledDiffuseColor = texture2D( map, vMapUv, mipmapBias );
vec4 sampledDiffuseColor = texture2D( map, vMapUv );
// use inline sRGB decode until browsers properly support SRGB8_ALPHA8 with video textures (#26516)
sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );
diffuseColor *= sampledDiffuseColor;
`;