Commit Graph
12 Commits
Author SHA1 Message Date
abdelrahman 87f6b2b87a Tweak fragment shader to take and return V4f instead of Colour 2024-09-14 01:22:43 +01:00
abdelrahman ab8343e749 More reformatting 2024-09-14 00:22:36 +01:00
abdelrahman 98323da649 Reformat and reorganise before writing shadow code 2024-09-13 23:54:46 +01:00
abdelrahman b57ec11598 Ensure intensity is clamped 2024-09-01 23:02:05 +01:00
abdelrahman e87f780dae Move vertex and fragment calculations to the shaders 2024-09-01 02:15:32 +01:00
abdelrahman 95d474c956 Save viewport matrix in a variable 2024-08-31 22:24:04 +01:00
abdelrahman 97622d0bf7 Move viewport matrix multiplication out of vertex shader 2024-08-26 22:30:05 +01:00
abdelrahman 319bad9659 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>
2024-08-26 17:12:44 +00:00
abdelrahman 57dcf6457c Update includes and reorder variables 2024-08-25 02:47:13 +01:00
abdelrahman 5dac82ffb7 Pass float vectors when calculating barycentric coordinates 2024-08-25 01:33:39 +01:00
abdelrahman 29749c834a Create FragmentData struct 2024-08-18 22:19:23 +01:00
abdelrahman be7b577a0e Split obj loading and model rendering code 2024-08-18 17:04:41 +01:00