Skip to content

Commit

Permalink
Reorder ifdef's
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed May 23, 2020
1 parent a20fdd6 commit 5c47b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Shaders/GlobeFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ varying float v_slope;
varying float v_aspect;
#endif

#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(TRANSLUCENT) || defined(UNDERGROUND_COLOR)
#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)
varying float v_distance;
#endif

Expand Down
4 changes: 2 additions & 2 deletions Source/Shaders/GlobeVS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ varying float v_aspect;
varying float v_height;
#endif

#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(TRANSLUCENT) || defined(UNDERGROUND_COLOR)
#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)
varying float v_distance;
#endif

Expand Down Expand Up @@ -177,7 +177,7 @@ void main()
v_fogRayleighColor = atmosFogColor.rayleigh;
#endif

#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(TRANSLUCENT) || defined(UNDERGROUND_COLOR)
#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)
v_distance = length((czm_modelView3D * vec4(position3DWC, 1.0)).xyz);
#endif

Expand Down

0 comments on commit 5c47b77

Please sign in to comment.