Unity エディターでは、リニアの色空間同様、以前から使用されるガンマの色空間で作業することも可能です。ガンマの色空間は従来、標準形式である一方、リニアの色空間のレンダリングではさらに精密に描画できます。
レンダリングに関する詳しい情報は、以下のドキュメントを参照してください。
人間の目は光の強度に対してリニアに反応しません。むしろ明るさに対し、より簡単に反応します。人間の目には、黒から白にリニアに進むグラデーションが、リニアなグラデーションのように見えないのです。
歴史的な理由で、モニターとディスプレイも同じ性質を持っています。モニターにリニアの信号を送ると上の右側の図のような結果となり、人間の目は単に誤った結果として映ります。これを補うために補正した信号を送り、モニターに自然な画像が映るようにします。この修正はガンマ補正として知られています。
ガンマとリニア両方の色空間が存在する理由は、数学上正しくあるために、ライティングの計算はリニア空間で行われますが、人間の目に正しく見えるようにするため、ガンマ空間で表示されるためです。
フレームバッファ形式が 8 ビット/チャンネルに制限されている古いハードウェアでライティングを計算する場合は、ガンマカーブを使用すると、人間が感知できる範囲をより精密にすることができます。人間の目がもっとも感知しやすい範囲に、より多くビットが使用されるためです。
最近のモニターはデジタルですが、入力には依然としてガンマでエンコードした信号を使用します。画像ファイルとビデオファイルは、明示的にガンマ色空間でエンコードされます (つまり、それらのファイルには、リニアな強さでなくガンマでエンコードされた値が保存されています)。これが標準で、すべてがガンマ色空間の情報です。
ガンマ色空間から取得した標準は sRGB (詳しくは ウイキペディア 参照) と呼ばれます。この標準は、リニア色空間へのマッピングを決定し、人間の目でほとんどの 8 ビット/チャンネルの精度を見られるようにします。
リニアレンダリングとは、人間の目で見たりディスプレイに出力するためのガンマ補正をしないで、すべての入力をリニアにレンダリングするプロセスを指します。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.