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

@ -305,7 +305,9 @@ bool TSStatic::onAdd()
mCubeReflector.unregisterReflector();
if ( reflectorDesc )
mCubeReflector.registerReflector( this, reflectorDesc );
mCubeReflector.registerReflector( this, reflectorDesc );
strudelCSB = new CustomShaderBindingData();
}
_updateShouldTick();
@ -627,6 +629,11 @@ void TSStatic::prepRenderImage( SceneRenderState* state )
// Acculumation
rdata.setAccuTex(mAccuTex);
//Various arbitrary shader render bits to add
strudelCSB->setFloat("strudel", 0.25);
rdata.addCustomShaderBinding(strudelCSB);
// If we have submesh culling enabled then prepare
// the object space frustum to pass to the shape.
Frustum culler;