docs.unity3d.com
Search Results for

    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.

    Left: A ring with segments of different colors. Right: The same ring using shades of gray that represent the perceived brightness of each 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 © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)