diff --git a/03_colored_cube/Shaders/shader.kong b/03_colored_cube/Shaders/shader.kong index f3a61c1..c2b747b 100644 --- a/03_colored_cube/Shaders/shader.kong +++ b/03_colored_cube/Shaders/shader.kong @@ -37,4 +37,6 @@ fun pix(input: vertex_out): float4 { struct pipeline { vertex = pos; fragment = pix; + depth_write = true; + depth_mode = COMPARE_LESS; } diff --git a/03_colored_cube/Sources/main.c b/03_colored_cube/Sources/main.c index 09b638d..4a23355 100644 --- a/03_colored_cube/Sources/main.c +++ b/03_colored_cube/Sources/main.c @@ -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); {