|
@@ -367,8 +367,7 @@ class Renderer extends h3d.scene.Renderer {
|
|
if( env != null ) {
|
|
if( env != null ) {
|
|
pbrIndirect.cameraPosition.load(ctx.camera.pos);
|
|
pbrIndirect.cameraPosition.load(ctx.camera.pos);
|
|
pbrIndirect.emissivePower = props.emissive * props.emissive;
|
|
pbrIndirect.emissivePower = props.emissive * props.emissive;
|
|
- var rot = hxd.Math.degToRad(env.rot);
|
|
|
|
- pbrIndirect.irrRotation.set(Math.cos(rot), Math.sin(rot));
|
|
|
|
|
|
+ pbrIndirect.irrRotation.set(Math.cos(env.rotation), Math.sin(env.rotation));
|
|
pbrIndirect.irrPower = env.power * env.power;
|
|
pbrIndirect.irrPower = env.power * env.power;
|
|
pbrIndirect.irrLut = env.lut;
|
|
pbrIndirect.irrLut = env.lut;
|
|
pbrIndirect.irrDiffuse = env.diffuse;
|
|
pbrIndirect.irrDiffuse = env.diffuse;
|