summaryrefslogtreecommitdiff
path: root/src/new_render/pbr.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-26 23:15:22 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-26 23:15:22 +1000
commit2e2c57a8c04575eec164279a49947cfdba250853 (patch)
treeb5d20aa256de40ebd9bad7c59ab1e8ebb1c47b52 /src/new_render/pbr.h
parentf5e5a6fdf58f3135f3211135bfbcb6e70630309f (diff)
scenes and pbr cleanup to handle missing texture of param
Diffstat (limited to 'src/new_render/pbr.h')
-rw-r--r--src/new_render/pbr.h5
1 files changed, 4 insertions, 1 deletions
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);