diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-15 17:59:02 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-15 17:59:02 +1000 |
commit | b3b19f081231c7c13322c7b0d577afb6084d48df (patch) | |
tree | 0bec011f39175c3f168571dd135f3c653f91a21e /src | |
parent | c5808488875484aca814bfc8e526f37f3f447166 (diff) |
point lights for pbr example
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer/builtin_materials.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 { |