summaryrefslogtreecommitdiff
path: root/examples/pbr_textured/ex_pbr_textured.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-18 11:03:52 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-18 11:03:52 +1000
commitb2c9782ab2f4abec8f8548e667a8f2ad6e36bd4b (patch)
tree34973f37f585439357a5e455225d272e9398a742 /examples/pbr_textured/ex_pbr_textured.c
parent4b5695ce26a8f821dfac987e8e11a6ba5eeff610 (diff)
wip
Diffstat (limited to 'examples/pbr_textured/ex_pbr_textured.c')
-rw-r--r--examples/pbr_textured/ex_pbr_textured.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/pbr_textured/ex_pbr_textured.c b/examples/pbr_textured/ex_pbr_textured.c
index a28d3fb..8c48b8d 100644
--- a/examples/pbr_textured/ex_pbr_textured.c
+++ b/examples/pbr_textured/ex_pbr_textured.c
@@ -41,7 +41,8 @@ int main() {
vec3 camera_front = vec3_normalise(vec3_negate(camera_pos));
camera cam = camera_create(camera_pos, camera_front, VEC3_NEG_Z, deg_to_rad(45.0));
- shader_data pbr_uniforms = { .data = NULL, .shader_data_get_layout = &pbr_textured_shader_layout };
+ shader_data pbr_uniforms = { .data = NULL,
+ .shader_data_get_layout = &pbr_textured_shader_layout };
// Make the pipeline
gpu_renderpass_desc pass_description = {};
@@ -107,9 +108,9 @@ int main() {
};
pbr_bind_data.textures = (pbr_textures){
.albedo_tex = helmet->materials->data[0].mat_data.pbr.albedo_map,
- .metal_roughness_tex = helmet->materials->data[0].mat_data.pbr.metallic_map,
- .ao_tex = helmet->materials->data[0].mat_data.pbr.ao_map,
- .normal_tex = helmet->materials->data[0].mat_data.pbr.normal_map,
+ .metal_roughness_tex = helmet->materials->data[0].mat_data.pbr.metallic_map,
+ .ao_tex = helmet->materials->data[0].mat_data.pbr.ao_map,
+ .normal_tex = helmet->materials->data[0].mat_data.pbr.normal_map,
};
pbr_uniforms.data = &pbr_bind_data;
encode_bind_shader_data(enc, 0, &pbr_uniforms);