Add resolveBoxVolumeRenderPaths function in advanced-rendering.js and advanced-rendering.ts

This commit is contained in:
2026-04-06 08:21:05 +02:00
parent 7167b328af
commit c5d45fe51d
2 changed files with 32 additions and 0 deletions

View File

@@ -1,5 +1,17 @@
import { BasicShadowMap, DirectionalLight, HalfFloatType, Mesh, NoToneMapping, PCFShadowMap, PCFSoftShadowMap, PointLight, SpotLight, UnsignedByteType } from "three";
import { BloomEffect, DepthOfFieldEffect, EffectComposer, EffectPass, RenderPass, SMAAEffect, SMAAPreset, SSAOEffect, ToneMappingEffect, ToneMappingMode } from "postprocessing";
export function resolveBoxVolumeRenderPaths(settings) {
if (!settings.enabled) {
return {
fog: "performance",
water: "performance"
};
}
return {
fog: settings.fogPath,
water: settings.waterPath
};
}
export function getAdvancedRenderingShadowMapType(shadowType) {
switch (shadowType) {
case "basic":