Skip to content

Instantly share code, notes, and snippets.

@marioecg
Last active April 2, 2020 00:05
Show Gist options
  • Save marioecg/8799bbfe144140fe2045f7d37cfd520e to your computer and use it in GitHub Desktop.
Save marioecg/8799bbfe144140fe2045f7d37cfd520e to your computer and use it in GitHub Desktop.
default threejs shaders
precision mediump float;
varying vec2 vUv;
void main() {
gl_Position = vec4(vUv, 0., 1.);
}
precision mediump float;
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment