Implement of the shader consts binding.

This commit is contained in:
Areloch 2017-10-10 15:54:54 -05:00
parent 74138342d1
commit 70c154c7d3
12 changed files with 137 additions and 7 deletions

View file

@ -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*, (),,

View file

@ -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();
};