Skip to content

Commit 8247a96

Browse files
committed
GradientEffect: Fix incorrect output alpha
Source-Commit: d8ec35fcbacdb80de7891dc0ac3a8ea7c9bf8c8d
1 parent 6e2aea9 commit 8247a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unstable/layoutdsl/src/main/kotlin/gg/essential/elementa/effects/GradientEffect.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class GradientEffect(
8181
vertSource,
8282
fragSource,
8383
).apply {
84-
blendState = BlendState.NORMAL
84+
blendState = BlendState.ALPHA
8585
depthTest = URenderPipeline.DepthTest.Always
8686
}.build()
8787

@@ -90,7 +90,7 @@ class GradientEffect(
9090
UGraphics.DrawMode.QUADS,
9191
UGraphics.CommonVertexFormats.POSITION_COLOR,
9292
).apply {
93-
blendState = BlendState.NORMAL
93+
blendState = BlendState.ALPHA
9494
depthTest = URenderPipeline.DepthTest.Always
9595
}.build()
9696
}

0 commit comments

Comments
 (0)