diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
commit | a556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch) | |
tree | bc9b8a2d184c12aee236e7f9f276a34b84ca552d /resources/shaders/shader.vert | |
parent | cd7c76017a12bb548036571c1ff13e551369d06d (diff) |
add engine version
Diffstat (limited to 'resources/shaders/shader.vert')
-rwxr-xr-x | resources/shaders/shader.vert | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/shaders/shader.vert b/resources/shaders/shader.vert index 8dda424..8447dd9 100755 --- a/resources/shaders/shader.vert +++ b/resources/shaders/shader.vert @@ -2,6 +2,8 @@ layout(location = 0) in vec3 position; // Position of the vertex layout(location = 1) in vec3 normal; // Normal of the vertex +layout(location = 3) in vec3 texCoords; // Normal of the vertex + uniform mat4 proj; uniform mat4 view; @@ -65,7 +67,7 @@ void main() { vec3 groundContactPoint = -(normal * depthScale) + position; // carries down to ground groundContactPoint = vec3(model * vec4(position, 1)); uv = vec2((position.x + 81.f) / (162.f), groundContactPoint.z); -// uv = vec2(normal); + uv = vec2(texCoords); vec4 refrPos_and_prob = getRefrPos(); refrPos = vec3(refrPos_and_prob); refrProb = clamp(refrPos_and_prob.w, 0.f, 1.f); |