feat(web): add scene hair display authoring
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-29 16:59:08 +08:00
parent 05f9bf1433
commit ee1dd8213f
47 changed files with 1910 additions and 38 deletions

View File

@@ -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([