Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ProbeConstants Struct Reference

The indirect light one instance stands in — both halves of it. More...

#include <ProbeConstants.hpp>

Public Attributes

glm::vec4 irradiance [9] {}
glm::vec4 reflection {0.0f}

Detailed Description

The indirect light one instance stands in — both halves of it.

Definition at line 45 of file ProbeConstants.hpp.

Member Data Documentation

◆ irradiance

glm::vec4 esengine::ProbeConstants::irradiance[9] {}

SH9, rgb in xyz. [0].w is 1 where this draw stands in a volume — a flag and not the absence of coefficients, since zeroes ARE an answer here: a probe in the dark.

Definition at line 49 of file ProbeConstants.hpp.

Referenced by esengine::MeshPlugin::collect(), and esengine::ProbeStore::sample().

◆ reflection

glm::vec4 esengine::ProbeConstants::reflection {0.0f}

x = which column of the frame's reflection atlas this instance reflects. 0 is the environment, so an instance inside no probe needs nothing written here and a zeroed run is already right. y = the first coefficient of the sky's visibility (the other eight ride irradiance[1..8].w), z = 1 when there is one (a grid baked with sky occlusion): the shaders' skyOcclusion().

Definition at line 55 of file ProbeConstants.hpp.

Referenced by esengine::MeshPlugin::collect(), and esengine::ProbeStore::sample().


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