Skip to content

Commit

Permalink
fix labels [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Jun 12, 2018
1 parent aca2c56 commit e9f7d3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/Shaders/BillboardCollectionFS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ float getGlobeDepth(vec2 adjustedST, vec2 depthLookupST)
vec2 a = (v_imageSize.xy * (depthLookupST - adjustedST));
vec2 Dd = v_dimensions - v_imageSize;
vec2 px = v_translate.xy;
if (px != vec2(0.0))
{
px += v_dimensions * v_originTextureCoordinate;
}

px += v_dimensions * v_originTextureCoordinate * vec2(0, -1);

vec2 st = ((a - px + (depthLookupST * Dd)) + gl_FragCoord.xy) / czm_viewport.zw;

Expand Down

0 comments on commit e9f7d3f

Please sign in to comment.