We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49dbfc8 commit a04e4feCopy full SHA for a04e4fe
1 file changed
hrt/prefab/fx/FX.hx
@@ -95,7 +95,7 @@ class FXAnimation extends h3d.scene.Object {
95
if( enableCulling ) {
96
culled = false;
97
var scale = getAbsPos().getScale(tempVec);
98
- var uniScale = hxd.Math.max(hxd.Math.max(scale.x, scale.y), scale.z);
+ var uniScale = hxd.Math.abs(hxd.Math.abs(hxd.Math.max(hxd.Math.max(scale.x, scale.y), scale.z)));
99
var pos = getAbsPos().getPosition(tempVec);
100
tmpSphere.load(pos.x, pos.y, pos.z, cullingRadius * uniScale);
101
if(!ctx.camera.frustum.hasSphere(tmpSphere))
0 commit comments