|
ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Shader based material
Public Member Functions | |
| ShaderMaterial (const shared_ptr< ShaderMaterial > &orig) | |
| ShaderMaterial (const string &fragShaderFileName, const string &vertShaderFileName="", const string &name="ShaderMaterial") | |
| const auto & | getFragFileName () const |
| const auto & | getVertFileName () const |
| void | setParameter (int index, vec4 value) |
| auto | getParameter (const int index) const |
Public Member Functions inherited from Material | |
| 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) |
Static Public Attributes | |
| static constexpr int | MAX_PARAMETERS = 4 |
|
explicit |
Creates a ShaderMaterial by copy
|
explicit |
Creates a ShaderMaterial
| fragShaderFileName | fragment shader file path, relative to the application directory |
| vertShaderFileName | vertex shader file path, relative to the application directory |
| name | Resource name |
|
nodiscardinline |
Returns the fragment shader file path, relative to the application directory
|
nodiscardinline |
Returns a parameter value
|
nodiscardinline |
Returns the vertex shader file path, relative to the application directory
| void setParameter | ( | int | index, |
| vec4 | value | ||
| ) |
Sets a parameter value
|
staticconstexpr |
Maximum number of parameters of a ShaderMaterial
1.7.0