Material is used to render a mesh.
More...
#include <Material.hpp>
Material is used to render a mesh.
| Shader* ae3d::Material::GetShader |
( |
| ) |
const |
|
inline |
| 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::SetFloat |
( |
const char * |
name, |
|
|
float |
value |
|
) |
| |
- Parameters
-
| name | Float uniform name. |
| value | Value. |
| static void ae3d::Material::SetGlobalRenderTexture |
( |
const char * |
name, |
|
|
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, |
|
|
Texture2D * |
texture |
|
) |
| |
- Parameters
-
| name | Name. This is a uniform in the shader. |
| texture | Texture. |
| void ae3d::Material::SetTexture |
( |
const char * |
name, |
|
|
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: