Skip to content

Commit

Permalink
Merge pull request #5078 from AnalyticalGraphicsInc/ground-primitive-2D
Browse files Browse the repository at this point in the history
Fix GroundPrimitive in 2D
  • Loading branch information
Hannah authored Mar 7, 2017
2 parents 798283e + ea44fa1 commit e218c91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Shaders/ShadowVolumeVS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e218c91

Please sign in to comment.