Store environment probes data for forward rendering in a GPU buffer.
More...
#include <ForwardLight.hpp>
|
size_t | _currentId = 0 |
| Current insertion location.
|
|
size_t | _currentCount = 0 |
| Number of probes to store.
|
|
UniformBuffer< GPUProbe > | _probesData |
| GPU buffer.
|
|
std::vector< const Texture * > | _probesMaps |
| Environment maps list.
|
|
std::vector< const Buffer * > | _probesCoeffs |
| Environment SH coeffs list.
|
|
|
static const size_t | _maxProbeCount = 4 |
| Maximum allowed number of probes (see forward_lights.glsl).
|
|
Store environment probes data for forward rendering in a GPU buffer.
◆ ForwardProbe()
ForwardProbe::ForwardProbe |
( |
size_t |
count | ) |
|
|
explicit |
Constructor.
- Parameters
-
count | number of probes that will be submitted |
◆ count()
size_t ForwardProbe::count |
( |
| ) |
const |
|
inline |
- Returns
- the current number of probes
◆ data()
- Returns
- the GPU probes recorded buffer
◆ draw()
void ForwardProbe::draw |
( |
const LightProbe & |
probe | ) |
|
Record a light probe information for rendering.
- Parameters
-
probe | the probe to retrieve the info of |
◆ envmaps()
const std::vector< const Texture * > & ForwardProbe::envmaps |
( |
| ) |
const |
|
inline |
- Returns
- the cubemaps used by the recorded probes
◆ shCoeffs()
const std::vector< const Buffer * > & ForwardProbe::shCoeffs |
( |
| ) |
const |
|
inline |
- Returns
- the SH irradiance coefficients used by the recorded probes
The documentation for this class was generated from the following files: