docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)