Skip to content

Add light shadow freezing/limiting params - #371

Merged
TeamSpen210 merged 2 commits into
masterfrom
feat/light-freezing
Nov 8, 2026
Merged

TeamSpen210 merged 2 commits into
masterfrom
feat/light-freezing

Conversation

@Smaedd

@Smaedd Smaedd commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Adds a few new KVs/inputs to light_rt entities:

  • _castdynamicgeometryshadows: When false, shadows only render for static geometry, and lights only update when they change/move
  • _shadowfreezemode: Has 2 modes (on top of unfrozen)
    • 'Freeze while visible' freezes lights while they're in vis, and deallocates so they don't hog the atlas
    • 'Freeze always' freezes lights regardless of if they're in vis or not, permanently taking up atlas space but never re-rendering
  • FreezeShadows: Sets the light to 'Freeze always'
  • FreezeShadowsWhenVisible: Sets the light to 'Freeze while visible'
  • UnfreezeShadows: Disables light freezing
  • RedrawShadows: Redraws the light's shadows (useful to force a re-render while a light is frozen)

@TeamSpen210
TeamSpen210 merged commit d388fe7 into master Nov 8, 2026
2 checks passed
@TeamSpen210
TeamSpen210 deleted the feat/light-freezing branch November 8, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants