Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Apply general shader on whole QGLPainter
QtWS25 Last Chance

[SOLVED] Apply general shader on whole QGLPainter

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.4k Views
  • 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.
  • S Offline
    S Offline
    Skylar
    wrote on last edited by
    #1

    Hello,

    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.

    Regards

    In most cases, the bug is mine. But of the remaining lines are correct.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Skylar
      wrote on last edited by
      #2

      Will use the AfterRendering wi QQuickWindow.

      In most cases, the bug is mine. But of the remaining lines are correct.

      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