Developer Documentation
|
Public Member Functions | |
void | modifyVertexIO (ShaderGenerator *_shader) |
Add your own inputs/outputs to the vertex shader. More... | |
void | modifyTessControlIO (ShaderGenerator *_shader) |
Add your own inputs/outputs to the tessellation control shader. More... | |
void | modifyTessEvalIO (ShaderGenerator *_shader) |
Add your own inputs/outputs to the tessellation evaluation shader. More... | |
void | modifyGeometryIO (ShaderGenerator *_shader) |
Add your own inputs/outputs to the geometry shader. More... | |
void | modifyFragmentIO (ShaderGenerator *_shader) |
Add your own inputs/outputs to the fragment shader. More... | |
void | modifyVertexBeginCode (QStringList *_code) |
Append code the the vertex shader. More... | |
void | modifyVertexEndCode (QStringList *_code) |
Append code the the vertex shader. More... | |
void | modifyFragmentBeginCode (QStringList *_code) |
Append code the the fragment shader. More... | |
void | modifyFragmentEndCode (QStringList *_code) |
Append code the the fragment shader. More... | |
const QString & | filename () const |
const QDateTime & | filetime () const |
void | filetime (const QDateTime &_newtime) |
void | clear () |
Public Member Functions inherited from ACG::ShaderModifier | |
virtual void | modifyLightingCode (QStringList *_code, int _lightId, ShaderGenLightType _lightType) |
Modify the default lighting code of the shader generator. More... | |
virtual bool | replaceDefaultLightingCode () |
Specify whether this modifier replaces or extends the default lighting code. More... | |
unsigned int | getID () |
Returns the modifier ID. More... | |
operator std::vector< unsigned int > () const | |
std::vector< unsigned int > | operator| (const std::vector< unsigned int > &_v) const |
Static Public Member Functions | |
static ShaderModifierFile * | loadFromFile (QString _filename) |
Static Public Member Functions inherited from ACG::ShaderModifier | |
static ShaderModifier * | loadFromFile (QString _filename) |
Load a modifier from file. More... | |
Private Member Functions | |
void | loadBlocks (const QStringList &_lines) |
void | modifyIO (int _stage, ShaderGenerator *_shader) |
Static Private Attributes | |
static QHash< QString, ShaderModifierFile > | fileCache_ |
Definition at line 2473 of file ShaderGenerator.cc.
|
inlinevirtual |
Append code the the fragment shader.
Refer to the generation structure (Shader Generator ) to see where your code is added and which variables you can modify. Use
to insert your code here
_code | string list of shader code. |
Reimplemented from ACG::ShaderModifier.
Definition at line 2493 of file ShaderGenerator.cc.
|
inlinevirtual |
Append code the the fragment shader.
Refer to the generation structure (Shader Generator ) to see where your code is added and which variables you can modify. Use
to insert your code here.
_code | string list of shader code. |
Reimplemented from ACG::ShaderModifier.
Definition at line 2494 of file ShaderGenerator.cc.
|
inlinevirtual |
Add your own inputs/outputs to the fragment shader.
your implementation may look like this:
_shader | shader interface |
Reimplemented from ACG::ShaderModifier.
Definition at line 2488 of file ShaderGenerator.cc.
|
inlinevirtual |
Add your own inputs/outputs to the geometry shader.
your implementation may look like this:
_shader | shader interface |
Reimplemented from ACG::ShaderModifier.
Definition at line 2487 of file ShaderGenerator.cc.
|
inlinevirtual |
Add your own inputs/outputs to the tessellation control shader.
your implementation may look like this:
_shader | shader interface |
Reimplemented from ACG::ShaderModifier.
Definition at line 2485 of file ShaderGenerator.cc.
|
inlinevirtual |
Add your own inputs/outputs to the tessellation evaluation shader.
your implementation may look like this:
_shader | shader interface |
Reimplemented from ACG::ShaderModifier.
Definition at line 2486 of file ShaderGenerator.cc.
|
inlinevirtual |
Append code the the vertex shader.
Refer to the generation structure (Shader Generator ) to see where your code is added and which variables you can modify. Use
to insert your code here.
_code | string list of shader code. |
Reimplemented from ACG::ShaderModifier.
Definition at line 2491 of file ShaderGenerator.cc.
|
inlinevirtual |
Append code the the vertex shader.
Refer to the generation structure (Shader Generator ) to see where your code is added and which variables you can modify. Use
to insert your code here
_code | string list of shader code. |
Reimplemented from ACG::ShaderModifier.
Definition at line 2492 of file ShaderGenerator.cc.
|
inlinevirtual |
Add your own inputs/outputs to the vertex shader.
Your implementation may look like this:
_shader | shader interface |
Reimplemented from ACG::ShaderModifier.
Definition at line 2484 of file ShaderGenerator.cc.