Advertisement
cpl

new shader

cpl
May 8th, 2023
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Fragment Shader
  2. void main() {
  3.     vec2 uv = (gl_FragCoord.xy - 0.5 * u_resolution.xy) / u_resolution.y;
  4.     vec3 col = vec3(
  5.         RED *
  6.         YELLOW *
  7.         BLUE *
  8.         GREEN *
  9.         tan(uv.x * sin(u_time * 5.0) * tan(u_time) * 15.0) *
  10.         cos(uv.y * tan(u_time * 5.0) * tan(u_time) * 15.0) *
  11.         500.0);
  12.     gl_FragColor = vec4(col, 1.0);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement