feat(web): add scene motion blur authoring
This commit is contained in:
@@ -734,6 +734,15 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
|
||||
if (properties.exrCodec !== undefined && (!Number.isSafeInteger(properties.exrCodec) || properties.exrCodec < 0 || properties.exrCodec > 10)) throw report("RENDER_PROPERTY_INVALID", "Scene exrCodec is outside the bounded range");
|
||||
return;
|
||||
}
|
||||
case "setSceneMotionBlur": {
|
||||
const scene = currentSnapshot?.scenes.find((candidate) => candidate.id === payload.dataId);
|
||||
const properties = payload.properties;
|
||||
if (!scene || !validPropertyKeys(properties, ["enabled", "shutter", "position"])) throw report("RENDER_PROPERTY_INVALID", "Scene motion blur target or properties are invalid");
|
||||
if (properties.enabled !== undefined && typeof properties.enabled !== "boolean") throw report("RENDER_PROPERTY_INVALID", "Scene motion blur enabled must be boolean");
|
||||
if (properties.shutter !== undefined && !boundedNumber(properties.shutter, 0, 10)) throw report("RENDER_PROPERTY_INVALID", "Scene motion blur shutter is outside the bounded range");
|
||||
if (properties.position !== undefined && ![0, 1, 2].includes(properties.position)) throw report("RENDER_PROPERTY_INVALID", "Scene motion blur position is unsupported");
|
||||
return;
|
||||
}
|
||||
case "setGeometryNodeGraph": {
|
||||
const snapshot = currentSnapshot;
|
||||
const availableResourceIds = new Set([
|
||||
|
||||
Reference in New Issue
Block a user