Skip to content

Commit 16fac12

Browse files
authored
document Spotlight shadow map sizing (#20282)
This resource controls both, but its not documented. Document it
1 parent 595b0a7 commit 16fac12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/bevy_light/src/directional_light.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub struct DirectionalLightTexture {
169169
pub tiled: bool,
170170
}
171171

172-
/// Controls the resolution of [`DirectionalLight`] shadow maps.
172+
/// Controls the resolution of [`DirectionalLight`] and [`SpotLight`](crate::SpotLight) shadow maps.
173173
///
174174
/// ```
175175
/// # use bevy_app::prelude::*;

crates/bevy_light/src/spot_light.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use crate::cluster::{ClusterVisibilityClass, GlobalVisibleClusterableObjects};
1717
/// Behaves like a point light in a perfectly absorbent housing that
1818
/// shines light only in a given direction. The direction is taken from
1919
/// the transform, and can be specified with [`Transform::looking_at`](Transform::looking_at).
20+
///
21+
/// To control the resolution of the shadow maps, use the [`crate::DirectionalLightShadowMap`] resource.
2022
#[derive(Component, Debug, Clone, Copy, Reflect)]
2123
#[reflect(Component, Default, Debug, Clone)]
2224
#[require(Frustum, VisibleMeshEntities, Transform, Visibility, VisibilityClass)]

0 commit comments

Comments
 (0)