カリングとは、描画しない対象を決定するプロセスです。カリングを行うことで、最終的な画像に表示されないものを描画するために GPU の時間を無駄にすることなく、レンダリング効率が向上します。
デフォルトでは、GPU は裏面のカリングを実行します。これは、ビューアーに背を向けているポリゴンを描画しないことを意味します。一般的に、レンダリングの作業負荷は軽減できるほど良いので、この設定を変更するのは必要なときだけにしてください。
Shader "Examples/CommandExample"
{
SubShader
{
// The rest of the code that defines the SubShader goes here.
Pass
{
// Disable culling for this Pass.
// You would typically do this for special effects, such as transparent objects or double-sided walls.
Cull Off
// The rest of the code that defines the Pass goes here.
}
}
}