PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Envmap Class Reference

#include <Envmap.h>

Collaboration diagram for dyno::Envmap:

Public Member Functions

 Envmap ()
 
 ~Envmap ()
 
void initialize ()
 
void release ()
 
void load (const char *path)
 
void draw (const RenderParams &rparams)
 
void bindIBL ()
 
void setScale (float scale)
 

Public Attributes

const char * path = 0
 

Private Member Functions

void update ()
 
void genLUT ()
 

Private Attributes

bool requireUpdate = false
 
struct { 
 
   int   width 
 
   int   height 
 
   int   component 
 
   std::vector< float >   data 
 
   Texture2D   tex 
 
image 
 
TextureCube irradianceCube
 
TextureCube prefilteredCube
 
Texture2D brdfLut
 
const int irradianceSize = 16
 
const int prefilteredSize = 128
 
const int brdfLutSize = 128
 
Programprog
 
Meshcube = 0
 
Framebuffer fb
 
struct { 
 
   float   scale = 1.f 
 
params 
 
Buffer uboParams
 

Detailed Description

Definition at line 13 of file Envmap.h.

Constructor & Destructor Documentation

◆ Envmap()

Envmap::Envmap ( )

Definition at line 18 of file Envmap.cpp.

◆ ~Envmap()

Envmap::~Envmap ( )

Definition at line 24 of file Envmap.cpp.

Member Function Documentation

◆ bindIBL()

void dyno::Envmap::bindIBL ( )

Definition at line 163 of file Envmap.cpp.

Here is the call graph for this function:

◆ draw()

void Envmap::draw ( const RenderParams & rparams)

Definition at line 135 of file Envmap.cpp.

Here is the call graph for this function:

◆ genLUT()

void Envmap::genLUT ( )
private

Definition at line 251 of file Envmap.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

void Envmap::initialize ( )

Definition at line 29 of file Envmap.cpp.

Here is the call graph for this function:

◆ load()

void Envmap::load ( const char * path)

Definition at line 113 of file Envmap.cpp.

◆ release()

void Envmap::release ( )

Definition at line 94 of file Envmap.cpp.

◆ setScale()

void dyno::Envmap::setScale ( float scale)

Definition at line 183 of file Envmap.cpp.

◆ update()

void Envmap::update ( )
private

Definition at line 188 of file Envmap.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ brdfLut

Texture2D dyno::Envmap::brdfLut
private

Definition at line 48 of file Envmap.h.

◆ brdfLutSize

const int dyno::Envmap::brdfLutSize = 128
private

Definition at line 52 of file Envmap.h.

◆ component

int dyno::Envmap::component

Definition at line 41 of file Envmap.h.

◆ cube

Mesh* dyno::Envmap::cube = 0
private

Definition at line 58 of file Envmap.h.

◆ data

std::vector<float> dyno::Envmap::data

Definition at line 42 of file Envmap.h.

◆ fb

Framebuffer dyno::Envmap::fb
private

Definition at line 60 of file Envmap.h.

◆ height

int dyno::Envmap::height

Definition at line 40 of file Envmap.h.

◆ [struct]

struct { ... } dyno::Envmap::image

◆ irradianceCube

TextureCube dyno::Envmap::irradianceCube
private

Definition at line 46 of file Envmap.h.

◆ irradianceSize

const int dyno::Envmap::irradianceSize = 16
private

Definition at line 50 of file Envmap.h.

◆ [struct]

struct { ... } dyno::Envmap::params

◆ path

const char* dyno::Envmap::path = 0

Definition at line 33 of file Envmap.h.

◆ prefilteredCube

TextureCube dyno::Envmap::prefilteredCube
private

Definition at line 47 of file Envmap.h.

◆ prefilteredSize

const int dyno::Envmap::prefilteredSize = 128
private

Definition at line 51 of file Envmap.h.

◆ prog

Program* dyno::Envmap::prog
private

Definition at line 55 of file Envmap.h.

◆ requireUpdate

bool dyno::Envmap::requireUpdate = false
private

Definition at line 36 of file Envmap.h.

◆ scale

float dyno::Envmap::scale = 1.f

Definition at line 63 of file Envmap.h.

◆ tex

Texture2D dyno::Envmap::tex

Definition at line 43 of file Envmap.h.

◆ uboParams

Buffer dyno::Envmap::uboParams
private

Definition at line 65 of file Envmap.h.

◆ width

int dyno::Envmap::width

Definition at line 39 of file Envmap.h.


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