Don't convert web text colors to linear

This commit is contained in:
grovesNL 2024-01-15 21:13:50 -03:30 committed by Josh Groves
parent 7f9afac93e
commit bfb07147cd
4 changed files with 46 additions and 16 deletions

View file

@ -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,
}
}