Nicolas Cannasse 4 年之前
父節點
當前提交
21d61f68cd
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
 			}