Beispiel #1
0
        /// <inheritdoc/>
        public override void Apply()
        {
            var program = programs[programIndex];

            OpenGLState.UseProgram(program);

            foreach (var uniform in program.Uniforms)
            {
                uniform.Apply();
            }
        }
        /// <inheritdoc/>
        public override void Apply()
        {
            if (effectImplementation == null)
            {
                throw new InvalidOperationException(OpenGLStrings.EffectPassNotAssociatedWithEffect);
            }

            effectImplementation.OnApply();

            var program = Programs[programIndex];

            OpenGLState.UseProgram(program);

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