UNPKG

@needle-tools/three

Version:
22 lines (14 loc) 460 B
export default /* glsl */` #ifdef USE_MAP #ifdef USE_MIPMAP_BIAS vec4 sampledDiffuseColor = texture2D( map, vMapUv, mipmapBias ); #else vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #endif #ifdef DECODE_VIDEO_TEXTURE // use inline sRGB decode until browsers properly support SRGB8_ALPHA8 with video textures (#26516) sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); #endif diffuseColor *= sampledDiffuseColor; #endif `;