diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-04-09 03:14:17 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-04-09 03:14:17 -0400 |
commit | 7a8d0d8bc2572707c9d35006f30ea835c86954b0 (patch) | |
tree | dedb9a65c1698202ad485378b4186b667008abe5 /resources/shaders/anchorPoint.vert | |
parent | 818324678bd5dca790c57048e5012d2937a4b5e5 (diff) |
first draft to generate waves
Diffstat (limited to 'resources/shaders/anchorPoint.vert')
-rw-r--r-- | resources/shaders/anchorPoint.vert | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/shaders/anchorPoint.vert b/resources/shaders/anchorPoint.vert new file mode 100644 index 0000000..c074d00 --- /dev/null +++ b/resources/shaders/anchorPoint.vert @@ -0,0 +1,16 @@ +#version 330 core + +layout(location = 0) in vec3 position; // Position of the vertex +layout(location = 2) in vec3 vcolor; // Normal of the vertex + +uniform mat4 proj; +uniform mat4 view; +uniform mat4 model; + +out vec4 vColor; + +void main() { + vColor = vec4(vcolor, 1.0); + + gl_Position = proj * view * model * vec4(position, 1.0); +} |