Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment