summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-15 13:06:27 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-15 13:06:27 +1000
commit938e3944fd7d55951e794224e6346488d3c701ea (patch)
tree74b1ffd98099a69392f3472768ea99ebe18c4586 /src/render
parentd4df846c97a7fd216748806abdb729a11a0ce2ec (diff)
cone wip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/pbr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/pbr.c b/src/render/pbr.c
index cfa02fc..044e6eb 100644
--- a/src/render/pbr.c
+++ b/src/render/pbr.c
@@ -25,11 +25,11 @@ GPU_Renderpass* PBR_RPassCreate() {
}
void PBR_PipelinesCreate(PBR_Storage* storage, GPU_Renderpass* rpass) {
- // Common shader bindings
- ShaderDataLayout camera_data = Binding_Camera_GetLayout(NULL);
- ShaderDataLayout model_data = Binding_Model_GetLayout(NULL);
- ShaderDataLayout material_data = PBRMaterial_GetLayout(NULL);
- ShaderDataLayout lights_data = Binding_Lights_GetLayout(NULL);
+ // Common shader bindings
+ ShaderDataLayout camera_data = Binding_Camera_GetLayout(NULL);
+ ShaderDataLayout model_data = Binding_Model_GetLayout(NULL);
+ ShaderDataLayout material_data = PBRMaterial_GetLayout(NULL);
+ ShaderDataLayout lights_data = Binding_Lights_GetLayout(NULL);
// Static
{
@@ -144,9 +144,9 @@ void PBR_Execute(PBR_Storage* storage, Camera camera, TextureHandle shadowmap_te
Binding_Model model_data = { .model = renderable.affine };
GPU_EncodeBindShaderData(enc, 1, Binding_Model_GetLayout(&model_data));
- AnimDataUniform anim_data = {0};
- for (int i =0; i < 4; i++) {
- anim_data.bone_matrices[i] = mat4_ident();
+ AnimDataUniform anim_data = { 0 };
+ for (int i = 0; i < 4; i++) {
+ anim_data.bone_matrices[i] = mat4_ident();
}
GPU_EncodeBindShaderData(enc, 3, AnimData_GetLayout(&anim_data));
// Calculate matrices here