gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
gdk::volumetric_lighting< size_param > Class Template Referencefinal

cubic volume of diffuse lighting data More...

#include <volumetric_lighting.h>

Public Types

using texture_data_type = std::array<gdk::texture_data::channel_type, size_1d * CHANNELS_PER_COLOR>
 
using texture_data_view_pair = std::pair<gdk::texture_data::view, std::shared_ptr<texture_data_type>>
 
using local_space_component_type = int
 

Public Member Functions

void add_global (const gdk::color &aColor)
 
void add_point_light (graphics_intvector3_type aLightPosition, const float aSize, const gdk::color &aColor)
 add a pointlight to the light volume
 
texture_data_view_pair to_texture_data () const
 

Static Public Attributes

static constexpr size_t size = size_param
 
static constexpr size_t size_1d = size * size * size
 
static constexpr size_t size_2d = std::sqrt(size_1d)
 
static constexpr size_t CHANNELS_PER_COLOR = 3
 

Detailed Description

template<size_t size_param>
class gdk::volumetric_lighting< size_param >

cubic volume of diffuse lighting data


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