Skip to content

Instantly share code, notes, and snippets.

@jturcotte
Created August 18, 2014 12:43
Show Gist options
  • Save jturcotte/4859fdb918f0a6d1a2d9 to your computer and use it in GitHub Desktop.
Save jturcotte/4859fdb918f0a6d1a2d9 to your computer and use it in GitHub Desktop.
Framebuffer hole digging test
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