19#ifndef HEADER_SPHERICAL_HARMONICS_HPP
20#define HEADER_SPHERICAL_HARMONICS_HPP
34 float blue_SH_coeff[9];
35 float green_SH_coeff[9];
36 float red_SH_coeff[9];
55 SphericalHarmonics(
const std::vector<irr::video::IImage *> &spherical_harmonics_textures);
59 void setTextures(
const std::vector<irr::video::IImage *> &spherical_harmonics_textures);
68 void unprojectSH (
unsigned int width,
unsigned int height,
69 float *Y00[],
float *Y1minus1[],
float *Y10[],
70 float *Y11[],
float *Y2minus2[],
float *Y2minus1[],
71 float * Y20[],
float *Y21[],
float *Y22[],
Definition: spherical_harmonics.hpp:41
void setTextures(const std::vector< irr::video::IImage * > &spherical_harmonics_textures)
Compute spherical harmonics coefficients from 6 textures.
Definition: spherical_harmonics.cpp:540
void printCoeff()
Print spherical harmonics coefficients (debug)
Definition: spherical_harmonics.cpp:619
irr::video::SColor m_ambient
Ambient light is used for tracks without spherical harmonics textures.
Definition: spherical_harmonics.hpp:47
void setAmbientLight(const irr::video::SColor &ambient)
Compute spherical harmonics coefficients from ambient light.
Definition: spherical_harmonics.cpp:573
void generateSphericalHarmonics(unsigned char *sh_rgba[6], unsigned int edge_size)
Compute m_SH_coeff->red_SH_coeff, m_SH_coeff->green_SH_coeff and m_SH_coeff->blue_SH_coeff from Yml v...
Definition: spherical_harmonics.cpp:234
std::vector< irr::video::IImage * > m_spherical_harmonics_textures
The 6 spherical harmonics textures.
Definition: spherical_harmonics.hpp:44
void unprojectSH(unsigned int width, unsigned int height, float *Y00[], float *Y1minus1[], float *Y10[], float *Y11[], float *Y2minus2[], float *Y2minus1[], float *Y20[], float *Y21[], float *Y22[], float *output[])
Compute the the environment map from the spherical harmonics coefficients.
Definition: spherical_harmonics.cpp:635
SHCoefficients * m_SH_coeff
The spherical harmonics coefficients.
Definition: spherical_harmonics.hpp:50
Definition: spherical_harmonics.hpp:26
Definition: spherical_harmonics.hpp:33