Update App.tsx and advanced-rendering.ts with new rendering settings

This commit is contained in:
2026-04-02 20:52:43 +02:00
parent 8c4d10d752
commit 37b2dad374
2 changed files with 10 additions and 5 deletions

View File

@@ -79,6 +79,16 @@ import {
type FaceUvState
} from "../document/brushes";
import { areWorldSettingsEqual, changeWorldBackgroundMode, type WorldBackgroundMode, type WorldSettings } from "../document/scene-document";
import {
ADVANCED_RENDERING_SHADOW_MAP_SIZES,
ADVANCED_RENDERING_SHADOW_TYPES,
ADVANCED_RENDERING_TONE_MAPPING_MODES,
cloneWorldSettings,
type AdvancedRenderingSettings,
type AdvancedRenderingShadowMapSize,
type AdvancedRenderingShadowType,
type AdvancedRenderingToneMappingMode
} from "../document/world-settings";
import { formatSceneDiagnosticSummary, validateSceneDocument } from "../document/scene-document-validation";
import { getBrowserProjectAssetStorageAccess, type ProjectAssetStorage } from "../assets/project-asset-storage";
import { DEFAULT_GRID_SIZE, snapPositiveSizeToGrid, snapVec3ToGrid } from "../geometry/grid-snapping";

View File

@@ -147,11 +147,6 @@ export function applyAdvancedRenderingLightShadowFlags(
root.traverse((object) => {
if (object instanceof DirectionalLight || object instanceof PointLight || object instanceof SpotLight) {
object.castShadow = shadowEnabled;
if (!shadowEnabled) {
return;
}
object.shadow.bias = settings.shadows.bias;
object.shadow.mapSize.set(settings.shadows.mapSize, settings.shadows.mapSize);
}