Adds proper wallpaper reaction to theme
This commit is contained in:
parent
ab0c103ad9
commit
1a04002bd2
22 changed files with 96 additions and 55 deletions
14
.config/wal/templates/wallpaper.glsl
Normal file
14
.config/wal/templates/wallpaper.glsl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#define FG_COLOR vec3({foreground.rgb})
|
||||
#define BG_COLOR vec3({background.rgb})
|
||||
|
||||
precision mediump float;
|
||||
|
||||
uniform vec2 uSize;
|
||||
uniform sampler2D uImage;
|
||||
|
||||
void main() {{
|
||||
vec2 uv = gl_FragCoord.xy / uSize;
|
||||
|
||||
float value = texture2D(uImage, uv).r;
|
||||
gl_FragColor = vec4(mix(BG_COLOR / 255.0, FG_COLOR / 255.0, value), 1.0);
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue