vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::ReflectionProbe Struct Reference

Local reflection + irradiance probe. More...

#include <reflection_probe.h>

Public Attributes

glm::vec3 halfExtents = glm::vec3(5.0f)
 Influence box half-size (world units), for parallax correction + falloff.
float falloff = 0.2f
 Fraction of the half-extent fading to the global IBL.
float intensity = 1.0f
uint32_t resolution = 256
 Asked-for face size in pixels; every probe is captured at the largest any asks.
uint32_t bakeVersion = 0
 Bump to force a re-bake.

Detailed Description

Local reflection + irradiance probe.

Captures a cubemap at the Transform's position, convolved into diffuse and prefiltered specular cubes. Surfaces in the box (centred there) use these over the global IBL, blending back toward it near the edge.

Member Data Documentation

◆ intensity

float Vkm::Engine::ReflectionProbe::intensity = 1.0f

Linear-HDR multiplier.

◆ bakeVersion

uint32_t Vkm::Engine::ReflectionProbe::bakeVersion = 0

Bump to force a re-bake.

For changes the params miss (sun moved, geometry edited); moving or resizing re-bakes alone.


The documentation for this struct was generated from the following file: