[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;
}
Torque 3D Owner Kenneth Holst
Default Studio Name