This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofMaterialBaseTypes.h
Go to the documentation of this file.
32// * assimp material: http://assimp.sourceforge.net/lib_html/ai_material_8h.html#7dd415ff703a2cc53d1c22ddbbd7dde0
70 virtual const ofShader & getShader(int textureTarget, bool geometryHasColor, ofGLProgrammableRenderer & renderer) const=0;
84 virtual void updateMaterial(const ofShader & shader,ofGLProgrammableRenderer & renderer) const=0;
99 virtual void updateEnvironmentMaps(const ofShader & shader,ofGLProgrammableRenderer & renderer) const=0;
material parameter properties that can be applied to vertices in the OpenGL lighting model used in de...
Definition ofMaterialBaseTypes.h:41
virtual void bind(ofGLProgrammableRenderer &renderer) const
set to bound. Later used if certain properties are set so the shader can be updated without calling e...
Definition ofMaterialBaseTypes.h:108
virtual bool isBound() const
when begin() is called, the material is set to bound by the renderer.\nSet to unbound via renderer wh...
Definition ofBaseTypes.cpp:332
virtual void updateMaterial(const ofShader &shader, ofGLProgrammableRenderer &renderer) const =0
update the material properties to the material shader
virtual void uploadMatrices(const ofShader &shader, ofGLProgrammableRenderer &renderer) const
upload the given renderer's normal matrix to the material shader
Definition ofBaseTypes.cpp:328
virtual ofFloatColor getAmbientColor() const =0
virtual void unbind(ofGLProgrammableRenderer &renderer) const
unbind the shader.
Definition ofMaterialBaseTypes.h:113
virtual ofFloatColor getEmissiveColor() const =0
virtual const ofShader & getShader(int textureTarget, bool geometryHasColor, ofGLProgrammableRenderer &renderer) const =0
create and return a shader used to implement the materials effect for a given renderer
virtual void updateLights(const ofShader &shader, ofGLProgrammableRenderer &renderer) const =0
update the given renderer's lights to the material shader
virtual void setCustomShader(std::shared_ptr< ofShader > aCustomShader)=0
set a custom shader controlled by the user.
virtual ofFloatColor getDiffuseColor() const =0
virtual ofFloatColor getSpecularColor() const =0
virtual void updateEnvironmentMaps(const ofShader &shader, ofGLProgrammableRenderer &renderer) const =0
update the given renderer's environment maps / cube maps to the material shader
virtual void updateShadows(const ofShader &shader, ofGLProgrammableRenderer &renderer) const =0
update the given renderer's shadows to the material shader
virtual float getShininess() const =0
Definition ofGLProgrammableRenderer.h:17
Definition ofShader.h:35