From 7ed519c8484b86b01c1848343e69aeedde704cf3 Mon Sep 17 00:00:00 2001 From: Sanjeet Suhag Date: Fri, 22 Apr 2022 11:09:24 -0400 Subject: [PATCH] Fix inconsistency in fragment shader light source for sky atmosphere --- Source/Shaders/SkyAtmosphereFS.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Shaders/SkyAtmosphereFS.glsl b/Source/Shaders/SkyAtmosphereFS.glsl index c15928c29e71..0d52fa8666bc 100644 --- a/Source/Shaders/SkyAtmosphereFS.glsl +++ b/Source/Shaders/SkyAtmosphereFS.glsl @@ -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;