Files
tinyrenderer/src/utils/utils.c
Abdelrahman 50b8c6dd0a Implement shaders (#1)
Reviewed-on: #1

	* Start implementing shaders and move vector code to dedicated files
	* Extract shader into its own header
	* Ensure pixel coordinates are within bounds
	* Refactor shader code and implement fragment shaders
	* Create shaders
	* Reorganise code
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2024-08-18 14:28:09 +00:00

11 lines
133 B
C

#include "utils.h"
#include "aliases.h"
i64 absolute(i64 value) {
if (value >= 0) {
return value;
}
return value * -1;
}