Vote count: 0
Question Refernce: http://ift.tt/2kozsHI
#ifdef GL_ES
precision mediump float;
#endif
uniform float u_time;
void main() {
gl_FragColor = vec4(abs(sin(u_time)),0.0,0.0,1.0);
}
How can I achieve the results asked below:
This is my first experience to GLSL I tried dividing the u_time (gave a syntax error. I used some of the other.
The GPU has hardware accelerated angle, trigonometric and exponential functions.
But is this this what the question wnated me to do? If so which do I use to complete these askes?
Now it is time again to play with the above code.
Slow down the frequency until the color change becomes almost imperceptible.
Speed it up until you see a single color without flickering.
Play with the three channels (RGB) in different frequencies to get interesting patterns and behaviors.
asked 28 secs ago
How to slow down the frequency until the color change becomes almost imperceptible in GLSL
Aucun commentaire:
Enregistrer un commentaire