[SOLVED] Apply general shader on whole QGLPainter
I want to turn on/off a global shader on my application to turn on/off all colors into only two e.g Black/whte using GLSL shaders.
Is there a way to apply a 'global shader' to QGLPainter or need I to add QGLShaderProgramEffect on a root scenenode ?
I managed to call the painter->setUserEffect(shaderEffect) prior draw but I would like to apply it to the whole scene.
Will use the AfterRendering wi QQuickWindow.