Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickFramebufferObject update ShaderEffect
Forum Updated to NodeBB v4.3 + New Features

QQuickFramebufferObject update ShaderEffect

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 693 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitry89
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      agocs
      wrote on last edited by
      #2

      This should be fixed in 5.4. https://bugreports.qt-project.org/browse/QTBUG-40809

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved