Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
21d61f68cd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      hrt/prefab/vlm/LightProbe.hx

+ 2 - 2
hrt/prefab/vlm/LightProbe.hx

@@ -362,7 +362,7 @@ class LightProbe extends Object3D {
 					lpo.env.source.waitLoad( () ->  s.source = lpo.env.diffuse );
 				else
 					s.source = lpo.env.diffuse;
-				s.irrRotation.set(Math.cos(lpo.env.rot), Math.sin(lpo.env.rot));
+				s.irrRotation.set(Math.cos(lpo.env.rotation), Math.sin(lpo.env.rotation));
 				s.power = lpo.env.power * lpo.env.power;
 			}
 
@@ -377,7 +377,7 @@ class LightProbe extends Object3D {
 					lpo.env.source.waitLoad( () -> s.source = lpo.env.specular );
 				else
 					s.source = lpo.env.specular;
-				s.irrRotation.set(Math.cos(lpo.env.rot), Math.sin(lpo.env.rot));
+				s.irrRotation.set(Math.cos(lpo.env.rotation), Math.sin(lpo.env.rotation));
 				s.power = lpo.env.power * lpo.env.power;
 			}