mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Implement of the shader consts binding.
This commit is contained in:
parent
74138342d1
commit
70c154c7d3
12 changed files with 137 additions and 7 deletions
|
|
@ -172,6 +172,7 @@ void RenderBinManager::setupSGData( MeshRenderInst *ri, SceneData &data )
|
|||
data.lightmap = ri->lightmap;
|
||||
data.visibility = ri->visibility;
|
||||
data.materialHint = ri->materialHint;
|
||||
data.customShaderData = ri->mCustomShaderData;
|
||||
}
|
||||
|
||||
DefineEngineMethod( RenderBinManager, getBinType, const char*, (),,
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ struct RenderInst;
|
|||
class MatrixSet;
|
||||
class GFXPrimitiveBufferHandle;
|
||||
|
||||
class CustomShaderBindingData;
|
||||
|
||||
/// A RenderInstType hash value.
|
||||
typedef U32 RenderInstTypeHash;
|
||||
|
||||
|
|
@ -382,6 +384,9 @@ struct MeshRenderInst : public RenderInst
|
|||
const char *objectName;
|
||||
#endif
|
||||
|
||||
//Custom Shader data
|
||||
Vector<CustomShaderBindingData*> mCustomShaderData;
|
||||
|
||||
void clear();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue