Add a geometry pool, shape hierarchy, addittion and deletion.

This commit is contained in:
2026-04-30 17:55:46 +02:00
parent 9ce6e4accd
commit e71641c094
14 changed files with 2273 additions and 1341 deletions

View File

@@ -4,7 +4,6 @@ struct VsUniform {
struct ShapeUniform {
transform: mat4x4f,
base_color: vec4f,
state: u32,
};
@@ -31,9 +30,9 @@ struct FsOut {
if (shape_uniform.state == 2u) {
output.color = vec4f(1.0, 0.84, 0.0, 1.0);
} else if (shape_uniform.state == 1u) {
output.color = clamp(shape_uniform.base_color * 1.5, vec4f(0.0), vec4f(1.0));
output.color = vec4f(0.5, 0.6, 1.0, 1.0);
} else {
output.color = shape_uniform.base_color;
output.color = vec4f(0.8, 0.8, 0.8, 1.0);
}
return output;
}