Use premultiplied colors in triangle pipelines
This commit is contained in:
parent
df37d6f9bc
commit
098bd1b8a4
9 changed files with 37 additions and 33 deletions
|
|
@ -97,6 +97,8 @@ impl Pipeline {
|
|||
"../shader/quad/gradient.wgsl"
|
||||
),
|
||||
"\n",
|
||||
include_str!("../shader/color.wgsl"),
|
||||
"\n",
|
||||
include_str!("../shader/color/oklab.wgsl")
|
||||
)
|
||||
} else {
|
||||
|
|
@ -109,6 +111,8 @@ impl Pipeline {
|
|||
"../shader/quad/gradient.wgsl"
|
||||
),
|
||||
"\n",
|
||||
include_str!("../shader/color.wgsl"),
|
||||
"\n",
|
||||
include_str!(
|
||||
"../shader/color/linear_rgb.wgsl"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ impl Pipeline {
|
|||
label: Some("iced_wgpu.quad.solid.shader"),
|
||||
source: wgpu::ShaderSource::Wgsl(std::borrow::Cow::Borrowed(
|
||||
concat!(
|
||||
include_str!("../shader/color.wgsl"),
|
||||
"\n",
|
||||
include_str!("../shader/quad.wgsl"),
|
||||
"\n",
|
||||
include_str!("../shader/vertex.wgsl"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue