ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
Material Class Reference

Detailed Description

Base class for all materials of models surfaces

Inheritance diagram for Material:
Resource Object ShaderMaterial StandardMaterial

Public Member Functions

auto getCullMode () const
 
void setCullMode (const CullMode mode)
 
auto getTransparency () const
 
void setTransparency (const Transparency transparencyMode)
 
auto getAlphaScissor () const
 
void setAlphaScissor (const float scissor)
 
- Public Member Functions inherited from Resource
auto getId () const
 
const auto & getName () const
 
string toString () const override
 
virtual shared_ptr< Resource > duplicate () const
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 

Member Function Documentation

auto getAlphaScissor ( ) const
nodiscardinline

Returns the alpha scissor threshold value

auto getCullMode ( ) const
nodiscardinline

Returns the cull mode.

auto getTransparency ( ) const
nodiscardinline

Returns the transparency mode

void setAlphaScissor ( const float  scissor)
inline

Sets the alpha scissor threshold value Threshold at which the alpha scissor will discard values. Higher values will result in more pixels being discarded. If the material becomes too opaque at a distance, try increasing this value. If the material disappears at a distance, try decreasing this value.

void setCullMode ( const CullMode  mode)
inline

Sets the CullMode. Determines which side of the triangle to cull depending on whether the triangle faces towards or away from the camera.

void setTransparency ( const Transparency  transparencyMode)
inline

Sets the transparency mode