make it weirdly mesmerizing
This commit is contained in:
parent
76c007f5b1
commit
d0957bf85a
1 changed files with 4 additions and 3 deletions
|
@ -51,10 +51,11 @@ const shader = new Shader(app)
|
|||
}
|
||||
|
||||
void main() {
|
||||
vec3 hsv = rgb2hsv(vec3(vTextureCoord, 1.0));
|
||||
float zComponent = uSinTime * 0.001 * 0.5 + 0.5;
|
||||
vec3 hsv = rgb2hsv(vec3(vTextureCoord, zComponent));
|
||||
hsv.x += uTime * 0.0001;
|
||||
hsv.y = vTextureCoord.x;
|
||||
hsv.z = vTextureCoord.y;
|
||||
hsv.y = 1.0;
|
||||
hsv.z = 1.0;
|
||||
vec3 rgb = hsv2rgb(hsv);
|
||||
|
||||
gl_FragColor = vec4(rgb, 1.0);
|
||||
|
|
Loading…
Add table
Reference in a new issue