Molecular Vis
Improving perception of molecular visualization
Material Class Reference

Base class for materials. More...

#include <Material.h>

Inheritance diagram for Material:
LambertMaterial PBRMaterial

Public Member Functions

 Material (std::shared_ptr< Shader > shader)
 
virtual void setUniforms ()
 
virtual std::shared_ptr< ShadergetShader () final
 

Protected Attributes

std::shared_ptr< Shadershader
 

Detailed Description

Base class for materials.

Base class for materials.

Constructor & Destructor Documentation

◆ Material()

Material::Material ( std::shared_ptr< Shader shader)

Constructs material with a given shader.

Parameters
shaderShader that is used to draw the material.

Member Function Documentation

◆ getShader()

std::shared_ptr< Shader > Material::getShader ( )
finalvirtual

Gets the shader used to draw the material.

Returns
Shader used to draw the material.

◆ setUniforms()

void Material::setUniforms ( )
virtual

Sets all material related uniform in its shader.

Reimplemented in PBRMaterial, and LambertMaterial.

Member Data Documentation

◆ shader

std::shared_ptr<Shader> Material::shader
protected

Shader that is used to draw the material.


The documentation for this class was generated from the following files: