Workspace 6.21.5
|
#include <Rendering/SceneComponents/Shaders/shader.h>
Public Member Functions | |
bool | appliesSpecular () override |
bool | appliesTransparency () const override |
NullShader * | clone () const override |
ShaderImplementation * | createImplementation (SceneRenderer &) override |
Public Member Functions inherited from Shader | |
~Shader () override | |
bool | activate (SceneRenderer &renderer) |
Activates the shader on the target WSGLRenderer in preparation for drawing an object. | |
virtual bool | appliesScreenSpaceAmbientOcclusion () |
virtual bool | appliesSpecular () |
virtual bool | appliesTransparency () const =0 |
Shader * | clone () const override=0 |
bool | deactivate (SceneRenderer &renderer) |
Deactivates the shader on the target WSGLRenderer, setting it back to the state it was in before the shader was bound. | |
int | getId () const |
Mesh::MeshModelSource::MeshModelInterfaceLockedPtr | getMeshModelInterface (const QString &modelId, Mesh::MeshModelLibrary &modelLib) |
bool | getModelSourceUpdateRequested () const |
bool | getOptimizeOutInternalVolumeElements () const |
double | getSegmentLineWidth () const |
virtual Texturizer & | getTexturizer () |
virtual const Texturizer & | getTexturizer () const |
bool | renderCurrentModel (SceneRenderer &renderer) |
Renders the model currently being processed by the specified renderer.s. | |
bool | renderCurrentModelGlyphs (SceneRenderer &renderer) |
void | setOptimizeOutInternalVolumeElements (bool val) |
void | setSegmentLineWidth (double width) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from Shader | |
Shader () | |
Shader (const Shader &shader) | |
void | addImplementation (const SceneRendererContext &context, ShaderImplementation &impl) |
void | setId (int id) |
"Empty" shader that does nothing, used to allow the shader interface to be used by datafactories. It will never be able to be rendered, as is impossible to have an implementation for it.
|
inlineoverridevirtual |
Sub-classes only need to overide this if they apply specular high-lights (eg. Blinn-Phong).
Reimplemented from Shader.
|
inlineoverridevirtual |
Subclasses must override this to specify whether they apply transparency to objects or not when they are enabled.
Implements Shader.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Shader.