Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Grayscale formula used in Color.grayscale

Discussion in 'Documentation' started by Popiolek, Feb 28, 2018.

  1. Popiolek

    Popiolek

    Joined:
    Jan 26, 2016
    Posts:
    2
    Like the title suggests, I am looking for exact formula that Unity uses for grayscale values calculation
    i.e. this is typical luminosity formula 0.21 R + 0.72 G + 0.07 B. It provides similar yet not matching values.
    To be clear, I am just looking formula not a script or code.
     
  2. ryan_unity

    ryan_unity

    Unity Technologies

    Joined:
    Dec 28, 2014
    Posts:
    8
  3. Popiolek

    Popiolek

    Joined:
    Jan 26, 2016
    Posts:
    2
    Hi Ryan
    Thank you for the answer. I just wanted to know which one you are using, it was not my intention to suggest a change.
    I am working on image modification library and I want to provide experience consistent with the Unity Color.grayscale.
    Cheers