#include <light.h>
◆ Light()
Pixel::Light::Light |
( |
float * | pLightPosition, |
|
|
const Attribute & | attribute ) |
◆ ~Light()
virtual Pixel::Light::~Light |
( |
| ) |
|
|
virtual |
◆ addShaderCode()
virtual void Pixel::Light::addShaderCode |
( |
Material * | pMaterial | ) |
|
|
pure virtual |
◆ addShaderResources()
virtual void Pixel::Light::addShaderResources |
( |
Material * | pMaterial | ) |
|
|
virtual |
◆ create()
virtual void Pixel::Light::create |
( |
Material * | pMaterial | ) |
|
|
pure virtual |
◆ getVaryingString()
const String & Pixel::Light::getVaryingString |
( |
| ) |
|
|
inline |
◆ set()
virtual void Pixel::Light::set |
( |
const Matrix4f & | view | ) |
|
|
virtual |
◆ setAmbient()
void Pixel::Light::setAmbient |
( |
const Vertex3f & | color | ) |
|
◆ setDiffuse()
void Pixel::Light::setDiffuse |
( |
const Vertex3f & | color | ) |
|
◆ setLight()
void Pixel::Light::setLight |
( |
float * | pPosition | ) |
|
|
inline |
◆ setShine()
void Pixel::Light::setShine |
( |
float | shine | ) |
|
◆ setSpecular()
void Pixel::Light::setSpecular |
( |
const Vertex3f & | color | ) |
|
◆ update()
virtual void Pixel::Light::update |
( |
Material * | pMaterial | ) |
|
|
pure virtual |
◆ ColorLightMaterial
friend class ColorLightMaterial |
|
friend |
◆ ColorLightTexture2DMaterial
friend class ColorLightTexture2DMaterial |
|
friend |
◆ ambient
Array describing the color of the ambient light. Ambient-light is independent of light-position and view-position.
◆ diffuse
Array describing the color of the diffuse light. Diffuse-light is dependent on the light-position.
◆ pLightPosition
float* Pixel::Light::pLightPosition |
The light within the scene.
◆ shine
float Pixel::Light::shine |
Factor of 'shine' for the light.
◆ specular
Array describing the color of the specular light. Specular-light is dependent on the light-position and view-position.
◆ uniformAmbientColorString
String Pixel::Light::uniformAmbientColorString |
|
protected |
The color of ambient-light.
◆ uniformDiffuseColorString
String Pixel::Light::uniformDiffuseColorString |
|
protected |
The color of diffuse-light.
◆ uniformLightPositionString
String Pixel::Light::uniformLightPositionString |
|
protected |
The position of the light-source
◆ uniformShineString
String Pixel::Light::uniformShineString |
|
protected |
The factor of shine with respect to the view-position.
◆ uniformSpecularColorString
String Pixel::Light::uniformSpecularColorString |
|
protected |
The color of specular-light.
◆ varyingLightString
String Pixel::Light::varyingLightString |
|
protected |
◆ viewPosition
This is the position of the view-matrix or camera-source and the represents the point-of-view.
The documentation for this class was generated from the following file:
- src/surface/render/color/pixel/light.h