Base class for a ColorTransformBase to be used in a ColorTransformGroup.
Inheritance: Stride.Rendering.Images.ColorTransformBase
Esempio n. 1
0
 protected void AddTemporaryTransform(ColorTransform transform)
 {
     if (transform == null)
     {
         throw new ArgumentNullException("transform");
     }
     if (transform.Shader == null)
     {
         throw new ArgumentOutOfRangeException("transform", "Transform parameter must have a Shader not null");
     }
     if (transform.Enabled)
     {
         collectTransforms.Add(transform);
     }
 }
Esempio n. 2
0
        protected void AddTemporaryTransform(ColorTransform transform)
        {
            if (transform is null)
            {
                throw new ArgumentNullException(nameof(transform));
            }
            if (transform.Shader is null)
            {
                throw new ArgumentOutOfRangeException(nameof(transform), "Transform parameter must have a non-null Shader.");
            }

            if (transform.Enabled)
            {
                collectTransforms.Add(transform);
            }
        }