[Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Ola Røer Thorsen
Hi all, I want to use a custom fragment shader when rendering a Image item. Is it possible to set the shader to use directly somehow? That is, I want to use a custom shader instead of the "passthrough" fragment shader used in the Image element. I have tried using the QtGraphicalEffects (GammaAdju

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Sean Harmer
The shader code is hard-wired into the relevant material in the qtdeclarative module and there is no way to replace it at present (that I know of) apart from altering the source and building a customised version. Maybe Gunnar knows of way? Another option would be to write yourself a custom mat

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Ola Røer Thorsen
Hi Sean, thanks for the reply! Yes I think I'll have to go for the second option there, writing my own CustomImage based on the original Image source code. I'll post a feature request on the bug tracker, let's see what happens. By the way, I browsed a bit through the Qt source tree for glsl shade

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Sletta Gunnar
twings.no] Sendt: 22. oktober 2013 15:20 To: interest@qt-project.org Emne: [Interest] use custom fragment shader for Quick2 Image item Hi all, I want to use a custom fragment shader when rendering a Image item. Is it possible to set the shader to use directly somehow? That is, I want to use a cust

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-25 Thread Ola Røer Thorsen
__ > Fra: > interest-bounces+gunnar.sletta=digia@qt-project.org[interest-bounces+gunnar.sletta= > digia....@qt-project.org] på vegne av Ola Røer Thorsen [ > o...@silentwings.no] > Sendt: 22. oktober 2013 15:20 > To: interest@qt-project.org > E