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. [solved] QML and fragment shader

[solved] QML and fragment shader

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.3k 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.
  • M Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    Hi,

    I've been playing with opengl through QML for some time, and now I want to add a fragment shader for implementing filter active on the QML component already drawn on scene (such as a blur on a part of a rectangle and an image). But the way I know for using shader is :
    

    @enable shader
    drawing stuff
    disable shader@

    But this is not possible in QML and I wish I could use shader like a layer, did you know a way ?

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      minimoog77
      wrote on last edited by
      #2

      Essentially render to texture. According to this http://labs.qt.nokia.com/2011/03/22/the-convenient-power-of-qml-scene-graph/ it is possible.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Merinas
        wrote on last edited by
        #3

        It look awesome. Thanks

        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