auto-git:

[change] src/document/scene-document-validation.ts
This commit is contained in:
2026-04-22 15:49:22 +02:00
parent 4b14d5eb45
commit 6bc3b355b2

View File

@@ -352,6 +352,17 @@ function validateWorldShaderSkySettings(
);
}
if (!isFiniteNumberInRange(settings.horizonHeight, -1, 1)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-world-shader-sky-horizon-height",
"World shader sky horizon height must stay between -1 and 1.",
`${path}.horizonHeight`
)
);
}
if (!isPositiveFiniteNumber(settings.celestial.sunDiscSizeDegrees)) {
diagnostics.push(
createDiagnostic(