From 7a6ceadedc20f58b7be76654eb8357e3ca0b026d Mon Sep 17 00:00:00 2001 From: jjesswan Date: Mon, 6 May 2024 02:22:37 -0400 Subject: saving --- resources/shaders/foam.vert | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/shaders/foam.vert') 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); -- cgit v1.2.3-70-g09d2