Rasterfarm-SDK
Loading...
Searching...
No Matches
Pixel::PointLight Class Reference

#include <pointlight.h>

Inheritance diagram for Pixel::PointLight:
Pixel::Light Pixel::Factor ViewUpdate Component

Public Member Functions

 PointLight (float *pLightPosition, const Attribute &attribute)
 PointLight.
 
 PointLight (Raster::Light *pLight, const Attribute &attribute)
 PointLight.
 
virtual ~PointLight ()
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
void setLight (Raster::Light *pObject)
 
- Public Member Functions inherited from Pixel::Light
 Light (float *pLightPosition, const Attribute &attribute)
 
virtual ~Light ()
 
virtual void set (const Matrix4f &view)
 
void setLight (float *pPosition)
 
void setAmbient (const Vertex3f &color)
 
void setSpecular (const Vertex3f &color)
 
void setDiffuse (const Vertex3f &color)
 
void setShine (float shine)
 
const String & getVaryingString ()
 
- Public Member Functions inherited from Pixel::Factor
 Factor (const Attribute &attribute)
 
virtual ~Factor ()
 

Protected Attributes

Render::NormalVertexpNormalVertex
 
Render::NormalMatrixpNormalMatrix
 
- Protected Attributes inherited from Pixel::Light
String uniformLightPositionString
 
String uniformAmbientColorString
 
String uniformSpecularColorString
 
String uniformDiffuseColorString
 
String uniformShineString
 
String varyingLightString
 

Additional Inherited Members

- Public Attributes inherited from Pixel::Light
Vertex3f viewPosition
 
Vector3f ambient
 
Vector3f specular
 
Vector3f diffuse
 
float shine
 
floatpLightPosition
 

Constructor & Destructor Documentation

◆ PointLight() [1/2]

Pixel::PointLight::PointLight ( float * pLightPosition,
const Attribute & attribute )

PointLight.

Parameters
mixusing linear interpolation as opposed to factoring. Note that factoring in the light will create the appearance of self-shadowing.

◆ PointLight() [2/2]

Pixel::PointLight::PointLight ( Raster::Light * pLight,
const Attribute & attribute )

PointLight.

Parameters
mixusing linear interpolation as opposed to factoring. Note that factoring in the light will create the appearance of self-shadowing.

◆ ~PointLight()

virtual Pixel::PointLight::~PointLight ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Pixel::PointLight::addShaderCode ( Material * pMaterial)
virtual

Implements Pixel::Light.

◆ addShaderResources()

virtual void Pixel::PointLight::addShaderResources ( Material * pMaterial)
virtual

Reimplemented from Pixel::Light.

◆ create()

virtual void Pixel::PointLight::create ( Material * pMaterial)
virtual

Implements Pixel::Light.

◆ setLight()

void Pixel::PointLight::setLight ( Raster::Light * pObject)

◆ update()

virtual void Pixel::PointLight::update ( Material * pMaterial)
virtual

Implements Pixel::Light.

Member Data Documentation

◆ pNormalMatrix

Render::NormalMatrix* Pixel::PointLight::pNormalMatrix
protected

Pointer to component containing the normal-matrix. Normal2D will only allocate if does not exist.

◆ pNormalVertex

Render::NormalVertex* Pixel::PointLight::pNormalVertex
protected

Pointer to component containing the normal-attribute array. Normal2D will only allocate if does not exist.


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