public void SetEffect(EffectManager11 effectManager) { effectManager.SetMaterial(OriginMaterial, Textures); switch (OriginMaterial.SphereMode) { case SphereType.None: case SphereType.Mul: case SphereType.SubTex: SetEffect(effectManager, 0); break; case SphereType.Add: SetEffect(effectManager, 1); break; } }
public void SetEffect(EffectManager11 effectManager, int technique) { effectManager.SetMaterial(OriginMaterial, Textures); effectManager.SetTechAndPass(technique, 0); }