Advance M8-M11 parity workflows
This commit is contained in:
@@ -115,6 +115,13 @@ function assertEdited(scene) {
|
||||
assert.equal(light.useTemperature, true);
|
||||
close(light.temperature, 5000, "light temperature");
|
||||
assert.deepEqual(light.color, [0.25, 0.5, 0.75]);
|
||||
close(light.radius, 0.3, "light radius");
|
||||
close(light.spotAngle, 1.1, "light spot angle");
|
||||
close(light.spotBlend, 0.25, "light spot blend");
|
||||
close(light.areaSize, 3, "light area size");
|
||||
close(light.areaSizeY, 2, "light area size y");
|
||||
close(light.areaSpread, 2.4, "light area spread");
|
||||
close(light.sunAngle, 0.1, "light sun angle");
|
||||
assert.equal(world.mist.enabled, true);
|
||||
assert.equal(world.mist.type, "LINEAR");
|
||||
close(world.mist.start, 2, "mist start");
|
||||
@@ -151,7 +158,8 @@ cameraEdited = snapshot(engine, handle);
|
||||
assert.equal(cameraEdited.cameras.find((item) => item.id === before.camera.id).projection, "ORTHOGRAPHIC");
|
||||
command(engine, handle, { type: "setLightProperties", dataId: before.light.id, properties: {
|
||||
color: [0.25, 0.5, 0.75], energy: 400, exposure: 1, castsShadow: false,
|
||||
temperature: 5000, useTemperature: true,
|
||||
temperature: 5000, useTemperature: true, radius: 0.3, spotAngle: 1.1, spotBlend: 0.25,
|
||||
areaSize: 3, areaSizeY: 2, areaSpread: 2.4, sunAngle: 0.1,
|
||||
} });
|
||||
assert.equal(snapshot(engine, handle).scenes.find((item) => item.id === before.definition.id).colorManagement.whiteBalanceStatus, "BLOCKED");
|
||||
command(engine, handle, { type: "setWorldProperties", dataId: before.world.id, properties: {
|
||||
|
||||
Reference in New Issue
Block a user