Don't convert web text colors to linear
This commit is contained in:
parent
7f9afac93e
commit
bfb07147cd
4 changed files with 46 additions and 16 deletions
|
@ -271,6 +271,7 @@ pub struct TextAtlas {
|
|||
pub(crate) shader: ShaderModule,
|
||||
pub(crate) vertex_buffers: [wgpu::VertexBufferLayout<'static>; 1],
|
||||
pub(crate) format: TextureFormat,
|
||||
pub(crate) color_mode: ColorMode,
|
||||
}
|
||||
|
||||
impl TextAtlas {
|
||||
|
@ -450,6 +451,7 @@ impl TextAtlas {
|
|||
shader,
|
||||
vertex_buffers,
|
||||
format,
|
||||
color_mode,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue