-
-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39d9af7
commit e924077
Showing
4 changed files
with
56 additions
and
24 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
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,30 @@ | ||
#ifdef GL_ES | ||
precision mediump float; | ||
#endif | ||
|
||
uniform sampler2D u_tex0; | ||
uniform vec2 u_tex0Resolution; | ||
|
||
uniform sampler2D u_buffer0; // 0.125 | ||
|
||
uniform vec2 u_mouse; | ||
uniform vec2 u_resolution; | ||
uniform float u_time; | ||
|
||
varying vec2 v_texcoord; | ||
|
||
void main (void) { | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
vec2 st = gl_FragCoord.xy/u_resolution.xy; | ||
vec2 uv = v_texcoord; | ||
|
||
#if defined(BUFFER_0) | ||
color = texture2D(u_tex0, uv); | ||
|
||
#else | ||
color = texture2D(u_buffer0, st); | ||
|
||
#endif | ||
|
||
gl_FragColor = color; | ||
} |
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
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