Skip to content

Commit

Permalink
additions
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanKoundal committed Oct 23, 2023
1 parent 25a711b commit c04d916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgl/shaders/lighting.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ vec3 calculateImageDiffuse( vec3 vNormal, vec3 vViewPosition ){
vec3 R = reflect(lightDirection, worldNormal);
// use worldNormal instead of R
vec2 newTexCoor = mapTextureToNormal( R );
vec4 texture = texture2D( environmentMapDiffused, newTexCoor );
vec4 texture = TEXTURE( environmentMapDiffused, newTexCoor );
return texture.xyz;
}

Expand Down

0 comments on commit c04d916

Please sign in to comment.