Created
June 26, 2021 15:21
-
-
Save mkvenkit/733d73815f27f2da177f5e16e7507bde to your computer and use it in GitHub Desktop.
Procedural texture shader
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
// 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