Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 01:49
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 vincentdesmares/2f6e5183f56d7570854f89e2270525ba to your computer and use it in GitHub Desktop.
Save vincentdesmares/2f6e5183f56d7570854f89e2270525ba to your computer and use it in GitHub Desktop.
<script id=”shader-vs” type=”x-shader/x-vertex”>
attribute vec3 position; // For each vertex, the position value will be defined in JS.
void main(void) {
gl_Position = vec4(position, 1.0); // Define gl_Position. Values have to be between -1 and 1.
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment