Compare commits

..

No commits in common. "66ca20ee5b48030d145cdd53d5a3df55b12ecbd5" and "87f6b2b87ac183e8dc26a31e7c5c27464fa61aa8" have entirely different histories.

4 changed files with 6179 additions and 24965 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
#include "depth_shader.h"
#include "constants.h"
#include "shader.h"
VertexData depth_shader_vertex(void *shader, const VertexData *vert, u8 index, const Model *model) {
@ -19,8 +18,8 @@ FragmentResult depth_shader_fragment(void *shader, const V3f *barycentric, const
M3x3f pos_mat = {.rows = {shdr->vertices[0].position, shdr->vertices[1].position, shdr->vertices[2].position}};
pos_mat = mat3x3_transpose(pos_mat);
V3f position = mat3x3_mul_vec3(pos_mat, (*barycentric));
V3f position = mat3x3_mul_vec3(pos_mat, (*barycentric));
V4f output = {.r = position.z, .g = position.z, .b = position.z, .a = 255};
return (FragmentResult){.colour = output};

View File

@ -7,7 +7,6 @@
typedef struct shader Shader;
struct shader {
#include "shader_base.inc"
M4x4f shadow_matrix;
};
VertexData general_shader_vertex(void *shader, const VertexData *vert, u8 index, const Model *model);