Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ColorLightBase Class

    Namespace: Stride.Rendering.Lights
    Assembly: Stride.Rendering.dll

    Base implementation of IColorLight

    System.Object → ColorLightBase
    Derived from ColorLightBase: DirectLightBase LightAmbient

    [DataContract(Inherited = true)]
    public abstract class ColorLightBase : IColorLight, ILight
    Name Description
    Constructors
    ColorLightBase()
    Properties
    Color

    Gets or sets the light color.

    Methods
    ComputeColor(ColorSpace, Single)

    Computes the color with intensity, result is in linear space.

    Update(RenderLight)
    | Improve this Doc View Source

    Constructors


    ColorLightBase()

    protected ColorLightBase()
    | Improve this Doc View Source

    Properties


    Color

    Gets or sets the light color.

    [DataMember(-10)]
    public IColorProvider Color { get; set; }
    Property Value
    Type Description
    IColorProvider

    The color.

    | Improve this Doc View Source

    Methods


    ComputeColor(ColorSpace, Single)

    Computes the color with intensity, result is in linear space.

    public Color3 ComputeColor(ColorSpace colorSpace, float intensity)
    Parameters
    Type Name Description
    ColorSpace colorSpace
    System.Single intensity
    Returns
    Type Description
    Color3

    Gets the color of this light in linear space.


    Update(RenderLight)

    public abstract bool Update(RenderLight light)
    Parameters
    Type Name Description
    RenderLight light
    Returns
    Type Description
    System.Boolean

    Extension Methods

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

    Back to top

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