Made some things in bevy_render Debug. (#13830)
# Objective Some items in `bevy_render` do not implement `Debug`. ## Solution Made them derive `Debug`.
This commit is contained in:
parent
48f70789f5
commit
c75610e2b2
@ -435,7 +435,7 @@ fn calculate_cascade(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Add this component to make a [`Mesh`] not cast shadows.
|
/// Add this component to make a [`Mesh`] not cast shadows.
|
||||||
#[derive(Component, Reflect, Default)]
|
#[derive(Debug, Component, Reflect, Default)]
|
||||||
#[reflect(Component, Default)]
|
#[reflect(Component, Default)]
|
||||||
pub struct NotShadowCaster;
|
pub struct NotShadowCaster;
|
||||||
/// Add this component to make a [`Mesh`] not receive shadows.
|
/// Add this component to make a [`Mesh`] not receive shadows.
|
||||||
@ -443,7 +443,7 @@ pub struct NotShadowCaster;
|
|||||||
/// **Note:** If you're using diffuse transmission, setting [`NotShadowReceiver`] will
|
/// **Note:** If you're using diffuse transmission, setting [`NotShadowReceiver`] will
|
||||||
/// cause both “regular” shadows as well as diffusely transmitted shadows to be disabled,
|
/// cause both “regular” shadows as well as diffusely transmitted shadows to be disabled,
|
||||||
/// even when [`TransmittedShadowReceiver`] is being used.
|
/// even when [`TransmittedShadowReceiver`] is being used.
|
||||||
#[derive(Component, Reflect, Default)]
|
#[derive(Debug, Component, Reflect, Default)]
|
||||||
#[reflect(Component, Default)]
|
#[reflect(Component, Default)]
|
||||||
pub struct NotShadowReceiver;
|
pub struct NotShadowReceiver;
|
||||||
/// Add this component to make a [`Mesh`] using a PBR material with [`diffuse_transmission`](crate::pbr_material::StandardMaterial::diffuse_transmission)`> 0.0`
|
/// Add this component to make a [`Mesh`] using a PBR material with [`diffuse_transmission`](crate::pbr_material::StandardMaterial::diffuse_transmission)`> 0.0`
|
||||||
@ -453,7 +453,7 @@ pub struct NotShadowReceiver;
|
|||||||
/// (and potentially even baking a thickness texture!) to match the geometry of the mesh, in order to avoid self-shadow artifacts.
|
/// (and potentially even baking a thickness texture!) to match the geometry of the mesh, in order to avoid self-shadow artifacts.
|
||||||
///
|
///
|
||||||
/// **Note:** Using [`NotShadowReceiver`] overrides this component.
|
/// **Note:** Using [`NotShadowReceiver`] overrides this component.
|
||||||
#[derive(Component, Reflect, Default)]
|
#[derive(Debug, Component, Reflect, Default)]
|
||||||
#[reflect(Component, Default)]
|
#[reflect(Component, Default)]
|
||||||
pub struct TransmittedShadowReceiver;
|
pub struct TransmittedShadowReceiver;
|
||||||
|
|
||||||
@ -462,7 +462,7 @@ pub struct TransmittedShadowReceiver;
|
|||||||
///
|
///
|
||||||
/// The different modes use different approaches to
|
/// The different modes use different approaches to
|
||||||
/// [Percentage Closer Filtering](https://developer.nvidia.com/gpugems/gpugems/part-ii-lighting-and-shadows/chapter-11-shadow-map-antialiasing).
|
/// [Percentage Closer Filtering](https://developer.nvidia.com/gpugems/gpugems/part-ii-lighting-and-shadows/chapter-11-shadow-map-antialiasing).
|
||||||
#[derive(Component, ExtractComponent, Reflect, Clone, Copy, PartialEq, Eq, Default)]
|
#[derive(Debug, Component, ExtractComponent, Reflect, Clone, Copy, PartialEq, Eq, Default)]
|
||||||
#[reflect(Component, Default)]
|
#[reflect(Component, Default)]
|
||||||
pub enum ShadowFilteringMethod {
|
pub enum ShadowFilteringMethod {
|
||||||
/// Hardware 2x2.
|
/// Hardware 2x2.
|
||||||
|
|||||||
@ -156,7 +156,7 @@ pub struct VisibilityBundle {
|
|||||||
/// - when a [`Mesh`] is updated but its [`Aabb`] is not, which might happen with animations,
|
/// - when a [`Mesh`] is updated but its [`Aabb`] is not, which might happen with animations,
|
||||||
/// - when using some light effects, like wanting a [`Mesh`] out of the [`Frustum`]
|
/// - when using some light effects, like wanting a [`Mesh`] out of the [`Frustum`]
|
||||||
/// to appear in the reflection of a [`Mesh`] within.
|
/// to appear in the reflection of a [`Mesh`] within.
|
||||||
#[derive(Component, Default, Reflect)]
|
#[derive(Debug, Component, Default, Reflect)]
|
||||||
#[reflect(Component, Default)]
|
#[reflect(Component, Default)]
|
||||||
pub struct NoFrustumCulling;
|
pub struct NoFrustumCulling;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user