From b3b19f081231c7c13322c7b0d577afb6084d48df Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 15 Jun 2024 17:59:02 +1000 Subject: point lights for pbr example --- src/renderer/builtin_materials.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/renderer/builtin_materials.h') diff --git a/src/renderer/builtin_materials.h b/src/renderer/builtin_materials.h index c284acc..740ab3d 100644 --- a/src/renderer/builtin_materials.h +++ b/src/renderer/builtin_materials.h @@ -44,10 +44,14 @@ typedef struct pbr_params_material_uniforms { f32 ao; } pbr_params_material_uniforms; +typedef struct pbr_point_light { + vec3 pos; + vec3 color; +} pbr_point_light; + typedef struct pbr_params_light_uniforms { vec3 viewPos; - // TODO: PointLights - + pbr_point_light pointLights[4]; } pbr_params_light_uniforms; typedef struct pbr_params_bindgroup { -- cgit v1.2.3-70-g09d2