Workspace 6.21.5
|
A basic lambertian shader which can be attached to meshmodels.
#include <Rendering/SceneComponents/Shaders/textureprojectionshader.h>
Public Member Functions | |
TextureProjectionShader () | |
TextureProjectionShader (const TextureProjectionShader &shader) | |
~TextureProjectionShader () override | |
void | addCamera (Camera &camera, QImage &image) |
bool | appliesTransparency () const override |
void | clear () const |
TextureProjectionShader * | clone () const override |
float | getAlphaValue () const |
Camera & | getCamera (int i) const |
const DataExecution::ObjectArray & | getCameraImages () const |
const DataExecution::ObjectArray & | getCameras () const |
QImage & | getImage (int i) const |
SurfaceRepresentation | getSurfaceRepresentation () const |
size_t | numCameras () const |
TextureProjectionShader & | operator= (const TextureProjectionShader &shader) |
void | setAlphaValue (float alpha) |
void | setSurfaceRepresentation (SurfaceRepresentation r) |
void | setUseLighting (bool b) |
bool | useLighting () const |
Public Member Functions inherited from TypedShader< TextureProjectionShader > | |
~TypedShader () override=default | |
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 | |
Static Public Member Functions inherited from TypedShader< TextureProjectionShader > | |
static void | registerImplementation (const SceneRendererTypeId &rendererId, const ShaderImplementationFactory &factory) |
Protected Member Functions inherited from TypedShader< TextureProjectionShader > | |
TypedShader () | |
TypedShader (const TypedShader &shader) | |
TypedShader * | clone () const override=0 |
Protected Member Functions inherited from Shader | |
Shader () | |
Shader (const Shader &shader) | |
void | addImplementation (const SceneRendererContext &context, ShaderImplementation &impl) |
void | setId (int id) |
TextureProjectionShader | ( | const TextureProjectionShader & | shader | ) |
|
overridedefault |
|
overridevirtual |
Subclasses must override this to specify whether they apply transparency to objects or not when they are enabled.
Implements Shader.
void clear | ( | ) | const |
|
overridevirtual |
Implements TypedShader< TextureProjectionShader >.
float getAlphaValue | ( | ) | const |
Camera & getCamera | ( | int | i | ) | const |
i |
const DataExecution::ObjectArray & getCameraImages | ( | ) | const |
const DataExecution::ObjectArray & getCameras | ( | ) | const |
QImage & getImage | ( | int | i | ) | const |
i |
SurfaceRepresentation getSurfaceRepresentation | ( | ) | const |
size_t numCameras | ( | ) | const |
TextureProjectionShader & operator= | ( | const TextureProjectionShader & | shader | ) |
void setAlphaValue | ( | float | alpha | ) |
void setSurfaceRepresentation | ( | SurfaceRepresentation | r | ) |
void setUseLighting | ( | bool | b | ) |
bool useLighting | ( | ) | const |