diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/smoothtexture_core.vert')
-rw-r--r-- | src/quick/scenegraph/shaders/smoothtexture_core.vert | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/scenegraph/shaders/smoothtexture_core.vert b/src/quick/scenegraph/shaders/smoothtexture_core.vert index a2489a39c5..6821398e57 100644 --- a/src/quick/scenegraph/shaders/smoothtexture_core.vert +++ b/src/quick/scenegraph/shaders/smoothtexture_core.vert @@ -50,5 +50,8 @@ void main() bool onEdge = any(notEqual(vertexOffset, vec2(0.))); bool outerEdge = all(equal(texCoordOffset, vec2(0.))); - vertexOpacity = onEdge && outerEdge ? 0. : opacity; -}
\ No newline at end of file + if (onEdge && outerEdge) + vertexOpacity = 0.; + else + vertexOpacity = opacity; +} |