mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
Implement of the shader consts binding.
This commit is contained in:
parent
6f8e4cb3ee
commit
ccdc93fc25
12 changed files with 137 additions and 7 deletions
|
|
@ -97,6 +97,21 @@ public:
|
|||
GFXShaderConstHandle* mNodeTransforms;
|
||||
|
||||
void init( GFXShader* shader, CustomMaterial* mat = NULL );
|
||||
|
||||
};
|
||||
|
||||
class CustomFeatureShaderConstHandles
|
||||
{
|
||||
public:
|
||||
struct handleData
|
||||
{
|
||||
StringTableEntry handleName;
|
||||
GFXShaderConstHandle* handle;
|
||||
};
|
||||
|
||||
Vector<handleData> mHandles;
|
||||
|
||||
void init(GFXShader *shader, Vector<CustomShaderFeatureData*> customFeatureData);
|
||||
};
|
||||
|
||||
class ShaderRenderPassData : public RenderPassData
|
||||
|
|
@ -109,6 +124,7 @@ public:
|
|||
|
||||
GFXShaderRef shader;
|
||||
ShaderConstHandles shaderHandles;
|
||||
CustomFeatureShaderConstHandles customFeatureShaderHandles;
|
||||
Vector<ShaderFeatureConstHandles*> featureShaderHandles;
|
||||
|
||||
virtual void reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue