mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix unfinished sentence in a comment in asset_settings example (#13243)
# Objective - In PR #12882 I added a new example which contained a comment with an unfinished and cut off sentence. This wasn't caught until after the PR was merged. - This simply finishes that comment. ## Solution - Finished the incomplete comment. ## Testing - This is simply a comment change so no testing needed other than reading it.
This commit is contained in:
parent
77ebabc4fe
commit
ba33672c43
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ fn main() {
|
||||||
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||||
// Without any .meta file specifying settings, the default sampler [ImagePlugin::default()] is used for loading images.
|
// Without any .meta file specifying settings, the default sampler [ImagePlugin::default()] is used for loading images.
|
||||||
// If you are using a very small image and rendering it larger like seen here, the default linear filtering will result in a blurry image.
|
// If you are using a very small image and rendering it larger like seen here, the default linear filtering will result in a blurry image.
|
||||||
// Useful note: The default sampler specified by the ImagePlugin is *not* the
|
// Useful note: The default sampler specified by the ImagePlugin is *not* the same as the default implementation of sampler. This is why
|
||||||
|
// everything uses linear by default but if you look at the default of sampler, it uses nearest.
|
||||||
commands.spawn(SpriteBundle {
|
commands.spawn(SpriteBundle {
|
||||||
texture: asset_server.load("bevy_pixel_dark.png"),
|
texture: asset_server.load("bevy_pixel_dark.png"),
|
||||||
sprite: Sprite {
|
sprite: Sprite {
|
||||||
|
|
Loading…
Reference in a new issue