alpha-multiplier: perform multiplication in the renderer
This commit is contained in:
parent
33718340f7
commit
0872a1251d
8 changed files with 46 additions and 22 deletions
|
|
@ -505,7 +505,7 @@ impl VulkanRenderer {
|
|||
let memory = &mut *self.memory.borrow_mut();
|
||||
let clear_value = clear.map(|clear| ClearValue {
|
||||
color: ClearColorValue {
|
||||
float32: clear.to_array_srgb(),
|
||||
float32: clear.to_array_srgb(None),
|
||||
},
|
||||
});
|
||||
let load_clear = memory.paint_regions.len() == 1 && {
|
||||
|
|
@ -620,7 +620,7 @@ impl VulkanRenderer {
|
|||
GfxApiOpt::FillRect(r) => {
|
||||
let push = FillPushConstants {
|
||||
pos: r.rect.to_points(),
|
||||
color: r.color.to_array_srgb(),
|
||||
color: r.color.to_array_srgb(r.alpha),
|
||||
};
|
||||
for region in &memory.paint_regions {
|
||||
let mut push = push;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue