Struct AmbientLight | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Struct AmbientLight

    Ambient light.

    Namespace: Unity.Tiny.Rendering
    Syntax
    public struct AmbientLight : IComponentData

    Fields

    ambientProbe

    Declaration
    public SHCoefficients ambientProbe
    Field Value
    Type Description
    SHCoefficients

    ambientSkyColor

    Declaration
    public float3 ambientSkyColor
    Field Value
    Type Description
    float3

    intensity

    Declaration
    public float intensity
    Field Value
    Type Description
    Single

    Methods

    SetAmbientColor(float3)

    Set ambient color (flat).

    Declaration
    public void SetAmbientColor(float3 color)
    Parameters
    Type Name Description
    float3 color

    Ambient color in linear space.

    SetAmbientColor(float3, float3, float3)

    Set ambient color (tricolor).

    Declaration
    public void SetAmbientColor(float3 sky, float3 equator, float3 ground)
    Parameters
    Type Name Description
    float3 sky

    Sky color in linear space.

    float3 equator

    Equator color in linear space.

    float3 ground

    Ground color in linear space.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023