5 #ifndef __S_OVERRIDE_MATERIAL_H_INCLUDED__ 6 #define __S_OVERRIDE_MATERIAL_H_INCLUDED__ 181 #endif // __S_OVERRIDE_MATERIAL_H_INCLUDED__ SMaterial Material
The Material values.
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Is backface culling enabled? Default: true.
u32 EnableFlags
Which values are overridden.
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Is fog enabled? Default: false.
E_MATERIAL_TYPE MaterialType
Type of the material. Specifies how everything is blended together.
E_MATERIAL_TYPE
Abstracted and easy to use fixed function/programmable pipeline material modes.
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
SMaterialTypeReplacement(u32 replacement)
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Is the ZBuffer enabled? Default: true.
bool UseMipMaps
Shall mipmaps be used if available.
bool TrilinearFilter
Is trilinear filtering enabled? Default: false.
u8 ColorMask
Defines the enabled color planes.
Flag for blend operation.
bool GouraudShading
Flat or Gouraud shading? Default: true.
bool EnableLayers[MATERIAL_MAX_TEXTURES]
Overwrite complete layers (settings of EnableLayerFlags and EnableTextures don't matter then for laye...
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
u8 TextureWrapU
Texture Clamp Mode.
void reset()
disable overrides and reset all flags
bool EnableLayerFlags[MATERIAL_MAX_TEXTURES]
For those flags in EnableFlags which affect layers, set which of the layers are affected.
f32 PolygonOffsetSlopeScale
Variable Z-Buffer offset based on the slope of the polygon.
bool EnableTextures[MATERIAL_MAX_TEXTURES]
Which textures are overridden.
Everything in the Irrlicht Engine can be found in this namespace.
bool Enabled
Global enable flag, overwritten by the SceneManager in each pass.
ColorMaterial enum for vertex color interpretation.
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
const u32 MATERIAL_MAX_TEXTURES
Maximum number of texture an SMaterial can have.
f32 BlendFactor
Store the blend factors.
ColorMask bits, for enabling the color planes.
SOverrideMaterial()
Default constructor.
Is bilinear filtering enabled? Default: true.
unsigned short u16
16 bit unsigned variable.
signed int s32
32 bit signed variable.
bool BackfaceCulling
Is backface culling enabled? Default: true.
u8 AntiAliasing
Sets the antialiasing mode.
Normalizes normals. Default: false.
unsigned int u32
32 bit unsigned variable.
ITexture * Texture
Texture.
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
bool NormalizeNormals
Should normals be normalized?
Is anisotropic filtering? Default: false.
Flag for enabling/disabling mipmap usage.
bool FogEnable
Is fog enabled? Default: false.
u8 AnisotropicFilter
Is anisotropic filtering enabled? Default: 0, disabled.
bool BilinearFilter
Is bilinear filtering enabled? Default: true.
May be written to the zbuffer or is it readonly. Default: true.
Will this material be lighted? Default: true.
Self reallocating template array (like stl vector) with additional features.
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
u16 EnablePasses
Set in which render passes the material override is active.
bool Lighting
Will this material be lighted? Default: true.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
E_POLYGON_OFFSET PolygonOffsetDirection
DEPRECATED. Will be removed after Irrlicht 1.9.
core::array< SMaterialTypeReplacement > MaterialTypes
To overwrite SMaterial::MaterialType.
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Flat or Gouraud shading? Default: true.
void apply(SMaterial &material)
Apply the enabled overrides.
Access to all layers texture wrap settings. Overwrites separate layer settings.
Is trilinear filtering enabled? Default: false.
Struct for holding parameters for a material renderer.
SMaterialTypeReplacement(s32 original, u32 replacement)
Draw as wireframe or filled triangles? Default: false.
u32 Replacement
MaterialType to used to override Original (either one of E_MATERIAL_TYPE or a shader material id)
Is frontface culling enabled? Default: false.
Draw as point cloud or filled triangles? Default: false.