Created
May 12, 2017 01:49
-
-
Save vincentdesmares/2f6e5183f56d7570854f89e2270525ba 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=”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