linux-wallpaperengine/share/patches/water_caustics.frag.json
Alexis Maiquez cd4a76677f Added a couple of patches for different shaders
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-11 03:33:51 +01:00

16 lines
572 B
JSON

{
"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));"
}
}
]
}