Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/release-content/migration-guides/enable_prepass.md
7223 views
---
title: "`enable_prepass` and `enable_shadows` are now Material methods" pull_requests: [20999]
---

The MaterialPlugin fields prepass_enabled and shadows_enabled have been replaced by the Material methods enable_prepass and enable_shadows.

Analogous methods have also been added to MaterialExtension

/// before MaterialPlugin::<MyMaterial> { prepass_enabled: false, shadows_enabled: false, } /// after impl Material for MyMaterial { /// ... fn enable_prepass() { false } fn enable_shadows() { false } }