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. Pass ARGB32 (not Premultiplied) image data to a ShaderEffect?

Pass ARGB32 (not Premultiplied) image data to a ShaderEffect?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.3k 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.
  • C Offline
    C Offline
    cg6674
    wrote on last edited by
    #1

    Hi,

    In QtQuick 2.0 is there any way to pass raw image data to a ShaderEffect?

    I've stored some 4 colour distance fields in RGBA PNG files. I'm not using the Alpha channel for alpha but for a 4th monochrome distance field. I've run into problems because the RGB data is premultiplied by the alpha channel, corrupting all the data. Is there any way to turn this off?

    All my work is in QML run using qmlscene.

    On the ShaderEffectSource I've tried setting 'format: ShaderEffectSource.RGBA' but this didn't effect anything - I think it's the default(premultiplied). I would like the current format renamed to ShaderEffectSource.RGBA_Premultiplied and a raw RGBA format added.

    If there is any way to work around this, please let me know.

    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