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