Example #1
0
        /// <summary>
        /// Applies the effect pass state to the device.
        /// </summary>
        public override void Apply()
        {
            Contract.EnsureNotDisposed(this, Disposed);

            var program = programs[programIndex];

            OpenGLState.UseProgram(program);

            foreach (var uniform in program.Uniforms)
            {
                uniform.Apply();
            }
        }