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

#include <DynamicGI.hpp>

Public Attributes

std::vector< f32 > header
 Header: sdf dim, cell size, origin x y z (cells), reach, instance count, card pixel count, sun (toLight xyz, on), sun radiance rgb, bias, range, tolerance, sky rgb.
std::vector< f32 > sdf
 The distance field, dim^3 cells, toroidal.
std::vector< f32 > instances
 64 floats an instance.
std::vector< u32 > pixels
 4 words a card pixel.
u32 version = 0
bool full = true
u32 dirtyBegin = 0
u32 dirtyEnd = 0

Detailed Description

The scene as the SDK lays it out. All of it is plain numbers; the layouts are in DynamicGI.cpp (kLayout) and sdk/src/gi/gpuScene.ts.

Definition at line 59 of file DynamicGI.hpp.

Member Data Documentation

◆ dirtyBegin

u32 esengine::DynamicGIScene::dirtyBegin = 0

Definition at line 72 of file DynamicGI.hpp.

◆ dirtyEnd

u32 esengine::DynamicGIScene::dirtyEnd = 0

Definition at line 72 of file DynamicGI.hpp.

◆ full

bool esengine::DynamicGIScene::full = true

What changed since the GPU copy was made: everything (a whole scene was set), or only the floats [dirtyBegin, dirtyEnd) of the field and the header (a camera moved; the cards and their light are the same, and are not touched).

Definition at line 71 of file DynamicGI.hpp.

◆ header

std::vector<f32> esengine::DynamicGIScene::header

Header: sdf dim, cell size, origin x y z (cells), reach, instance count, card pixel count, sun (toLight xyz, on), sun radiance rgb, bias, range, tolerance, sky rgb.

Definition at line 61 of file DynamicGI.hpp.

Referenced by esengine::DynamicGI::declare().

◆ instances

std::vector<f32> esengine::DynamicGIScene::instances

64 floats an instance.

Definition at line 65 of file DynamicGI.hpp.

◆ pixels

std::vector<u32> esengine::DynamicGIScene::pixels

4 words a card pixel.

Definition at line 67 of file DynamicGI.hpp.

◆ sdf

std::vector<f32> esengine::DynamicGIScene::sdf

The distance field, dim^3 cells, toroidal.

Definition at line 63 of file DynamicGI.hpp.

◆ version

u32 esengine::DynamicGIScene::version = 0

Definition at line 68 of file DynamicGI.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/frame/DynamicGI.hpp