Ejemplo n.º 1
0
 public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
 {
     switch (technique)
     {
     case MyEffectModelsDNSTechniqueEnum.Low:
     case MyEffectModelsDNSTechniqueEnum.Normal:
     case MyEffectModelsDNSTechniqueEnum.High:
         m_D3DEffect.Technique = m_normalTechnique;
         break;
     }
 }
 public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
 {
     switch (technique)
     {
         case MyEffectModelsDNSTechniqueEnum.Low:
         case MyEffectModelsDNSTechniqueEnum.Normal:
         case MyEffectModelsDNSTechniqueEnum.High:
             m_D3DEffect.Technique = m_normalTechnique;
             break;                                                 
     }
 }
Ejemplo n.º 3
0
        public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
        {
            if (MyRenderConstants.RenderQualityProfile.ForwardRender)
            {
                switch (technique)
                {
                    case MyEffectModelsDNSTechniqueEnum.Holo:
                    case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                        m_D3DEffect.Technique = m_holoForwardTechnique;
                        return;
                        break;
                    case MyEffectModelsDNSTechniqueEnum.Low:
                        m_D3DEffect.Technique = m_forwardTechnique;
                        return;
                        break;
                }
            }

            switch (technique)
            {
                case MyEffectModelsDNSTechniqueEnum.Low:
                case MyEffectModelsDNSTechniqueEnum.LowBlended:
                    m_D3DEffect.Technique = m_lowTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.LowInstanced:
                //    m_xnaEffect.Technique = m_lowInstancedTechnique;
                //    break;
                //case MyEffectModelsDNSTechniqueEnum.LowBlended:
                    //m_xnaEffect.Technique = m_lowBlendedTechnique;
                   // break;
                case MyEffectModelsDNSTechniqueEnum.LowMasked:
                    m_D3DEffect.Technique = m_lowMaskedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.Normal:
                    m_D3DEffect.Technique = m_normalTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.Normalnstanced:
                    //m_xnaEffect.Technique = m_normalInstancedTechnique;
                  //  break;
                case MyEffectModelsDNSTechniqueEnum.NormalBlended:
                    m_D3DEffect.Technique = m_normalBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.NormalMasked:
                    m_D3DEffect.Technique = m_normalMaskedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.High:
                    m_D3DEffect.Technique = m_highTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.HighInstanced:
                  //  m_xnaEffect.Technique = m_highInstancedTechnique;
                  //  break;
                case MyEffectModelsDNSTechniqueEnum.HighBlended:
                    m_D3DEffect.Technique = m_highBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.HighMasked:
                    m_D3DEffect.Technique = m_highMaskedTechnique;
                    break;                         /*
                case MyEffectModelsDNSTechniqueEnum.HighChannels:
                    m_xnaEffect.Technique = m_highChannelsTechnique;
                    break;                           */

                case MyEffectModelsDNSTechniqueEnum.Extreme:
                    m_D3DEffect.Technique = m_extremeTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
                 //   m_xnaEffect.Technique = m_extremeInstancedTechnique;
                   // break;
                case MyEffectModelsDNSTechniqueEnum.ExtremeBlended:
                    m_D3DEffect.Technique = m_extremeBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.ExtremeMasked:
                    m_D3DEffect.Technique = m_extremeMaskedTechnique;
                    break;                             /*
                case MyEffectModelsDNSTechniqueEnum.ExtremeChannels:
                    m_xnaEffect.Technique = m_extremeChannelsTechnique;
                    break;                               */

                case MyEffectModelsDNSTechniqueEnum.Holo:
                    m_D3DEffect.Technique = m_holoTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                    m_D3DEffect.Technique = m_holoIgnoreDepthTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.Stencil:
                    m_D3DEffect.Technique = m_stencilTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.StencilLow:
                    m_D3DEffect.Technique = m_stencilLowTechnique;
                    break;
                /*
                case MyEffectModelsDNSTechniqueEnum.StencilInstanced:
                    m_xnaEffect.Technique = m_stencilTechniqueInstanced;
                    break;
                case MyEffectModelsDNSTechniqueEnum.StencilLowInstanced:
                    m_xnaEffect.Technique = m_stencilLowTechniqueInstanced;
                    break;
                  */
                case MyEffectModelsDNSTechniqueEnum.LowForward:
                    m_D3DEffect.Technique = m_forwardTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.LowBlendedForward:
                    m_D3DEffect.Technique = m_lowBlendedForwardTechnique;
                    break;
            }
        }
        public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
        {
            switch (technique)
            {
                case MyEffectModelsDNSTechniqueEnum.Low:
                case MyEffectModelsDNSTechniqueEnum.LowBlended:
                    m_D3DEffect.Technique = m_lowTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.LowInstanced:
                //    m_xnaEffect.Technique = m_lowInstancedTechnique;
                //    break;
                //case MyEffectModelsDNSTechniqueEnum.LowBlended:
                //m_xnaEffect.Technique = m_lowBlendedTechnique;
                // break;
                case MyEffectModelsDNSTechniqueEnum.LowMasked:
                    m_D3DEffect.Technique = m_lowMaskedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.Normal:
                    m_D3DEffect.Technique = m_normalTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.NormalBlended:
                    m_D3DEffect.Technique = m_normalBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.NormalMasked:
                    m_D3DEffect.Technique = m_normalMaskedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.High:
                    m_D3DEffect.Technique = m_highTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.HighBlended:
                    m_D3DEffect.Technique = m_highBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.HighMasked:
                    m_D3DEffect.Technique = m_highMaskedTechnique;
                    break;                         /*
                case MyEffectModelsDNSTechniqueEnum.HighChannels:
                    m_xnaEffect.Technique = m_highChannelsTechnique;
                    break;                           */

                case MyEffectModelsDNSTechniqueEnum.Extreme:
                    m_D3DEffect.Technique = m_extremeTechnique;
                    break;
                //case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
                //   m_xnaEffect.Technique = m_extremeInstancedTechnique;
                // break;
                case MyEffectModelsDNSTechniqueEnum.ExtremeBlended:
                    m_D3DEffect.Technique = m_extremeBlendedTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.ExtremeMasked:
                    m_D3DEffect.Technique = m_extremeMaskedTechnique;
                    break;                             /*
                case MyEffectModelsDNSTechniqueEnum.ExtremeChannels:
                    m_xnaEffect.Technique = m_extremeChannelsTechnique;
                    break;                               */

                case MyEffectModelsDNSTechniqueEnum.Holo:
                    m_D3DEffect.Technique = m_holoTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                    m_D3DEffect.Technique = m_holoIgnoreDepthTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.Stencil:
                    m_D3DEffect.Technique = m_stencilTechnique;
                    break;
                case MyEffectModelsDNSTechniqueEnum.StencilLow:
                    m_D3DEffect.Technique = m_stencilLowTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.NormalInstanced:
                    m_D3DEffect.Technique = m_normalInstancedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.HighSkinned:
                    m_D3DEffect.Technique = m_highSkinnedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.HighInstanced:
                    m_D3DEffect.Technique = m_highInstancedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.ExtremeSkinned:
                    m_D3DEffect.Technique = m_extremeSkinnedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
                    m_D3DEffect.Technique = m_extremeInstancedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.NormalInstancedSkinned:
                    m_D3DEffect.Technique = m_normalInstancedSkinnedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.HighInstancedSkinned:
                    m_D3DEffect.Technique = m_highInstancedSkinnedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.ExtremeInstancedSkinned:
                    m_D3DEffect.Technique = m_extremeInstancedSkinnedTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.InstancedGeneric:
                    m_D3DEffect.Technique = m_instancedGenericTechnique;
                    break;

                case MyEffectModelsDNSTechniqueEnum.InstancedGenericMasked:
                    m_D3DEffect.Technique = m_instancedGenericMaskedTechnique;
                    break;
            }
        }
Ejemplo n.º 5
0
        public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
        {
            if (MyRenderConstants.RenderQualityProfile.ForwardRender)
            {
                switch (technique)
                {
                case MyEffectModelsDNSTechniqueEnum.Holo:
                case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                    m_D3DEffect.Technique = m_holoForwardTechnique;
                    return;

                    break;

                case MyEffectModelsDNSTechniqueEnum.Low:
                case MyEffectModelsDNSTechniqueEnum.LowMasked:
                    m_D3DEffect.Technique = m_forwardTechnique;
                    return;

                    break;
                }
            }

            switch (technique)
            {
            case MyEffectModelsDNSTechniqueEnum.Low:
            case MyEffectModelsDNSTechniqueEnum.LowBlended:
                m_D3DEffect.Technique = m_lowTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.LowInstanced:
            //    m_xnaEffect.Technique = m_lowInstancedTechnique;
            //    break;
            //case MyEffectModelsDNSTechniqueEnum.LowBlended:
            //m_xnaEffect.Technique = m_lowBlendedTechnique;
            // break;
            case MyEffectModelsDNSTechniqueEnum.LowMasked:
                m_D3DEffect.Technique = m_lowMaskedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.Normal:
                m_D3DEffect.Technique = m_normalTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.Normalnstanced:
            //m_xnaEffect.Technique = m_normalInstancedTechnique;
            //  break;
            case MyEffectModelsDNSTechniqueEnum.NormalBlended:
                m_D3DEffect.Technique = m_normalBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.NormalMasked:
                m_D3DEffect.Technique = m_normalMaskedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.High:
                m_D3DEffect.Technique = m_highTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.HighInstanced:
            //  m_xnaEffect.Technique = m_highInstancedTechnique;
            //  break;
            case MyEffectModelsDNSTechniqueEnum.HighBlended:
                m_D3DEffect.Technique = m_highBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighMasked:
                m_D3DEffect.Technique = m_highMaskedTechnique;
                break;                             /*
                                                    * case MyEffectModelsDNSTechniqueEnum.HighChannels:
                                                    * m_xnaEffect.Technique = m_highChannelsTechnique;
                                                    * break;                           */

            case MyEffectModelsDNSTechniqueEnum.Extreme:
                m_D3DEffect.Technique = m_extremeTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
            //   m_xnaEffect.Technique = m_extremeInstancedTechnique;
            // break;
            case MyEffectModelsDNSTechniqueEnum.ExtremeBlended:
                m_D3DEffect.Technique = m_extremeBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.ExtremeMasked:
                m_D3DEffect.Technique = m_extremeMaskedTechnique;
                break;                                 /*
                                                        * case MyEffectModelsDNSTechniqueEnum.ExtremeChannels:
                                                        * m_xnaEffect.Technique = m_extremeChannelsTechnique;
                                                        * break;                               */

            case MyEffectModelsDNSTechniqueEnum.Holo:
                m_D3DEffect.Technique = m_holoTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                m_D3DEffect.Technique = m_holoIgnoreDepthTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.Stencil:
                m_D3DEffect.Technique = m_stencilTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.StencilLow:
                m_D3DEffect.Technique = m_stencilLowTechnique;
                break;

            /*
             * case MyEffectModelsDNSTechniqueEnum.StencilInstanced:
             *  m_xnaEffect.Technique = m_stencilTechniqueInstanced;
             *  break;
             * case MyEffectModelsDNSTechniqueEnum.StencilLowInstanced:
             *  m_xnaEffect.Technique = m_stencilLowTechniqueInstanced;
             *  break;
             */
            case MyEffectModelsDNSTechniqueEnum.LowForward:
                m_D3DEffect.Technique = m_forwardTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.LowBlendedForward:
                m_D3DEffect.Technique = m_lowBlendedForwardTechnique;
                break;
            }
        }
Ejemplo n.º 6
0
        public void SetTechnique(MyEffectModelsDNSTechniqueEnum technique)
        {
            switch (technique)
            {
            case MyEffectModelsDNSTechniqueEnum.Low:
            case MyEffectModelsDNSTechniqueEnum.LowBlended:
                m_D3DEffect.Technique = m_lowTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.LowInstanced:
            //    m_xnaEffect.Technique = m_lowInstancedTechnique;
            //    break;
            //case MyEffectModelsDNSTechniqueEnum.LowBlended:
            //m_xnaEffect.Technique = m_lowBlendedTechnique;
            // break;
            case MyEffectModelsDNSTechniqueEnum.LowMasked:
                m_D3DEffect.Technique = m_lowMaskedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.Normal:
                m_D3DEffect.Technique = m_normalTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.NormalBlended:
                m_D3DEffect.Technique = m_normalBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.NormalMasked:
                m_D3DEffect.Technique = m_normalMaskedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.High:
                m_D3DEffect.Technique = m_highTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighBlended:
                m_D3DEffect.Technique = m_highBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighMasked:
                m_D3DEffect.Technique = m_highMaskedTechnique;
                break;                             /*
                                                    * case MyEffectModelsDNSTechniqueEnum.HighChannels:
                                                    * m_xnaEffect.Technique = m_highChannelsTechnique;
                                                    * break;                           */

            case MyEffectModelsDNSTechniqueEnum.Extreme:
                m_D3DEffect.Technique = m_extremeTechnique;
                break;

            //case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
            //   m_xnaEffect.Technique = m_extremeInstancedTechnique;
            // break;
            case MyEffectModelsDNSTechniqueEnum.ExtremeBlended:
                m_D3DEffect.Technique = m_extremeBlendedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.ExtremeMasked:
                m_D3DEffect.Technique = m_extremeMaskedTechnique;
                break;                                 /*
                                                        * case MyEffectModelsDNSTechniqueEnum.ExtremeChannels:
                                                        * m_xnaEffect.Technique = m_extremeChannelsTechnique;
                                                        * break;                               */

            case MyEffectModelsDNSTechniqueEnum.Holo:
                m_D3DEffect.Technique = m_holoTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HoloIgnoreDepth:
                m_D3DEffect.Technique = m_holoIgnoreDepthTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.Stencil:
                m_D3DEffect.Technique = m_stencilTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.StencilLow:
                m_D3DEffect.Technique = m_stencilLowTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.NormalInstanced:
                m_D3DEffect.Technique = m_normalInstancedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighSkinned:
                m_D3DEffect.Technique = m_highSkinnedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighInstanced:
                m_D3DEffect.Technique = m_highInstancedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.ExtremeSkinned:
                m_D3DEffect.Technique = m_extremeSkinnedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.ExtremeInstanced:
                m_D3DEffect.Technique = m_extremeInstancedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.NormalInstancedSkinned:
                m_D3DEffect.Technique = m_normalInstancedSkinnedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.HighInstancedSkinned:
                m_D3DEffect.Technique = m_highInstancedSkinnedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.ExtremeInstancedSkinned:
                m_D3DEffect.Technique = m_extremeInstancedSkinnedTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.InstancedGeneric:
                m_D3DEffect.Technique = m_instancedGenericTechnique;
                break;

            case MyEffectModelsDNSTechniqueEnum.InstancedGenericMasked:
                m_D3DEffect.Technique = m_instancedGenericMaskedTechnique;
                break;
            }
        }