Material is used to render a mesh.
More...
#include <Material.hpp>
|
enum | DepthFunction { NoneWriteOff,
LessOrEqualWriteOn
} |
| Depth function used when rendering a mesh using material.
|
|
Material is used to render a mesh.
class Shader* ae3d::Material::GetShader |
( |
| ) |
|
|
inline |
bool ae3d::Material::IsBackFaceCulled |
( |
| ) |
const |
|
inline |
- Returns
- True, if backfaces are culled.
bool ae3d::Material::IsValidShader |
( |
| ) |
const |
- Returns
- True if the shader exists and has been compiled and linked successfully.
void ae3d::Material::SetBackFaceCulling |
( |
bool |
enable | ) |
|
|
inline |
- Parameters
-
enable | Enable backface culling. Defaults to true. |
void ae3d::Material::SetDepthFunction |
( |
DepthFunction |
aDepthFunction | ) |
|
|
inline |
- Parameters
-
aDepthFunction | Depth function. |
void ae3d::Material::SetFloat |
( |
const char * |
name, |
|
|
float |
value |
|
) |
| |
- Parameters
-
name | Float uniform name. |
value | Value. |
static void ae3d::Material::SetGlobalRenderTexture |
( |
const char * |
name, |
|
|
class RenderTexture * |
renderTexture |
|
) |
| |
|
static |
Sets a texture into every material, overriding textures set by SetTexture.
- Parameters
-
name | Texture uniform name. |
renderTexture | Render texture. |
void ae3d::Material::SetInt |
( |
const char * |
name, |
|
|
int |
value |
|
) |
| |
- Parameters
-
name | Integer uniform name. |
value | Value. |
void ae3d::Material::SetMatrix |
( |
const char * |
name, |
|
|
const Matrix44 & |
matrix |
|
) |
| |
- Parameters
-
name | Name. This is a uniform in the shader. |
matrix | 4x4 matrix. |
void ae3d::Material::SetRenderTexture |
( |
const char * |
name, |
|
|
RenderTexture * |
renderTexture |
|
) |
| |
- Parameters
-
name | Texture uniform name. |
renderTexture | Render texture. |
void ae3d::Material::SetShader |
( |
Shader * |
shader | ) |
|
void ae3d::Material::SetTexture |
( |
const char * |
name, |
|
|
class Texture2D * |
texture |
|
) |
| |
- Parameters
-
name | Name. This is a uniform in the shader. |
texture | Texture. |
void ae3d::Material::SetTexture |
( |
const char * |
name, |
|
|
class TextureCube * |
texture |
|
) |
| |
- Parameters
-
name | Texture uniform name. |
texture | Texture. |
void ae3d::Material::SetVector |
( |
const char * |
name, |
|
|
const Vec3 & |
vec3 |
|
) |
| |
- Parameters
-
name | Vector uniform name. |
vec3 | Vector. |
void ae3d::Material::SetVector |
( |
const char * |
name, |
|
|
const Vec4 & |
vec |
|
) |
| |
- Parameters
-
name | Name. This is a uniform in the shader. |
vec | Vector. |
The documentation for this class was generated from the following file: