Skip to content

Commit

Permalink
changed angles in lighting.glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanKoundal committed Oct 31, 2023
1 parent 94e639b commit f2c0f1e
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 @@ -101,7 +101,7 @@ vec2 mapTextureToNormal( vec3 v ){
theta = theta / (2.0 * 3.14159);
phi = phi / 3.14159 ;

vec2 angles = vec2( fract(theta + 0.75), 1.0 - phi );
vec2 angles = vec2( fract(theta + 0.25), 1.0 - phi );
return angles;
}

Expand Down

0 comments on commit f2c0f1e

Please sign in to comment.