UNPKG

three

Version:

JavaScript 3D library

10 lines (7 loc) 223 B
export default /* glsl */` #ifdef USE_MAP vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; vec4 mapTexel = texture2D( map, uv ); diffuseColor *= mapTexelToLinear( mapTexel ); #endif `;