Molecular Vis
Improving perception of molecular visualization
|
Base class for materials. More...
#include <Material.h>
Public Member Functions | |
Material (std::shared_ptr< Shader > shader) | |
virtual void | setUniforms () |
virtual std::shared_ptr< Shader > | getShader () final |
Protected Attributes | |
std::shared_ptr< Shader > | shader |
Base class for materials.
Base class for materials.
Material::Material | ( | std::shared_ptr< Shader > | shader | ) |
Constructs material with a given shader.
shader | Shader that is used to draw the material. |
|
finalvirtual |
Gets the shader used to draw the material.
|
virtual |
Sets all material related uniform in its shader.
Reimplemented in PBRMaterial, and LambertMaterial.