このページは、すでに Unity のライティング を読んでいることを前提として書かれています。
Unity でライティングの事前計算と合成を制御するには、ライトに ライトモード を割り当てる必要があります。この ライトモード はライトの使用目的を定義します。ライトモードを割り当てるには、シーン内のライトを選択し、Light Inspector ウインドウ で Mode を選択します。
モードと可能なマッピングは以下の通りです。
詳しくは Reference card for Light Modes を参照してください。
上記のモードは、ライト経路の事前計算の必要が少ない順にリストされています (下の モードの仕組み を参照)。この順序は、実際の事前計算に必要な時間と必ずしも相関関係がないことに注意してください。
ライトインスペクターウィンドウの各 モード はライティングウィンドウ (Window > Rendering > Lighting Settings > Scene) のグループの設定に対応しています。
Light Inspector | Lighting window | 機能 |
---|---|---|
Realtime | Realtime Lighting | Unity は、ランタイムにすべてのフレームの リアルタイム ライトのライティングを計算し更新します。リアルタイムライトは事前計算されません。 |
Mixed | Mixed Lighting | Unity は、ランタイムに 混合 ライトのプロパティの一部を計算することが可能ですが、厳しい制限があります。混合ライトの中には事前計算されているものがあります。 |
Baked | Lightmapping Settings | Unity は、ランタイム前に ベイクした ライトの照明を事前計算し、ランタイムの計算にはそれらを加えません。すべてのベイクしたライトは、事前計算されます。 |
これらの設定を使用して、各モードを調整します。調整は、そのモードが割り当てられているすべてのライトに適用されます。たとえば、Lighting ウィンドウを開いて、Realtime Lighting 設定に移動し、 Realtime Global Illumination をチェックします。 Mode が Realtime モードに設定されているすべてのライトは、Realtime Global Illumination を使用します。
事前計算では、以下の 2 つの結果が得られます。
Unity は静的ゲームオブジェクトの結果を UV テクスチャ座標空間のテクスチャアトラスとして保存します。 Unity は、このレイアウトを制御する いくつかの設定を提供します。
ライトプローブ は、空の空間に、特定の位置から見たライトの表示を格納します。空の空間のこの部分を移動する動的ゲームオブジェクトは、この情報を使用して、事前計算されたライティングから照明を受けます。
2017–06–08 公開ページ
バージョン 5.6 で行われた更新
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.