We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a085d commit 64e17d3Copy full SHA for 64e17d3
packages/engine/Source/Shaders/Voxels/IntersectEllipsoid.glsl
@@ -155,7 +155,7 @@ float getLatitudeConeShift(in float sinLatitude) {
155
// Find prime vertical radius of curvature:
156
// the distance along the ellipsoid normal to the intersection with the z-axis
157
float x2 = u_eccentricitySquared * sinLatitude * sinLatitude;
158
- float primeVerticalRadius = inversesqrt(1.0 - x2);
+ float primeVerticalRadius = u_ellipsoidRadii.x * inversesqrt(1.0 - x2);
159
160
// Compute a shift from the origin to the intersection of the cone with the z-axis
161
return primeVerticalRadius * u_eccentricitySquared * sinLatitude;
0 commit comments