-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a couple of patches for different shaders
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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));" | ||
} | ||
} | ||
] | ||
} |