Fix barycentric coordinates calculation (#2)

Reviewed-on: #2

	* Set up for debugging
	* Replace get_barycentric_coords with different calculation
	* Update commented lines
	* Add V3_ELEM_COUNT macro
	* Change loop in barycentric coordinates calculation function
	* Update debug values
	* Simplify barycentric coordinates function
	* Remove debug lines
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
This commit is contained in:
2024-08-26 17:12:44 +00:00
committed by Abdelrahman Said
parent 57dcf6457c
commit 319bad9659
4 changed files with 32 additions and 38 deletions

View File

@@ -41,8 +41,8 @@ int main(void) {
PhongMaterial material = {
.ambient = 0.3f,
.diffuse = 1.5f,
.specular = 0.5f,
.shininess = 0.1f,
.specular = 2.0f,
.shininess = 1.5f,
};
obj.material = material;