feat(web): add view layer aov authoring
This commit is contained in:
@@ -810,6 +810,17 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
|
||||
if (properties.alphaThreshold !== undefined && !boundedNumber(properties.alphaThreshold, 0, 1)) throw report("RENDER_PROPERTY_INVALID", "Scene alphaThreshold must be between zero and one");
|
||||
return;
|
||||
}
|
||||
case "setSceneViewLayerAOVs": {
|
||||
const scene = currentSnapshot?.scenes.find((candidate) => candidate.id === payload.dataId);
|
||||
if (!scene || typeof payload.layerName !== "string" || payload.layerName.length === 0 || !Array.isArray(payload.aovs) || payload.aovs.length > 64) throw report("RENDER_PROPERTY_INVALID", "Scene ViewLayer AOV target is invalid");
|
||||
const names = new Set<string>();
|
||||
for (const aov of payload.aovs) {
|
||||
if (!aov || typeof aov.name !== "string" || aov.name.length === 0 || new TextEncoder().encode(aov.name).byteLength > 63 || names.has(aov.name) || aov.name.includes(".")) throw report("RENDER_PROPERTY_INVALID", "Scene AOV names must be unique, bounded and dot-free");
|
||||
if (aov.type !== 0 && aov.type !== 1) throw report("RENDER_PROPERTY_INVALID", "Scene AOV type is unsupported");
|
||||
names.add(aov.name);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case "setGeometryNodeGraph": {
|
||||
const snapshot = currentSnapshot;
|
||||
const availableResourceIds = new Set([
|
||||
|
||||
Reference in New Issue
Block a user