Conditionally enable shadows based on display mode in viewport-host.ts
This commit is contained in:
@@ -577,7 +577,7 @@ export class ViewportHost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const advancedRendering = this.currentWorld.advancedRendering;
|
const advancedRendering = this.currentWorld.advancedRendering;
|
||||||
const shadowsEnabled = advancedRendering.enabled && advancedRendering.shadows.enabled;
|
const shadowsEnabled = advancedRendering.enabled && advancedRendering.shadows.enabled && this.displayMode === "normal";
|
||||||
|
|
||||||
applyAdvancedRenderingLightShadowFlags(this.sunLight, advancedRendering);
|
applyAdvancedRenderingLightShadowFlags(this.sunLight, advancedRendering);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user