8 lines
193 B
Plaintext
8 lines
193 B
Plaintext
|
#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
|