Also,
has anyone used structures in their shaders?
I’m having some difficulty doing so.
I have this declared globally:
struct TexInfo
{
uniform sampler2D tex; //texture unit
uniform int method; //method(reflective,projected,etc…)
uniform int application;//Blend,Decal,Modulate, etc…
};
uniform TexInfo textureInfo[4];
then in a function later on i have:
if(textureInfo[i].method == reflective)
{
do something…
}
well, what you see there is the last configuration out of many attempts. i tried without, with, rearranged, spelled backwards etc…
well, maybe not spelled backwards.