From b9315f9cb625db09c3c41d8adf5230a67510bef7 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 14 Jul 2024 23:55:18 +1000 Subject: wip shadows --- src/ral/ral_common.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/ral/ral_common.c') diff --git a/src/ral/ral_common.c b/src/ral/ral_common.c index 8ff282e..35bf15f 100644 --- a/src/ral/ral_common.c +++ b/src/ral/ral_common.c @@ -19,23 +19,23 @@ void ResourcePools_Init(arena* a, struct ResourcePools* res_pools) { } VertexDescription static_3d_vertex_description() { - VertexDescription builder = { .debug_label = "Standard static 3d vertex format" }; - VertexDesc_AddAttr(&builder, "inPosition", ATTR_F32x3); - VertexDesc_AddAttr(&builder, "inNormal", ATTR_F32x3); - VertexDesc_AddAttr(&builder, "inTexCoords", ATTR_F32x2); - builder.use_full_vertex_size = true; - return builder; + VertexDescription builder = { .debug_label = "Standard static 3d vertex format" }; + VertexDesc_AddAttr(&builder, "inPosition", ATTR_F32x3); + VertexDesc_AddAttr(&builder, "inNormal", ATTR_F32x3); + VertexDesc_AddAttr(&builder, "inTexCoords", ATTR_F32x2); + builder.use_full_vertex_size = true; + return builder; } void VertexDesc_AddAttr(VertexDescription* builder, const char* name, VertexAttribType type) { - u32 i = builder->attributes_count; + u32 i = builder->attributes_count; - size_t size = VertexAttribSize(type); - builder->attributes[i] = type; - builder->stride += size; - builder->attr_names[i] = name; + size_t size = VertexAttribSize(type); + builder->attributes[i] = type; + builder->stride += size; + builder->attr_names[i] = name; - builder->attributes_count++; + builder->attributes_count++; } size_t VertexAttribSize(VertexAttribType attr) { -- cgit v1.2.3-70-g09d2