mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
Fix blend modes and opacity on raster data (#1996)
* Apply alpha blending to images when using vello * Fix bounds for image layer * Fix rendering for non vello images
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use crate::text::FontCache;
|
||||
use crate::transform::{Footprint, Transform, TransformMut};
|
||||
use crate::vector::style::ViewMode;
|
||||
use crate::AlphaBlending;
|
||||
|
||||
use dyn_any::{DynAny, StaticType, StaticTypeSized};
|
||||
|
||||
@@ -70,6 +71,7 @@ pub struct TextureFrame {
|
||||
#[cfg(not(feature = "wgpu"))]
|
||||
pub texture: (),
|
||||
pub transform: DAffine2,
|
||||
pub alpha_blend: AlphaBlending,
|
||||
}
|
||||
|
||||
impl Hash for TextureFrame {
|
||||
|
||||
Reference in New Issue
Block a user