 8ec65525ab
			
		
	
	
		8ec65525ab
		
			
		
	
	
	
	
		
			
			# Objective - We should move towards a consistent use of the new `bevy_color` crate. - As discussed in #12089, splitting this work up into small pieces makes it easier to review. ## Solution - Port all uses of `LegacyColor` in the `bevy_core_pipeline` to `LinearRgba` - `LinearRgba` is the correct type to use for internal rendering types - Added `LinearRgba::BLACK` and `WHITE` (used during migration) - Add `LinearRgba::grey` to more easily construct balanced grey colors (used during migration) - Add a conversion from `LinearRgba` to `wgpu::Color`. The converse was not done at this time, as this is typically a user error. I did not change the field type of the clear color on the cameras: as this is user-facing, this should be done in concert with the other configurable fields. ## Migration Guide `ColorAttachment` now stores a `LinearRgba` color, rather than a Bevy 0.13 `Color`. `set_blend_constant` now takes a `LinearRgba` argument, rather than a Bevy 0.13 `Color`. --------- Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [package]
 | |
| name = "bevy_core_pipeline"
 | |
| version = "0.14.0-dev"
 | |
| edition = "2021"
 | |
| authors = [
 | |
|   "Bevy Contributors <bevyengine@gmail.com>",
 | |
|   "Carter Anderson <mcanders1@gmail.com>",
 | |
| ]
 | |
| description = "Provides a core render pipeline for Bevy Engine."
 | |
| homepage = "https://bevyengine.org"
 | |
| repository = "https://github.com/bevyengine/bevy"
 | |
| license = "MIT OR Apache-2.0"
 | |
| keywords = ["bevy"]
 | |
| 
 | |
| [features]
 | |
| dds = ["bevy_render/dds"]
 | |
| trace = []
 | |
| webgl = []
 | |
| webgpu = []
 | |
| tonemapping_luts = ["bevy_render/ktx2", "bevy_render/zstd"]
 | |
| 
 | |
| [dependencies]
 | |
| # bevy
 | |
| bevy_app = { path = "../bevy_app", version = "0.14.0-dev" }
 | |
| bevy_asset = { path = "../bevy_asset", version = "0.14.0-dev" }
 | |
| bevy_core = { path = "../bevy_core", version = "0.14.0-dev" }
 | |
| bevy_color = { path = "../bevy_color", version = "0.14.0-dev" }
 | |
| bevy_derive = { path = "../bevy_derive", version = "0.14.0-dev" }
 | |
| bevy_ecs = { path = "../bevy_ecs", version = "0.14.0-dev" }
 | |
| bevy_log = { path = "../bevy_log", version = "0.14.0-dev" }
 | |
| bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev" }
 | |
| bevy_render = { path = "../bevy_render", version = "0.14.0-dev" }
 | |
| bevy_transform = { path = "../bevy_transform", version = "0.14.0-dev" }
 | |
| bevy_math = { path = "../bevy_math", version = "0.14.0-dev" }
 | |
| bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" }
 | |
| 
 | |
| serde = { version = "1", features = ["derive"] }
 | |
| bitflags = "2.3"
 | |
| radsort = "0.1"
 | |
| 
 | |
| [lints]
 | |
| workspace = true
 |