Skip to content

Commit

Permalink
Merge branch 'main' into asgmnt3/lighting-terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Oct 3, 2024
2 parents 4db9459 + 510f75a commit c2b83b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file added assignments/Computer_Graphics___Assignment_2.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion gloom-rs/shaders/fragShaderRestCode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ float sdTriangle(vec2 p1, vec2 p2, vec2 p3, vec2 p)
vec2(dot(pq2, pq2), s*(f2.x*e2.y - f2.y*e2.x)));

return -sqrt(d.x)*sign(d.y);
}
}
1 change: 1 addition & 0 deletions gloom-rs/shaders/simple.frag
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in vec3 fPosition; // for phong lighting
in vec4 fColor;
in vec3 fNormal;
out vec4 color;
in vec4 vertColor;

// Globals
vec3 lightDirection = normalize(vec3(0.8, -0.5, 0.6));
Expand Down

0 comments on commit c2b83b0

Please sign in to comment.