y4my4my4m / kde-shader-wallpaper

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

Plasma6 #39

Open y4my4my4m opened 7 months ago

y4my4my4m commented 7 months ago

Must change the .frag and it's magic to .qsb compiled...

Currently stuck on an issue where

layout(std140, binding = 0) uniform Globals {
    float iTime;
};

The binding properties that are in blocks (like uniforms) dont seem to be passed down.

Qt Quick's ShaderEffect doesn't directly support binding QML properties to GLSL uniform blocks due to the nature of how uniform blocks are updated and bound in the underlying graphics API.

Uniform blocks are typically updated using Uniform Buffer Objects (UBOs) in OpenGL or Vulkan, which requires a more explicit management approach than individual uniform variables. This means you cannot directly bind a QML property to a uniform within a block using the property system of QML as you would with loose uniforms.

So I might need to use C++...or find some other way?


Edit: Got it!