Skip to content

Commit

Permalink
Fix inconsistency in fragment shader light source for sky atmosphere
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeetsuhag committed Apr 22, 2022
1 parent e157cf5 commit 7ed519c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shaders/SkyAtmosphereFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ varying float v_translucent;

void main (void)
{
vec3 lightDirection = getLightDirection(czm_viewerPositionWC);
vec3 lightDirection = getLightDirection(v_outerPositionWC);

vec3 mieColor;
vec3 rayleighColor;
Expand Down

0 comments on commit 7ed519c

Please sign in to comment.