world.ts 0.3.8 → 0.3.9

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.
package/dist/index.js CHANGED
@@ -911,7 +911,7 @@ void main(void) {
911
911
  float pixel_size = abs(projected_current.w) / screen.y;
912
912
  float scale = clamp(width / CIRCUMFERENCE * -projection[1][1], min_width_pixels * pixel_size, max_width_pixels * pixel_size) ;
913
913
 
914
- gl_Position = projected_current + 0.5 * vec4(scale * offset, 0.f, 0.f);
914
+ gl_Position = projected_current + 0.5 * vec4(scale * offset / screen * screen.y, 0.f, 0.f);
915
915
 
916
916
  color_out = color;
917
917
  distance_out = distance;