diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index ec9e4364b9521..9a5e89bd1522a 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -136,12 +136,18 @@ pub trait Material: AsBindGroup + Send + Sync + Clone + TypeUuid + TypePath + Si /// Returns this material's prepass vertex shader. If [`ShaderRef::Default`] is returned, the default prepass vertex shader /// will be used. + /// + /// This is used for the various [prepasses](bevy_core_pipeline::prepass) as well as for generating the depth maps + /// required for shadow mapping. fn prepass_vertex_shader() -> ShaderRef { ShaderRef::Default } /// Returns this material's prepass fragment shader. If [`ShaderRef::Default`] is returned, the default prepass fragment shader /// will be used. + /// + /// This is used for the various [prepasses](bevy_core_pipeline::prepass) as well as for generating the depth maps + /// required for shadow mapping. #[allow(unused_variables)] fn prepass_fragment_shader() -> ShaderRef { ShaderRef::Default