ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Base class for all materials of models surfaces
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) |
![]() | |
auto | getId () const |
const auto & | getName () const |
string | toString () const override |
virtual shared_ptr< Resource > | duplicate () const |
![]() | |
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) |
|
nodiscardinline |
Returns the alpha scissor threshold value
|
nodiscardinline |
Returns the cull mode.
|
nodiscardinline |
Returns the transparency mode
|
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.
|
inline |
Sets the CullMode. Determines which side of the triangle to cull depending on whether the triangle faces towards or away from the camera.
|
inline |
Sets the transparency mode