summaryrefslogtreecommitdiff
path: root/resources/shaders/foam.vert
diff options
context:
space:
mode:
authorjjesswan <jessica_wan@brown.edu>2024-05-06 19:11:27 -0400
committerjjesswan <jessica_wan@brown.edu>2024-05-06 19:11:27 -0400
commitd8bf256cf18327f48061ed875c98109200288733 (patch)
treec33234e5fe9a0b69925cfee16b8ba5f627b54595 /resources/shaders/foam.vert
parent8d6fd1befd53948cfb4f44ba84bfdb54ac97cf81 (diff)
trial with vbo
Diffstat (limited to 'resources/shaders/foam.vert')
-rw-r--r--resources/shaders/foam.vert8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/shaders/foam.vert b/resources/shaders/foam.vert
index 76f2af7..a33e343 100644
--- a/resources/shaders/foam.vert
+++ b/resources/shaders/foam.vert
@@ -2,9 +2,9 @@
layout(location = 0) in vec3 position; // Position of the vertex
layout(location = 1) in float wavelength; // wavelenth adjusted for ocean depth
-layout(location = 2) in vec2 direction; // wave slope
-layout(location = 3) in vec2 texCoords; // texture coords
-layout(location = 3) in vec3 norm; // texture coords
+//layout(location = 2) in vec2 direction; // wave slope
+//layout(location = 3) in vec2 texCoords; // texture coords
+//layout(location = 3) in vec3 norm; // texture coords
out vec2 constants;
@@ -43,7 +43,7 @@ vec2 calculateTexCoord(vec3 pos){
}
void main() {
- dir = direction;
+ dir = vec2(0,0);
constants = vec2(wavelength, phaseC);
gl_Position = proj * view * model * vec4(position, 1);