Skip to content

Commit

Permalink
Merge pull request #11508 from NNskelly/patch-3
Browse files Browse the repository at this point in the history
Update envmap_fragment.glsl
  • Loading branch information
mrdoob authored Jun 14, 2017
2 parents 81661b3 + a40bb34 commit e60ad0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/shaders/ShaderChunk/envmap_fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#elif defined( ENVMAP_TYPE_EQUIREC )

vec2 sampleUV;
sampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );
sampleUV.y = asin( flipNormal * reflectVec.y) * RECIPROCAL_PI + 0.5;
sampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;
vec4 envColor = texture2D( envMap, sampleUV );

Expand Down

0 comments on commit e60ad0b

Please sign in to comment.