Game Development Community

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
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?