Validate advanced rendering god rays source size
This commit is contained in:
@@ -1329,6 +1329,17 @@ function validateWorldSettings(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isPositiveFiniteNumber(advancedRendering.godRays.sourceSize)) {
|
||||||
|
diagnostics.push(
|
||||||
|
createDiagnostic(
|
||||||
|
"error",
|
||||||
|
"invalid-advanced-rendering-god-rays-source-size",
|
||||||
|
"Advanced rendering god rays source size must be a positive finite number.",
|
||||||
|
"world.advancedRendering.godRays.sourceSize"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isPositiveInteger(advancedRendering.godRays.samples)) {
|
if (!isPositiveInteger(advancedRendering.godRays.samples)) {
|
||||||
diagnostics.push(
|
diagnostics.push(
|
||||||
createDiagnostic(
|
createDiagnostic(
|
||||||
|
|||||||
Reference in New Issue
Block a user