Created
August 18, 2014 12:43
-
-
Save jturcotte/4859fdb918f0a6d1a2d9 to your computer and use it in GitHub Desktop.
Framebuffer hole digging test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.1 | |
Rectangle { | |
height: 600 | |
width: 800 | |
color: "red" | |
ShaderEffect { | |
height: parent.height / 4 | |
width: parent.width / 4 | |
anchors.centerIn: parent | |
blending: false | |
fragmentShader: | |
"uniform lowp float qt_Opacity;" + | |
"void main() {" + | |
" gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);" + | |
"}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment