Exemplo n.º 1
0
        public void Default()
        {
            _datalen                          = 512;
            _ref0                             =
                _ref1                         =
                    _ref2                     =
                        _ref3                 =
                            _ref4             =
                                _ref5         =
                                    _ref6     =
                                        _ref7 = -1;

            _stages = 1;

            TEVStage stage = new TEVStage();

            AddChild(stage, true);
            stage.Default();
        }
Exemplo n.º 2
0
        public void Default()
        {
            Name                             = String.Format("Shader{0}", Index);
            _datalen                         = 512;
            ref0                             =
                ref1                         =
                    ref2                     =
                        ref3                 =
                            ref4             =
                                ref5         =
                                    ref6     =
                                        ref7 = -1;

            stages = 1;

            //MDL0ShaderStructNode s = new MDL0ShaderStructNode();
            //AddChild(s, true);
            //s.Default();

            TEVStage stage = new TEVStage(Children.Count);

            AddChild(stage, true);
            stage.Default();
        }
        //private void CreateStruct()
        //{
        //    if (_resource.Children.Count < 8)
        //    {
        //        MDL0ShaderStructNode shadstr = new MDL0ShaderStructNode();
        //        _resource.AddChild(shadstr, true);
        //        shadstr.Default();
        //        Nodes[Nodes.Count - 1].EnsureVisible();
        //        //TreeView.SelectedNode = Nodes[Nodes.Count - 1];
        //    }
        //}
        private void CreateStage()
        {
            if (_resource.Children.Count < 16)
            {
                TEVStage stage = new TEVStage();
                _resource.AddChild(stage, true);
                stage.Default();

                ((MDL0ShaderNode)_resource).STGs = (byte)_resource.Children.Count;

                Nodes[Nodes.Count - 1].EnsureVisible();
                //TreeView.SelectedNode = Nodes[Nodes.Count - 1];
            }
        }
        public void Default()
        {
            _datalen = 512;
            _ref0 =
            _ref1 =
            _ref2 =
            _ref3 =
            _ref4 =
            _ref5 =
            _ref6 =
            _ref7 = -1;

            _stages = 1;

            TEVStage stage = new TEVStage();
            AddChild(stage, true);
            stage.Default();
        }