Material
Abstract base class for material types.
Not intended for direct use.
Properties
blending Blending
cpp
Blending blending { Blending::Normal }
Blending mode used for rendering this material.
depth_test bool
cpp
bool depth_test { true }
Enables depth testing.
flat_shaded bool
cpp
bool flat_shaded { false }
Enables flat shading.
fog bool
cpp
bool fog { true }
Enables scene fog for this material.
opacity float
cpp
float opacity { 1.0f }
Value in the range of 0.0
- 1.0
indicating how transparent the material is.
polygon_offset_factor float
cpp
float polygon_offset_factor { 0.0f }
Sets the polygon offset factor.
polygon_offset_units float
cpp
float polygon_offset_units { 0.0f }
Sets the polygon offset units.
transparent bool
cpp
bool transparent { false }
Enables transparency.
two_sided bool
cpp
bool two_sided { false }
Enables rendering both front and back faces of polygons.
visible bool
cpp
bool visible { true }
Enables visibility.
wireframe bool
cpp
bool wireframe { false }
Enables wireframe rendering.
Functions
GetType() MaterialType pure virtual
cpp
virtual MaterialType vglx::Material::GetType() const=0
Returns material type.
Material::TypeToString() auto
cpp
static auto vglx::Material::TypeToString(MaterialType type)
Parameter | Description |
---|---|
type | MaterialType enum value. |
Converts material type enum value to string.