Browse Source

Removed test custom shader bindings until memleak is corrected.

Areloch 6 years ago
parent
commit
98c4606b3c
2 changed files with 1 additions and 29 deletions
  1. 1 27
      Engine/source/T3D/tsStatic.cpp
  2. 0 2
      Engine/source/T3D/tsStatic.h

+ 1 - 27
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;

+ 0 - 2
Engine/source/T3D/tsStatic.h

@@ -203,8 +203,6 @@ protected:
    F32 mRenderNormalScalar;
    S32 mForceDetail;
 
-   Vector<CustomShaderBindingData> mCustomShaderBinds;
-
 public:
 
    TSStatic();