From 2e2c57a8c04575eec164279a49947cfdba250853 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 26 Jul 2024 23:15:22 +1000 Subject: scenes and pbr cleanup to handle missing texture of param --- src/new_render/pbr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/new_render/pbr.h') diff --git a/src/new_render/pbr.h b/src/new_render/pbr.h index 914975b..0aa9dfe 100644 --- a/src/new_render/pbr.h +++ b/src/new_render/pbr.h @@ -36,7 +36,7 @@ typedef struct PBR_Params { Vec3 albedo; f32 metallic; f32 roughness; - f32 ao; + f32 ambient_occlusion; } PBR_Params; typedef struct PBR_Textures { @@ -48,10 +48,13 @@ typedef struct PBR_Textures { TextureHandle ao_map; } PBR_Textures; + // --- Internal typedef struct MaterialMap MaterialMap; +Material PBRMaterialDefault(); + GPU_Renderpass* PBR_RPassCreate(); GPU_Pipeline* PBR_PipelineCreate(GPU_Renderpass* rpass); -- cgit v1.2.3-70-g09d2