MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_shadows_enabled

Method set_shadows_enabled

native/shared/src/renderer/mod.rs:7856–7858  ·  view source on GitHub ↗
(&mut self, on: bool)

Source from the content-addressed store, hash-verified

7854 // ============================================================
7855
7856 pub fn set_shadows_enabled(&mut self, on: bool) {
7857 if on { self.shadow_map.enable(); } else { self.shadow_map.disable(); }
7858 }
7859
7860 /// Disables the ticket-004 shadow-cache and re-renders cascades
7861 /// every frame. Useful for games that mutate lighting state from

Callers 8

apply_quality_presetMethod · 0.80

Calls 2

enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected