QQuickFramebufferObject update ShaderEffect
-
I'm editing "textureinsgnode qt example" :
@ Renderer {
id: renderer
anchors.fill: parent
anchors.margins: 10visible: 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?
-
This should be fixed in 5.4. https://bugreports.qt-project.org/browse/QTBUG-40809