Created
June 17, 2016 14:14
-
-
Save LukeDavitt/ff332aa2fd2bd88a55a4c0d9158c23c3 to your computer and use it in GitHub Desktop.
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
<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