Game Development Community

[Beta 5 Bug] RenderBinManager will not return materials for items in the traslucent bin

by Jaimi McEntire · in Torque 3D Professional · 08/26/2009 (1:10 pm) · 2 replies

In renderBinManager.h, change the getMaterial function to look like this:

/// Utility function, gets the material from the RenderInst if available, otherwise, return NULL   
inline BaseMatInstance* RenderBinManager::getMaterial(RenderInst* inst) const  
{   
   if (inst->type == RenderPassManager::RIT_Mesh || inst->type == RenderPassManager::RIT_Interior || inst->type == RenderPassManager::RIT_Translucent)   
      return static_cast<MeshRenderInst*>(inst)->matInst;            
  
   return NULL;         
}

#1
08/26/2009 (7:09 pm)
Logged as THREED-709
#2
09/05/2009 (3:57 am)
Fixed for the next release. Thanks again.