static void SetKeyword(Material m, string keyword, bool state) { if (state) m.EnableKeyword (keyword); else m.DisableKeyword (keyword); } }