Class LightComparer | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class LightComparer

    Inheritance
    System.Object
    LightComparer
    Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
    Syntax
    public class LightComparer : IComparer<VisibleLight>

    Properties

    CurrCamera

    Declaration
    public Camera CurrCamera { get; set; }
    Property Value
    Type Description
    Camera

    Methods

    Compare(VisibleLight, VisibleLight)

    Declaration
    public int Compare(VisibleLight lhs, VisibleLight rhs)
    Parameters
    Type Name Description
    VisibleLight lhs
    VisibleLight rhs
    Returns
    Type Description
    System.Int32

    SquaredDistanceToCamera(Vector3)

    Declaration
    public float SquaredDistanceToCamera(Vector3 lightPos)
    Parameters
    Type Name Description
    Vector3 lightPos
    Returns
    Type Description
    System.Single
    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