Exemple #1
0
        /// <summary>
        /// Creates an effect with on technique and one pass.
        /// </summary>
        /// <param name="vs">VertexShader to use.</param>
        /// <param name="ps">PixelShader to use.</param>
        public ShaderEffect(IVertexShader vs, IPixelShader ps)
        {
            Pass      pass      = new Pass("Pass1", vs, ps);
            Technique technique = new Technique("Technique1", pass);

            techniques.Add(technique);
        }
Exemple #2
0
        //---------------------------------------------------------------
        #endregion
        //---------------------------------------------------------------

        //---------------------------------------------------------------
        #region Methods
        //---------------------------------------------------------------
        /// <summary>
        /// Adds an <see cref="Technique"/> to the list.
        /// </summary>
        /// <param name="tech">Technique to add.</param>
        public void Add(Technique tech)
        {
            techniques.Add(tech);
        }