Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IColorLight Interface

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

    Base interface for a light with a color

    public interface IColorLight : ILight
    Name Description
    Properties
    Color

    Gets or sets the light color.

    Methods
    ComputeColor(ColorSpace, Single)

    Computes the color to the proper ColorSpace with the specified intensity.

    | Improve this Doc View Source

    Properties


    Color

    Gets or sets the light color.

    IColorProvider Color { get; set; }
    Property Value
    Type Description
    IColorProvider

    The color.

    | Improve this Doc View Source

    Methods


    ComputeColor(ColorSpace, Single)

    Computes the color to the proper ColorSpace with the specified intensity.

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

    The intensity.

    Returns
    Type Description
    Color3

    Color3.


    Inherited Members

    ILight.Update(RenderLight)

    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