y4my4my4m / kde-shader-wallpaper

KDE / Plasma - Shader Wallpaper plugin
GNU General Public License v3.0
223 stars 12 forks source link

[Feature Request] HDR Shaders #57

Open StephanieSunshine opened 3 weeks ago

StephanieSunshine commented 3 weeks ago

Would it be possible to use the new HDR capabilities of KDE to enable shaders in HDR?

y4my4my4m commented 3 weeks ago

@StephanieSunshine I haven't really looked into KDE's HDR support so I'm not too sure to be honest, but I suppose so?

Can you make tests like this?

            property var hdrTexture: ShaderEffectSource {
                sourceItem: Image {
                    source: "qrc:/path/to/your/hdr_image.exr"  // Use an HDR image format like EXR
                    width: 800
                    height: 600
                    fillMode: Image.PreserveAspectCrop
                }
                format: ShaderEffectSource.RGBA16F  // Use a high-bit-depth format
                live: true
            }

(or make your own GLSL shader that somehow shows HDR?)

Probably either 16F or 32F ShaderEffectSource.RGBA16F ShaderEffectSource.RGBA32F

https://doc.qt.io/qt-6/qml-qtquick-shadereffectsource.html#format-prop