Basic GLSL shaders (three.js)
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
uniform float time; | |
uniform vec2 resolution; | |
uniform vec3 color; | |
void main() { | |
gl_FragColor = vec4(color, 1.); | |
} |
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
varying vec3 vUv; | |
void main() { | |
vUv = position; | |
vec4 modelViewPosition = modelViewMatrix * vec4(position, 1.0); | |
gl_Position = projectionMatrix * modelViewPosition; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment