Version: 2022.3
언어: 한국어
반사 프로브
반사 프로브 사용

Types of Reflection Probe

Reflection probes come in three basic types as chosen by the Type property in the inspector (see the component reference page for further details).

  • Baked probes store a reflection cubemap generated (“baked”) within the editor. You can trigger the baking by clicking either the Bake button at the bottom of the Reflection Probe inspector or the Generate Lighting button in the Lighting window. If you have Auto enabled in the Lighting window then baked probes will be updated automatically as you place objects in the Scene view. The reflection from a baked probe can only show objects marked as Reflection Probe Static in the inspector. This indicates to Unity that the objects will not move at runtime.
  • Realtime probes create the cubemap at runtime in the player rather than the editor. This means that the reflections are not limited to static objects and can be updated in real time to show changes in the scene. However, it takes considerable processing time to refresh the view of a probe so it is wise to manage the updates carefully. Unity allows you to trigger updates from a script so you can control exactly when they happen. Also, there is an option to apply timeslicing to probe updates so that they can take place gradually over a few frames.
  • 커스텀 프로브 타입도 사용할 수 있습니다. 이 프로브를 사용하면 베이크된 프로브처럼 에디터에서 뷰를 베이크할 수 있으며 반사를 위한 커스텀 큐브맵도 사용할 수 있습니다. 커스텀 프로브는 런타임 시점에 업데이트할 수 없습니다.

이 세 가지 타입은 아래 세부 사항에서 설명합니다.

Baked and Custom Reflection Probes

베이크된 반사 프로브의 반사 큐브맵은 Unity 에디터에 캡처 및 저장되어 추후 플레이어에서 사용됩니다. 자세한 내용은 반사 프로브 소개를 참조하십시오. 일단 캡처 프로세스가 완료되면 반사는 “동결”되며, 따라서 베이크된 프로브는 움직이는 오브젝트가 유발한 씬의 런타임 변경사항에 반응할 수 없습니다. 그러나 베이크된 프로브는 변경 사항에 반응하는 실시간 프로브에 비해 프로세싱 오버헤드가 훨씬 낮으며 여러 가지 목적으로 사용할 수 있습니다. 예를 들어 움직이는 반사 오브젝트가 하나만 있을 경우 이 오브젝트는 정적 주변 환경만 반사하면 됩니다.

Using Baked probes

You should set the probe’s Type property to Baked or Custom in order to make it behave as a baked probe (see below for the additional features offered by Custom probes).

The reflections captured by baked probes can only include scene objects marked as Reflection Probe Static (using the Static menu at the top left of the inspector panel for all objects). You can further refine the objects that get included in the reflection cubemap using the Culling Mask and Clipping Planes properties, which work the same way as for a Camera (the probe is essentially like a camera that is rotated to view each of the six cubemap faces).

When the Auto option is switched on (from the Lighting window), the baked reflections will update automatically as you position objects in the scene. If you are not making use of auto baking then you will need to click the Bake button in the Reflection Probe inspector to update the probes. (The Generate Lighting button in the Lighting window will also trigger the probes to update.)

자동 또는 수동 베이킹을 사용하는 경우에도 에디터에서 계속 작업하는 동안 베이크 프로세스가 비동기적으로 수행됩니다. 하지만 정적 오브젝트를 이동하거나 머티리얼을 변경하거나 시각적 형상을 변경하면 베이킹 프로세스가 다시 시작됩니다.

Custom Probes

기본적으로 커스텀 프로브는 베이크된 프로브와 동일한 방식으로 작동합니다. 하지만 커스텀 프로브에는 이 동작을 변화하는 추가 옵션도 있습니다.

The Dynamic Objects property on a custom probe’s inspector allows objects that are not marked as Reflection Probe Static to be included in the reflection cubemap.

Note: The positions of these objects are still “frozen” in the reflection at the time of baking.

The Cubemap property allows you to assign your own cubemap to the probe and therefore make it completely independent of what it can “see” from its view point. You could use this, say, to set a skybox or a cubemap generated from your 3D modelling app as the source for reflections.

Realtime Probes

베이크된 프로브는 여러 가지 목적으로 유용하게 사용할 수 있으며 런타임 성능이 훌륭합니다. 하지만 플레이어에서 라이브 업데이트가 되지 않는다는 단점이 있습니다. 즉 오브젝트가 씬에서 움직일 수 있으나 그 반사가 오브젝트를 따라서 움직이지는 않는다는 의미입니다. 이러한 제한을 피하고 싶다면 런타임 시점에 반사 큐브맵을 업데이트하는 Realtime 프로브를 사용하면 됩니다. 이 효과는 프로세싱 오버헤드가 높지만 현실성을 크게 향상시켜 줍니다.

Using Realtime Probes

To enable a probe to update at runtime, you should set its Type property to Realtime in the Reflection Probe Inspector. You don’t need to mark objects as Reflection Probe Static to capture their reflections (as you would with a baked probe). However, you can selectively exclude objects from the reflection cubemap using the Culling Mask and Clipping Planes properties, which work the same way as for a Camera (the probe is essentially like a camera that is rotated to view each of the six cubemap faces).

에디터에서 실시간 프로브는 더 빠르게 렌더링되는 경향이 있지만 베이크된 프로브와 워크플로가 거의 동일합니다.

Note: Currently, real-time probes will only update their reflections in the Scene view when Reflection Probe Static objects are moved or change their appearance. This means that moving dynamic objects won’t cause an update even though those objects appear in the reflection. You should choose the Bake Reflection Probes option from the Generate Lighting button dropdown in the Lighting window to update reflections when a dynamic object is changed.

반사 프로브
반사 프로브 사용
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961