Browse Source

Remove alloc on capsule light.

clementlandrin 1 year ago
parent
commit
daea2d886f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/scene/pbr/CapsuleLight.hx

+ 1 - 1
h3d/scene/pbr/CapsuleLight.hx

@@ -70,7 +70,7 @@ class CapsuleLight extends Light {
 		pbr.radius = radius;
 		pbr.radius = radius;
 		pbr.halfLength = length * 0.5;
 		pbr.halfLength = length * 0.5;
 		pbr.occlusionFactor = occlusionFactor;
 		pbr.occlusionFactor = occlusionFactor;
-		pbr.left = absPos.front();
+		pbr.left.load(absPos.front());
 		var d = range - radius;
 		var d = range - radius;
 		pbr.invRange4 = 1 / (d * d * d * d);
 		pbr.invRange4 = 1 / (d * d * d * d);
 	}
 	}