Nicolas Cannasse 4 years ago
parent
commit
21d61f68cd
1 changed files with 2 additions and 2 deletions
  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;
 			}