|
| bool | loadSource (const FilePath &vertexShaderFile, const FilePath &pixelShaderFile, bool hasTransparency) override |
| | Load shader source from file.
|
| |
| bool | generateShader (GenContext &context) override |
| | Generate a shader from our currently stored element and the given generator context.
|
| |
| bool | generateShader (ShaderPtr hwShader) override |
| | Generate a shader from the given hardware shader.
|
| |
| void | copyShader (MaterialPtr material) override |
| | Copy shader from one material to this one.
|
| |
|
GlslProgramPtr | getProgram () const |
| | Return the underlying GLSL program.
|
| |
| bool | bindShader () const override |
| | Bind shader.
|
| |
| void | bindViewInformation (CameraPtr camera) override |
| | Bind viewing information for this material.
|
| |
| void | bindImages (ImageHandlerPtr imageHandler, const FileSearchPath &searchPath, bool enableMipmaps=true) override |
| | Bind all images for this material.
|
| |
| void | unbindImages (ImageHandlerPtr imageHandler) override |
| | Unbbind all images for this material.
|
| |
| ImagePtr | bindImage (const FilePath &filePath, const std::string &uniformName, ImageHandlerPtr imageHandler, const ImageSamplingProperties &samplingProperties) override |
| | Bind a single image.
|
| |
| void | bindLighting (LightHandlerPtr lightHandler, ImageHandlerPtr imageHandler, const ShadowState &shadowState) override |
| | Bind lights to shader.
|
| |
| void | bindMesh (MeshPtr mesh) override |
| | Bind the given mesh to this material.
|
| |
| bool | bindPartition (MeshPartitionPtr part) const override |
| | Bind a mesh partition to this material.
|
| |
| void | drawPartition (MeshPartitionPtr part) const override |
| | Draw the given mesh partition.
|
| |
| void | unbindGeometry () override |
| | Unbind all geometry from this material.
|
| |
| VariableBlock * | getPublicUniforms () const override |
| | Return the block of public uniforms for this material.
|
| |
| ShaderPort * | findUniform (const std::string &path) const override |
| | Find a public uniform from its MaterialX path.
|
| |
| void | modifyUniform (const std::string &path, ConstValuePtr value, std::string valueString=EMPTY_STRING) override |
| | Modify the value of the uniform with the given path.
|
| |
|
void | setDocument (DocumentPtr doc) |
| | Set the renderable element associated with this ShaderMaterial.
|
| |
|
DocumentPtr | getDocument () const |
| | Return the document associated with this ShaderMaterial.
|
| |
|
void | setElement (TypedElementPtr val) |
| | Set the renderable element associated with this ShaderMaterial.
|
| |
|
TypedElementPtr | getElement () const |
| | Return the renderable element associated with this ShaderMaterial.
|
| |
|
void | setMaterialNode (NodePtr node) |
| | Set the ShaderMaterial node associated with this ShaderMaterial.
|
| |
|
NodePtr | getMaterialNode () const |
| | Return the ShaderMaterial node associated with this ShaderMaterial.
|
| |
|
void | setUdim (const std::string &val) |
| | Set udim identifier.
|
| |
|
const std::string & | getUdim () |
| | Get any associated udim identifier.
|
| |
|
virtual bool | generateEnvironmentShader (GenContext &context, const FilePath &filename, DocumentPtr stdLib, const FilePath &imagePath) |
| | Generate an environment background shader.
|
| |
|
ShaderPtr | getShader () const |
| | Return the underlying hardware shader.
|
| |
|
bool | hasTransparency () const |
| | Return true if this ShaderMaterial has transparency.
|
| |
Helper class for GLSL generation and rendering of a material.