{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetLightAttenuationAndSpotDirection | Universal RP | 15.0.4
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Method GetLightAttenuationAndSpotDirection

    GetLightAttenuationAndSpotDirection(LightType, float, Matrix4x4, float, float?, out Vector4, out Vector4)

    Calculates the attenuation for a given light and also direction for spot lights.

    선언
    public static void GetLightAttenuationAndSpotDirection(LightType lightType, float lightRange, Matrix4x4 lightLocalToWorldMatrix, float spotAngle, float? innerSpotAngle, out Vector4 lightAttenuation, out Vector4 lightSpotDir)
    파라미터
    타입 이름 설명
    LightType lightType

    The type of light.

    float lightRange

    The range of the light.

    Matrix4x4 lightLocalToWorldMatrix

    The local to world light matrix.

    float spotAngle

    The spotlight angle.

    float? innerSpotAngle

    The spotlight inner angle.

    Vector4 lightAttenuation

    The light attenuation.

    Vector4 lightSpotDir

    The spot light direction.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)