public UPass(bool firstPass, Texture2D mix) { m_IsFirst = firstPass; int i, max; for (i = 0, max = m_Texs.Length; i < max; i++) { m_Texs[i] = new UTexture(null); } m_MixTex = mix; Initialize(); }
public void SetTexture(int index, UTexture tex) { m_Texs[index] = tex; }