vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
reflection_probe.h
1#pragma once
2
3#include <cstdint>
4
5#include <glm/glm.hpp>
6
7#include "core/reflect.h"
8
9namespace Vkm::Engine {
10
20 glm::vec3 halfExtents = glm::vec3(5.0f);
22 float falloff = 0.2f;
23 float intensity = 1.0f;
25 uint32_t resolution = 256;
26
32 uint32_t bakeVersion = 0;
33};
34
35} // namespace Vkm::Engine
36
37VKM_REFLECT_BEGIN(::Vkm::Engine::ReflectionProbe)
38 VKM_F(halfExtents)
39 VKM_F(falloff)
40 VKM_F(intensity)
41 VKM_F(resolution)
42 VKM_F(bakeVersion)
43VKM_REFLECT_END()
Local reflection + irradiance probe.
Definition reflection_probe.h:18
float falloff
Fraction of the half-extent fading to the global IBL.
Definition reflection_probe.h:22
float intensity
Definition reflection_probe.h:23
glm::vec3 halfExtents
Influence box half-size (world units), for parallax correction + falloff.
Definition reflection_probe.h:20
uint32_t resolution
Asked-for face size in pixels; every probe is captured at the largest any asks.
Definition reflection_probe.h:25
uint32_t bakeVersion
Bump to force a re-bake.
Definition reflection_probe.h:32