@openglobus/og 0.13.3 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,6 +92,14 @@ export function billboardPicking() {
92
92
  vec4 posRTE = viewMatrixRTE * vec4(highDiff + lowDiff, 1.0);
93
93
  vec4 projPos = projectionMatrix * posRTE;
94
94
 
95
+ float camSlope = dot(vec3(viewMatrix[0][2], viewMatrix[1][2], viewMatrix[2][2]), normalize(cameraPos));
96
+ if(camSlope > 0.5) {
97
+ float dist = dot(look, normalize(cameraPos));
98
+ projPos.z += dist * 0.02;
99
+ }else{
100
+ projPos.z += -(abs(projPos.z)) * 0.002;
101
+ }
102
+
95
103
  projPos.z += depthOffset + a_offset.z;
96
104
 
97
105
  vec2 screenPos = project(projPos);
@@ -91,6 +91,7 @@ export class GeoObject {
91
91
  setPitch(pitch: any): void;
92
92
  setRoll(roll: any): void;
93
93
  setScale(scale: any): void;
94
+ getScale(): any;
94
95
  /**
95
96
  * Removes geo object from handler.
96
97
  * @public