From 1ec46bead3cf87971a2329f9ef4ddde5a0c48325 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 4 Jul 2025 10:27:06 -0700 Subject: Clarify doc --- src/llr/light_impl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/llr/light_impl.h (limited to 'src/llr/light_impl.h') 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 @@ +#pragma once + +#include <../../include/gfx/llr/light.h> + +#include "../scene/types.h" + +typedef struct Texture Texture; + +/// An environment light. +typedef struct EnvironmentLight { + const Texture* environment_map; + const Texture* irradiance_map; // Renderer implementation. + const Texture* prefiltered_environment_map; // Renderer implementation. + int max_reflection_lod; // Mandatory when prefiltered_environment_map is + // given. +} EnvironmentLight; + +/// A scene light. +typedef struct Light { + LightType type; + union { + EnvironmentLight environment; + }; + node_idx parent; // Parent SceneNode. +} Light; -- cgit v1.2.3