diff --git a/Engine/source/T3D/tsStatic.cpp b/Engine/source/T3D/tsStatic.cpp index 143fadb42..9cc40968e 100644 --- a/Engine/source/T3D/tsStatic.cpp +++ b/Engine/source/T3D/tsStatic.cpp @@ -330,7 +330,7 @@ bool TSStatic::onAdd() mCubeReflector.unregisterReflector(); if ( reflectorDesc ) - mCubeReflector.registerReflector( this, reflectorDesc ); + mCubeReflector.registerReflector( this, reflectorDesc ); } _updateShouldTick(); @@ -690,32 +690,6 @@ void TSStatic::prepRenderImage( SceneRenderState* state ) // Acculumation rdata.setAccuTex(mAccuTex); - //Various arbitrary shader render bits to add - if (mCustomShaderBinds.empty()) - { - CustomShaderBindingData minBnds; - minBnds.setFloat3(StringTable->insert("objectBoundsMin"), getWorldBox().minExtents); - mCustomShaderBinds.push_back(minBnds); - - CustomShaderBindingData maxBnds; - maxBnds.setFloat3(StringTable->insert("objectBoundsMax"), getWorldBox().maxExtents); - mCustomShaderBinds.push_back(maxBnds); - - CustomShaderBindingData colorMin; - colorMin.setFloat3(StringTable->insert("colorMin"), Point3F(1,0,0)); - mCustomShaderBinds.push_back(colorMin); - - CustomShaderBindingData colorMax; - colorMax.setFloat3(StringTable->insert("colorMax"), Point3F(0, 1, 0)); - mCustomShaderBinds.push_back(colorMax); - } - - if (!mCustomShaderBinds.empty()) - { - for(U32 i=0; i < mCustomShaderBinds.size(); i++) - rdata.addCustomShaderBinding(mCustomShaderBinds[i]); - } - // If we have submesh culling enabled then prepare // the object space frustum to pass to the shape. Frustum culler; diff --git a/Engine/source/T3D/tsStatic.h b/Engine/source/T3D/tsStatic.h index dab344831..4dbcb6920 100644 --- a/Engine/source/T3D/tsStatic.h +++ b/Engine/source/T3D/tsStatic.h @@ -203,8 +203,6 @@ protected: F32 mRenderNormalScalar; S32 mForceDetail; - Vector mCustomShaderBinds; - public: TSStatic();