docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Generate2DCookie

    Generate2DCookie(TextureImporterCompression, float, int, bool)

    Generating a 2D Texture of this cookie, using a Gnomonic projection of the bottom of the IES

    Declaration
    public (string, Texture) Generate2DCookie(TextureImporterCompression compression, float coneAngle, int textureSize, bool applyLightAttenuation)
    Parameters
    Type Name Description
    TextureImporterCompression compression

    Compression parameter requestted.

    float coneAngle

    Cone angle used to performe the Gnomonic projection.

    int textureSize

    The resquested size.

    bool applyLightAttenuation

    Bool to enable or not the Light Attenuation based on the squared distance.

    Returns
    Type Description
    (string, Texture)

    A Generated 2D texture doing the projection of the IES using the Gnomonic projection of the bottom half hemisphere with the given 'cone angle'

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)