aboutsummaryrefslogtreecommitdiff
path: root/src/llr/light_impl.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-07-04 10:27:06 -0700
committer3gg <3gg@shellblade.net>2025-07-04 10:27:06 -0700
commit1ec46bead3cf87971a2329f9ef4ddde5a0c48325 (patch)
tree3f4c404467c3ad9c94265295f4aa1b97a10a9eb3 /src/llr/light_impl.h
parente386405ac636b7e4a41d5c03eb363e9c120ce919 (diff)
Clarify doc
Diffstat (limited to 'src/llr/light_impl.h')
-rw-r--r--src/llr/light_impl.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/llr/light_impl.h b/src/llr/light_impl.h
new file mode 100644
index 0000000..32203c4
--- /dev/null
+++ b/src/llr/light_impl.h
@@ -0,0 +1,25 @@
1#pragma once
2
3#include <../../include/gfx/llr/light.h>
4
5#include "../scene/types.h"
6
7typedef struct Texture Texture;
8
9/// An environment light.
10typedef struct EnvironmentLight {
11 const Texture* environment_map;
12 const Texture* irradiance_map; // Renderer implementation.
13 const Texture* prefiltered_environment_map; // Renderer implementation.
14 int max_reflection_lod; // Mandatory when prefiltered_environment_map is
15 // given.
16} EnvironmentLight;
17
18/// A scene light.
19typedef struct Light {
20 LightType type;
21 union {
22 EnvironmentLight environment;
23 };
24 node_idx parent; // Parent SceneNode.
25} Light;