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>
11 lines
133 B
C
11 lines
133 B
C
#include "utils.h"
|
|
#include "aliases.h"
|
|
|
|
i64 absolute(i64 value) {
|
|
if (value >= 0) {
|
|
return value;
|
|
}
|
|
|
|
return value * -1;
|
|
}
|