Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@LukeDavitt
Created June 17, 2016 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeDavitt/ff332aa2fd2bd88a55a4c0d9158c23c3 to your computer and use it in GitHub Desktop.
Save LukeDavitt/ff332aa2fd2bd88a55a4c0d9158c23c3 to your computer and use it in GitHub Desktop.
<script id="fragmentShader" type="x-shader/x-fragment">
uniform sampler2D texture1;
varying vec2 vUv;
varying float randomNum;
void main() {
gl_FragColor = texture2D(texture1, vUv) - vec4(0.0,randomNum,randomNum,0.0);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment