From ea44fa11abb2b74c58b333c9e076293b630366c1 Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Mon, 6 Mar 2017 17:43:37 -0500 Subject: [PATCH] Do not extrude volumes further in 2D or columbus view. --- Source/Shaders/ShadowVolumeVS.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Shaders/ShadowVolumeVS.glsl b/Source/Shaders/ShadowVolumeVS.glsl index 888eca6500dd..809cf0be80a3 100644 --- a/Source/Shaders/ShadowVolumeVS.glsl +++ b/Source/Shaders/ShadowVolumeVS.glsl @@ -23,6 +23,7 @@ void main() vec4 position = czm_computePosition(); float delta = min(u_globeMinimumAltitude, czm_geometricToleranceOverMeter * length(position.xyz)); + delta *= czm_sceneMode == czm_sceneMode3D ? 1.0 : 0.0; //extrudeDirection is zero for the top layer position = position + vec4(extrudeDirection * delta, 0.0);