Odd struct in material.h
by Dan Keller · in Torque Game Engine Advanced · 12/16/2008 (7:35 pm) · 0 replies
In material.h, there is a struct
Why is there a GFXTexHandle for every feature when only a few features are textures?
struct StageData
{
GFXTexHandle tex[GFXShaderFeatureData::NumFeatures];
GFXCubemap * cubemap;
bool lightmap;
StageData()
{
cubemap = NULL;
lightmap = false;
}
};Why is there a GFXTexHandle for every feature when only a few features are textures?
About the author