Skip to content

Commit

Permalink
rename Camera3dBundle's 'dither' field to 'deband_dither' to align wi…
Browse files Browse the repository at this point in the history
…th Camera2dBundle (bevyengine#11939)

# Objective

- having different field names for `Camera2dBundle` and `Camera3dBundle`
implies that there is something different between these fields when
there is not

## Solution

- rename the field in `Camera3dBundle` to align with `Camera2dBundle`

## Migration Guide

- use the new `deband_dither` field name with `Camera3dBundle`, rather
than the old field name, `dither`
  • Loading branch information
awwsmm authored and msvbg committed Feb 26, 2024
1 parent 253f970 commit e95da3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_core_pipeline/src/core_3d/camera_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub struct Camera3dBundle {
pub global_transform: GlobalTransform,
pub camera_3d: Camera3d,
pub tonemapping: Tonemapping,
pub dither: DebandDither,
pub deband_dither: DebandDither,
pub color_grading: ColorGrading,
pub exposure: Exposure,
pub main_texture_usages: CameraMainTextureUsages,
Expand All @@ -166,7 +166,7 @@ impl Default for Camera3dBundle {
color_grading: Default::default(),
exposure: Default::default(),
main_texture_usages: Default::default(),
dither: DebandDither::Enabled,
deband_dither: DebandDither::Enabled,
}
}
}

0 comments on commit e95da3d

Please sign in to comment.