Skip to content

Instantly share code, notes, and snippets.

@mkvenkit
Created June 26, 2021 15:21
Show Gist options
  • Save mkvenkit/733d73815f27f2da177f5e16e7507bde to your computer and use it in GitHub Desktop.
Save mkvenkit/733d73815f27f2da177f5e16e7507bde to your computer and use it in GitHub Desktop.
Procedural texture shader
// stripes
float val = clamp(round(sin( 20 * fs_in.tc.x * 3.14156)), 0, 1);
vec3 col1 = vec3(255, 237, 81) / 255.0;
vec3 col2 = vec3(133, 202, 93) / 255.0;
vec3 col = mix(col1, col2, val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment