Version: 2022.1
言語: 日本語

OpaqueSortMode

enumeration

マニュアルに切り替える

説明

Cameraのオペークオブジェクトソートモード

Opaque objects are sorted by various criteria (sorting layers, shader queues, materials, distance, lightmaps etc.) to maximize both the CPU efficiency (reduce number of state changes and improve draw call batching), and to maximize GPU efficiency (many GPUs prefer rough front-to-back rendering order for faster rejection of invisible surfaces).

By default, opaque objects are grouped in rough front-to-back buckets, on the GPUs where doing that is beneficial. There are GPUs where doing this distance based sorting is not really helpful (most notably, PowerVR/Apple GPUs), and so on these GPUs the distance based sorting is not done by default.

The Camera.opaqueSortMode property lets you override this default behavior. For example, you might want to never do distance-based sorting for opaque objects, if you know you need much more CPU performance than GPU performance.

関連項目: Camera.opaqueSortMode.

変数

Defaultデフォルトのオペークソートモード
FrontToBackオペークオブジェクトの Front-to-Back ソートをラフに(粗く)行います。
NoDistanceSortオペークオブジェクトの距離によるソートをしません。