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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue