mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Fix and improve MSAA documentation (#16196)
# Objective #14273 changed `Msaa` to be a component rather than a resource. However, the documentation still says that it is a resource. This tripped me up during migration to 0.15 until I looked at the type definition. Additionally, the docs have some unnecessary repetition and some grammar mistakes, and they don't link to camera documentation. ## Solution Fix up the docs!
This commit is contained in:
parent
03a068e4d1
commit
46566980a6
1 changed files with 5 additions and 5 deletions
|
@ -146,14 +146,14 @@ impl Plugin for ViewPlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration resource for [Multi-Sample Anti-Aliasing](https://en.wikipedia.org/wiki/Multisample_anti-aliasing).
|
/// Component for configuring the number of samples for [Multi-Sample Anti-Aliasing](https://en.wikipedia.org/wiki/Multisample_anti-aliasing)
|
||||||
|
/// for a [`Camera`](crate::camera::Camera).
|
||||||
///
|
///
|
||||||
/// The number of samples to run for Multi-Sample Anti-Aliasing for a given camera. Higher numbers
|
/// Defaults to 4 samples. A higher number of samples results in smoother edges.
|
||||||
/// result in smoother edges.
|
|
||||||
///
|
///
|
||||||
/// Defaults to 4 samples. Some advanced rendering features may require that MSAA be disabled.
|
/// Some advanced rendering features may require that MSAA is disabled.
|
||||||
///
|
///
|
||||||
/// Note that web currently only supports 1 or 4 samples.
|
/// Note that the web currently only supports 1 or 4 samples.
|
||||||
#[derive(
|
#[derive(
|
||||||
Component,
|
Component,
|
||||||
Default,
|
Default,
|
||||||
|
|
Loading…
Reference in a new issue