Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
ReflectionProbe.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
14#pragma once
15
16#include "../../core/Types.hpp"
19
20#include <glm/glm.hpp>
21
22namespace esengine::ecs {
23
32ES_COMPONENT(stability=beta)
37 ES_PROPERTY(asset = environment, tooltip="The scene's baked reflections (the baker writes this).")
38 resource::EnvironmentHandle reflection;
39
41 ES_PROPERTY(min=0, tooltip="Half the box this probe answers inside, from the entity's position.")
42 glm::vec3 halfExtents{200.0f, 200.0f, 200.0f};
43
47 ES_PROPERTY(min=0, advanced, tooltip="Which column of the atlas this probe occupies (the baker writes this).")
49
51 ES_PROPERTY(tooltip="Off: what stands inside this box reflects the sky again.")
52 bool enabled{true};
53
54 ReflectionProbe() = default;
55};
56
57} // namespace esengine::ecs
Type-safe resource handle system.
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
glm::vec3 halfExtents
Half the box this probe answers inside, in world units.
bool enabled
Disabled probes are skipped, and what stands inside reflects the sky.
u32 slot
Which column of the atlas holds it. Column 0 is the environment — what a surface outside every probe ...
resource::EnvironmentHandle reflection
The scene's baked reflections — an .esenv whose atlas holds a column per probe. The baker writes it; ...