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