|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <VoxelGI.hpp>
Public Attributes | |
| f32 | intensity = 1.0f |
| How much of the gathered light is added over the picture. | |
| u32 | rays = 8 |
| Rays per surface point. | |
| f32 | voxelSize = 40.0f |
| World size of one voxel. | |
| f32 | range = 48.0f |
| How far a ray looks, in voxels. | |
| f32 | maxBounce = 3.0f |
| The brightest a surface is taken to give out, so one lamp does not light the street from a single pixel. | |
| f32 | decay = 0.93f |
| What the grid keeps each frame of what it held: 0 forgets at once, 1 never. | |
| f32 | bias = 1.2f |
| How far off its own voxel a ray starts, in voxels, so a surface is not lit by itself. | |
| u32 | divisor = 2 |
| The gather runs at 1 / this of the picture's size per axis. | |
| f32 | debug = 0.0f |
| 1 shows the gathered light alone. | |
| f32 | blend = 0.2f |
| How much of each frame's gather goes into the picture the next frame builds on (the rest is what the last frames agreed on). | |
| f32 | sunAlbedo = 0.6f |
| f32 | bounceFeedback = 1.0f |
| How much of the light the last gather found on a surface it gives off again (the bounces after the first): 0 is one bounce. | |
| u32 | gridSize = 128 |
| u32 | sunSamples = 256 |
What the effect is asked for, from the pass's uniforms.
Definition at line 40 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::bias = 1.2f |
How far off its own voxel a ray starts, in voxels, so a surface is not lit by itself.
Definition at line 54 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::blend = 0.2f |
How much of each frame's gather goes into the picture the next frame builds on (the rest is what the last frames agreed on).
Definition at line 60 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::bounceFeedback = 1.0f |
How much of the light the last gather found on a surface it gives off again (the bounces after the first): 0 is one bounce.
Definition at line 65 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::debug = 0.0f |
1 shows the gathered light alone.
Definition at line 58 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::decay = 0.93f |
What the grid keeps each frame of what it held: 0 forgets at once, 1 never.
Definition at line 52 of file VoxelGI.hpp.
| u32 esengine::VoxelGIParams::divisor = 2 |
The gather runs at 1 / this of the picture's size per axis.
Definition at line 56 of file VoxelGI.hpp.
Referenced by esengine::VoxelGI::declare().
| u32 esengine::VoxelGIParams::gridSize = 128 |
Definition at line 66 of file VoxelGI.hpp.
Referenced by esengine::VoxelGI::declare().
| f32 esengine::VoxelGIParams::intensity = 1.0f |
How much of the gathered light is added over the picture.
Definition at line 42 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::maxBounce = 3.0f |
The brightest a surface is taken to give out, so one lamp does not light the street from a single pixel.
Definition at line 50 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::range = 48.0f |
How far a ray looks, in voxels.
Definition at line 48 of file VoxelGI.hpp.
| u32 esengine::VoxelGIParams::rays = 8 |
Rays per surface point.
Definition at line 44 of file VoxelGI.hpp.
| f32 esengine::VoxelGIParams::sunAlbedo = 0.6f |
The albedo a surface the sun lights is taken to have where the camera does not see it (the shadow map holds no colour); 0 leaves the sun out of the cache, which then knows only what the picture shows.
Definition at line 63 of file VoxelGI.hpp.
Referenced by esengine::VoxelGI::declare().
| u32 esengine::VoxelGIParams::sunSamples = 256 |
Definition at line 67 of file VoxelGI.hpp.
Referenced by esengine::VoxelGI::declare().
| f32 esengine::VoxelGIParams::voxelSize = 40.0f |
World size of one voxel.
Definition at line 46 of file VoxelGI.hpp.