diff options
| author | yum <yum.food.vr@gmail.com> | 2026-07-21 15:49:33 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-07-21 15:49:33 -0700 |
| commit | 110b619e8579a946f2448c61da380a8e4ae8cc48 (patch) | |
| tree | 00641c6bdca70e07c382c0948e5cb986d4940cbe /filamented.cginc | |
| parent | 40cca6047a1cbaf9f8567aacddf67a877cdc3530 (diff) | |
Fallback cubemap turns on when scene has no reflection probe
Diffstat (limited to 'filamented.cginc')
| -rw-r--r-- | filamented.cginc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filamented.cginc b/filamented.cginc index b5d2ea4..23a32d8 100644 --- a/filamented.cginc +++ b/filamented.cginc @@ -4,6 +4,7 @@ #include "data.cginc" #include "globals.cginc" #include "math.cginc" +#include "poi.cginc" /* @@ -269,7 +270,7 @@ inline half3 UnityGI_prefilteredRadiance(const UnityGIInput data, const float pe #if defined(_CUSTOM_CUBEMAP) && !defined(_GLOSSYREFLECTIONS_OFF) UNITY_BRANCH - if (_Custom_Cubemap_Enable_Dynamic) + if (_Custom_Cubemap_Enable_Dynamic || !SceneHasReflections()) { return Unity_GlossyEnvironment_local( UNITY_PASS_TEXCUBE(_Custom_Cubemap), |
