Beispiel #1
0
        public void Set_MaterialChannel(Material mat, Vector2 t, float r, Vector2 s, SWTexShowChannel channel)
        {
            Set_Material(mat, t, r, s);
            int i = (int)channel;

            mat.SetInt("cmode", i);
        }
Beispiel #2
0
        protected void  TexShowChnEnum()
        {
            Rect rect = new Rect(al_leftWidth + 10, al_topHeight + 30, 40, 10);
            var  c    = (SWTexShowChannel)EditorGUI.EnumPopup(rect, "",
                                                              texShowChannel);

            if (texShowChannel != c)
            {
                SWUndo.Record(this);
                texShowChannel = c;
                TexShowChnEnumSet();
            }
        }