diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-06 02:22:37 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-06 02:22:37 -0400 |
commit | 7a6ceadedc20f58b7be76654eb8357e3ca0b026d (patch) | |
tree | ef4b93cdb8f92c358c3d4715f6eebd5a2827427b /resources/shaders/foam.vert | |
parent | 2ba27898535e01298ef8f0d0b9ffd4e69ce13458 (diff) |
saving
Diffstat (limited to 'resources/shaders/foam.vert')
-rw-r--r-- | resources/shaders/foam.vert | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/shaders/foam.vert b/resources/shaders/foam.vert index 6192ba7..261eeea 100644 --- a/resources/shaders/foam.vert +++ b/resources/shaders/foam.vert @@ -7,7 +7,7 @@ layout(location = 3) in vec2 texCoords; // texture coords layout(location = 3) in vec3 norm; // texture coords -out vec4 saturation_const; +out vec2 constants; out vec2 dir; out vec2 tex; out vec3 pos; @@ -38,13 +38,13 @@ vec2 calculateTexCoord(vec3 pos){ float offset = .5f; - return vec2(u_coord + offset, v_coord + offset); + return 6*vec2(u_coord + offset, v_coord + offset); } void main() { dir = direction; - saturation_const = vec4(wavelength, phaseC, position.x, position.z); + constants = vec2(wavelength, phaseC); gl_Position = proj * view * model * vec4(position, 1); pos = vec3(gl_Position); |