|
Rasterfarm-SDK
|
#include <normal2d.h>
Public Member Functions | |
| Normal2D (float *pLightPosition, Engine::Texture *pTexture, const Attribute &attribute) | |
| Normal2D (float *pLightPosition, Engine::Texture *pTexture, const Vector3fArray &tangent, const Vector3fArray &bitangent, const Attribute &attribute) | |
| Normal2D (Raster::Light *pObject, Engine::Texture *pTexture, const Attribute &attribute) | |
| Normal2D (Raster::Light *pObject, Engine::Texture *pTexture, const Vector3fArray &tangent, const Vector3fArray &bitangent, const Attribute &attribute) | |
| virtual | ~Normal2D () |
| virtual void | create (Material *pMaterial) |
| virtual void | update (Material *pMaterial) |
| virtual void | addShaderResources (Material *pMaterial) |
| virtual void | addShaderCode (Material *pMaterial) |
| virtual void | set (const Matrix4f &viewMatrix) |
| void | setLight (float *pPosition) |
| void | setLight (Raster::Light *pObject) |
| void | setAmbient (const Vertex3f &color) |
| void | setSpecular (const Vertex3f &color) |
| void | setDiffuse (const Vertex3f &color) |
| void | setShine (float shine) |
| Vector3fArray & | getTangentArray () |
| Vector3fArray & | getBiTangentArray () |
| void | createTangents (Shape::Geometry *pGeometry) |
Public Member Functions inherited from Texel::Texture2D | |
| Texture2D (const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d") | |
| Texture2D (Engine::Texture *pTexture, const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d") | |
| virtual | ~Texture2D () |
| Vector2fArray & | getTextureCoord () |
| void | setTextureCoordArray (const Vector2fArray &array) |
| void | setTextureCoord (const Vector2f &textureCoord, uint index) |
Public Member Functions inherited from Texel::Texture | |
| Texture (const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed) | |
| Texture (Engine::Texture *pTexture, const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed) | |
| virtual | ~Texture () |
| Engine::Texture * | getTexture () |
| virtual void | setTexture (Engine::Texture *pTexture) |
| bool | isProjection () |
| bool | isMixed () |
Public Member Functions inherited from Texel::Sampler | |
| Sampler (const char *samplerName, const Attribute &attribute) | |
| virtual | ~Sampler () |
| uint | getSamplerIndex () |
Static Public Attributes | |
| static const String | tangentAttributeString |
| static const String | bitangentAttributeString |
Static Public Attributes inherited from Texel::Texture2D | |
| static const String | attributeString |
| static const String | varyingString |
Protected Attributes | |
| Matrix4f | model |
| Render::NormalVertex * | pNormalVertex |
| Render::NormalMatrix * | pNormalMatrix |
| Vertex3f | viewPosition |
| Vector3f | ambient |
| Vector3f | specular |
| Vector3f | diffuse |
| float | shine |
| float * | pLightPosition |
| Vector3fArray | tangent |
| Vector3fArray | bitangent |
| bool | calculateTangents |
Protected Attributes inherited from Texel::Texture2D | |
| Vector2fArray | textureCoord |
Protected Attributes inherited from Texel::Texture | |
| Engine::Texture * | pTexture |
| TextureType | target |
| bool | projection |
| bool | mixed |
Protected Attributes inherited from Texel::Sampler | |
| String | samplerName |
| TextureUnit | samplerIndex |
Additional Inherited Members | |
Protected Member Functions inherited from Texel::Sampler | |
| void | setSamplerName (uint samplerIndex) |
| Texel::Normal2D::Normal2D | ( | float * | pLightPosition, |
| Engine::Texture * | pTexture, | ||
| const Attribute & | attribute ) |
| Texel::Normal2D::Normal2D | ( | float * | pLightPosition, |
| Engine::Texture * | pTexture, | ||
| const Vector3fArray & | tangent, | ||
| const Vector3fArray & | bitangent, | ||
| const Attribute & | attribute ) |
| Texel::Normal2D::Normal2D | ( | Raster::Light * | pObject, |
| Engine::Texture * | pTexture, | ||
| const Attribute & | attribute ) |
| Texel::Normal2D::Normal2D | ( | Raster::Light * | pObject, |
| Engine::Texture * | pTexture, | ||
| const Vector3fArray & | tangent, | ||
| const Vector3fArray & | bitangent, | ||
| const Attribute & | attribute ) |
|
virtual |
|
virtual |
Reimplemented from Texel::Texture2D.
|
virtual |
Reimplemented from Texel::Texture2D.
|
virtual |
Reimplemented from Texel::Texture2D.
| void Texel::Normal2D::createTangents | ( | Shape::Geometry * | pGeometry | ) |
|
inline |
|
inline |
|
virtual |
| void Texel::Normal2D::setAmbient | ( | const Vertex3f & | color | ) |
| void Texel::Normal2D::setDiffuse | ( | const Vertex3f & | color | ) |
|
inline |
| void Texel::Normal2D::setLight | ( | Raster::Light * | pObject | ) |
| void Texel::Normal2D::setShine | ( | float | shine | ) |
| void Texel::Normal2D::setSpecular | ( | const Vertex3f & | color | ) |
|
virtual |
Reimplemented from Texel::Texture2D.
|
protected |
Array describing the color of the ambient light. Ambient-light is independent of light-position and view-position.
|
protected |
An array of vertex bitangents.
|
static |
|
protected |
|
protected |
Array describing the color of the diffuse light. Diffuse-light is dependent on the light-position.
|
protected |
|
protected |
The light-position within the scene.
|
protected |
Pointer to component containing the normal-matrix. Normal2D will only allocate if does not exist.
|
protected |
Pointer to component containing the normal-attribute array. Normal2D will only allocate if does not exist.
|
protected |
Factor of 'shine' for the light.
|
protected |
Array describing the color of the specular light. Specular-light is dependent on the light-position and view-position.
|
protected |
An array of vertex tangents.
|
static |
|
protected |
This is the position of the view-matrix or camera-source and the represents the point-of-view.