Skip to content

Commit

Permalink
Re-add depth handling to 03_colored_cube
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 29, 2023
1 parent 20ab332 commit 21988ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions 03_colored_cube/Shaders/shader.kong
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ fun pix(input: vertex_out): float4 {
struct pipeline {
vertex = pos;
fragment = pix;
depth_write = true;
depth_mode = COMPARE_LESS;
}
3 changes: 0 additions & 3 deletions 03_colored_cube/Sources/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ int kickstart(int argc, char **argv) {
heap = (uint8_t *)malloc(HEAP_SIZE);
assert(heap != NULL);

// pipeline.depth_write = true;
// pipeline.depth_mode = KINC_G4_COMPARE_LESS;

int vertex_count = sizeof(vertices_data) / 3 / 4;
kinc_g4_vertex_buffer_init(&vertices, vertex_count, &vertex_in_structure, KINC_G4_USAGE_STATIC, 0);
{
Expand Down

0 comments on commit 21988ab

Please sign in to comment.