Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add debug panel - Remove unneeded `uTime` uniform
- Loading branch information
1 parent
92d05ed
commit 9d6c642
Showing
4 changed files
with
17 additions
and
8 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
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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
precision highp float; | ||
|
||
uniform float uTime; | ||
uniform float uProgress; | ||
|
||
varying vec2 vUv; | ||
|
||
void main() { | ||
float sTime = sin(uTime); | ||
float cTime = cos(uTime); | ||
|
||
vec3 color = vec3(vUv.x*0.8 + sTime*0.2, vUv.y, 0.5 + cTime*0.5); | ||
vec3 color = vec3(vUv, uProgress); | ||
|
||
gl_FragColor = vec4(color, 1.0); | ||
} |
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