QQuickFramebufferObject update ShaderEffect

  • I'm editing "textureinsgnode qt example" :

    @ Renderer {
    id: renderer
    anchors.fill: parent
    anchors.margins: 10

        visible: false
    ShaderEffectSource {
        id: itemSource
        sourceItem: renderer
    ShaderEffect {
        id: glitemshader
        anchors.fill: parent
        anchors.margins: 10
        property variant source: itemSource
        property real brightness: 1.0
        fragmentShader: "
                            uniform sampler2D source;
                            varying highp vec2 qt_TexCoord0;
                            void main() {
                                gl_FragColor = texture2D(source, qt_TexCoord0);
                                gl_FragColor.r = 0.0;
                                gl_FragColor.a = 1.0;


    ShaderEffect does not want to automatically update after updating of the renderer,so I always see a static image. How to enable updating?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.