diff --git a/Source/Shaders/GlobeFS.glsl b/Source/Shaders/GlobeFS.glsl index 6f4a10e40d56..475f137619a6 100644 --- a/Source/Shaders/GlobeFS.glsl +++ b/Source/Shaders/GlobeFS.glsl @@ -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 diff --git a/Source/Shaders/GlobeVS.glsl b/Source/Shaders/GlobeVS.glsl index 132cd61512a7..e233638f8008 100644 --- a/Source/Shaders/GlobeVS.glsl +++ b/Source/Shaders/GlobeVS.glsl @@ -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 @@ -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