Skip to content
Yuto Fushimi edited this page Apr 6, 2019 · 2 revisions

SkyboxChanger

ランタイムで Skybox を変更する際に、IBL も一緒に更新するスクリプトです。

準備

シーンのどこかに置きます。

ReflectionProbe (IBL) を焼きます。

Reflection Probe (IBL) のインポート設定を Read/Write EnabledRGB 24 bit にします。

SkyboxChanger-Readable

SkyboxChanger

更新する Reflection Probe (IBL) を Inspector で指定します。

SkyboxChanger

使い方

新しい Skybox (のマテリアル)をこの関数に渡すと IBL ごと更新されます。

skyboxChanger.ChangeWithIBL(Material newSkybox)
Clone this wiki locally