Color Luma | Visual Effect Graph | 10.2.2
docs.unity3d.com
    Show / Hide Table of Contents

    Color Luma

    Menu Path : Operator > Color > Color Luma

    This Color Luma Operator outputs the luma (perceived brightness) of the input color.

    The luma value of a color is useful in many scenarios, for example:

    • You can use it to recolor particles and still maintain their original brightness.
    • You can utilize it in the simulation itself and make the brightest particles move faster.

    Note: Color Operators work on a per-particle level. To recolor the particle's texture on a per-pixel level, use Color Mapping in the system's output Context or create your own shader via Shader Graph.

    Operator properties

    Inputs Type Description
    Color Color The Color to calculate the luma for.
    Output Type Description
    luma Color The luma value of Color.
    In This Article
    • Operator properties
    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