Use a Projector component to create effects such as:
Note: This workflow is compatible only with the Built-in Render Pipelne. For similar functionality in other render pipelines, see Decals and projectors.
A Projector works by projecting a material onto all objects that intersect its frustum. The material must use the Projector/Light or Projector/Multiply shaders, available in Unity’s Standard Assets.
When configuring a material to use with the Projector/Light and Projector/Multiply shaders, be aware of the following:
クッキーのテクスチャ
フォールオフオフテクスチャ (存在する場合)
Standard Assets には、Projector コンポーネントの使用例を示すプレハブの例が含まれています。
プレハブを使用する手順は以下の通りです。
プレハブをプロジェクトでそのまま使用したり、変更したり、設定を確認することができます。
プロパティ | 機能 |
---|---|
Near Clip Plane | ニアクリップ面より手前のオブジェクトには投影されません。 |
Far Clip Plane | ファークリップ面より遠くにあるオブジェクトには投影されません。 |
Field Of View | 有効視野 (FOV) 。単位は度。これは、プロジェクターが 平行投影でない場合にのみ使用されます。 |
Aspect Ratio | これを使用すると、プロジェクターの縦横を調整できます。 |
Orthographic | これを有効にすると、透視投影ではなく、平行投影になります。 |
Orthographic Size | 投影の平行投影サイズ。これは、平行投影が有効な場合にのみ使用されます。 |
Material | 投影するマテリアル。 |
Ignore Layers | ここで指定したレイヤーのオブジェクトには投影されません。デフォルト値は None です。 |