Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ColorCombiner Class

    Namespace: Stride.Rendering.Images
    Assembly: Stride.Rendering.dll

    A texture combiner allows to mix up to 10 textures with different weights.

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect → ImageEffectShader → ColorCombiner
    Derived from ColorCombiner:

    public class ColorCombiner : ImageEffectShader, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
    Remarks

    This effects takes from 1 to 10 textures in input and combine them to a single output. Before using this class, it is recommended to clear the inputs by using Reset().

    Name Description
    Constructors
    ColorCombiner(String)

    Initializes a new instance of the ColorCombiner class.

    Properties
    Factors

    Gets the factors used to multiply the colors.

    ModulateRGB

    Gets the RGB modulation of each texture.

    Methods
    UpdateParameters()
    | Improve this Doc View Source

    Constructors


    ColorCombiner(String)

    Initializes a new instance of the ColorCombiner class.

    public ColorCombiner(string colorCombinerShaderName = "ColorCombinerEffect")
    Parameters
    Type Name Description
    System.String colorCombinerShaderName

    Name of the color combiner shader.

    | Improve this Doc View Source

    Properties


    Factors

    Gets the factors used to multiply the colors.

    public float[] Factors { get; }
    Property Value
    Type Description
    System.Single[]

    The factors.


    ModulateRGB

    Gets the RGB modulation of each texture.

    public Color3[] ModulateRGB { get; }
    Property Value
    Type Description
    Color3[]
    | Improve this Doc View Source

    Methods


    UpdateParameters()

    protected override void UpdateParameters()
    Overrides
    ImageEffectShader.UpdateParameters()

    Inherited Members

    ImageEffectShader.BlendState
    ImageEffectShader.DepthStencilState
    ImageEffectShader.InitializeCore()
    ImageEffectShader.EffectInstance
    ImageEffectShader.EffectName
    ImageEffectShader.SetDefaultParameters()
    ImageEffectShader.PreDrawCore(RenderDrawContext)
    ImageEffectShader.DrawCore(RenderDrawContext)
    ImageEffect.EnableSetRenderTargets
    ImageEffect.SetInput(Int32, Texture)
    ImageEffect.Reset()
    ImageEffect.SetOutput(Texture)
    ImageEffect.SetOutput(Texture[])
    ImageEffect.SetDepthOutput(Texture, Texture)
    ImageEffect.SetDepthOutput(Texture, Texture[])
    ImageEffect.SetViewport(Nullable<Viewport>)
    ImageEffect.SetRenderTargets(RenderDrawContext)
    ImageEffect.PostDrawCore(RenderDrawContext)
    ImageEffect.DisposeCreatedRenderTargetViews(RenderDrawContext)
    ImageEffect.InputCount
    ImageEffect.GetInput(Int32)
    ImageEffect.GetSafeInput(Int32)
    ImageEffect.DepthStencil
    ImageEffect.HasDepthStencilOutput
    ImageEffect.OutputCount
    ImageEffect.GetOutput(Int32)
    ImageEffect.GetSafeOutput(Int32)
    ImageEffect.NewScopedRenderTarget2D(TextureDescription)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, TextureFlags, Int32)
    ImageEffect.NewScopedRenderTarget2D(Int32, Int32, PixelFormat, MipMapCount, TextureFlags, Int32)
    DrawEffect.SamplingPattern
    DrawEffect.Parameters
    DrawEffect.Scaler
    DrawEffect.Draw(RenderDrawContext, String)
    DrawEffect.Draw(RenderDrawContext, String, Object[])
    DrawEffect.ToString()
    RendererBase.Draw(RenderDrawContext)
    RendererCoreBase.Enabled
    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.Unload()
    RendererCoreBase.NewScopedBuffer(BufferDescription, PixelFormat)
    RendererCoreBase.NewScopedTypedBuffer(Int32, PixelFormat, Boolean, GraphicsResourceUsage)
    RendererCoreBase.PushScopedResource<T>(T)
    RendererCoreBase.CheckIsInDrawCore()
    RendererCoreBase.Destroy()
    RendererCoreBase.ToLoadAndUnload<T>(T)
    RendererCoreBase.PreDrawCoreInternal(RenderDrawContext)
    RendererCoreBase.EnsureContext(RenderContext)
    RendererCoreBase.PostDrawCoreInternal(RenderDrawContext)
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ImageEffectExtensions.SetInput(IImageEffect, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture)
    ImageEffectExtensions.SetInput(IImageEffect, Texture, Texture, Texture)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation