diff --git a/Source/Shaders/BillboardCollectionFS.glsl b/Source/Shaders/BillboardCollectionFS.glsl index bb734972548d..cd2fae7b6368 100644 --- a/Source/Shaders/BillboardCollectionFS.glsl +++ b/Source/Shaders/BillboardCollectionFS.glsl @@ -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;