mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00
Added a couple of patches for different shaders
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
37631e9c40
commit
cd4a76677f
14
share/patches/lens_flare_sun.frag.json
Normal file
14
share/patches/lens_flare_sun.frag.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"patches": [
|
||||
{
|
||||
"matches": [
|
||||
"uniform float u_pointerSpeed;",
|
||||
"uniform vec2 g_PointerPosition;",
|
||||
"float pointer= g_PointerPosition.xy * u_pointerSpeed;"
|
||||
],
|
||||
"replacements": {
|
||||
"float pointer= g_PointerPosition.xy * u_pointerSpeed;": "float pointer= (g_PointerPosition.xy * u_pointerSpeed).x;"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
share/patches/water_caustics.frag.json
Normal file
16
share/patches/water_caustics.frag.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"patches": [
|
||||
{
|
||||
"matches": [
|
||||
"varying vec2 v_TexCoord;",
|
||||
"vec4 scene= texSample2D(g_Texture0, v_TexCoord);",
|
||||
"float mask= texSample2D(g_Texture1, v_TexCoord.zw).r;"
|
||||
],
|
||||
"replacements": {
|
||||
"varying vec2 v_TexCoord;": "varying vec4 v_TexCoord;",
|
||||
"vec4 scene= texSample2D(g_Texture0, v_TexCoord);": "vec4 scene= texSample2D(g_Texture0, v_TexCoord.xy);",
|
||||
"vec3 colour= vec3(pow(abs(c), u_WaveColor * u_Brightness));": "vec3 colour= vec3(pow(abs(c), (u_WaveColor * u_Brightness).x));"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user