From 08762a99117fdddb3b48b450d02dd515b3eb78af Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 7 Mar 2025 13:48:04 -0800 Subject: Add fallback cubemap feature --- poi.cginc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'poi.cginc') diff --git a/poi.cginc b/poi.cginc index 7925f5e..df89bbf 100644 --- a/poi.cginc +++ b/poi.cginc @@ -123,4 +123,11 @@ float3 getPoiLightingIndirect() { return BetterSH9(float4(0, 0, 0, 1)); } +bool SceneHasReflections() +{ + float width, height; + unity_SpecCube0.GetDimensions(width, height); + return !(width * height < 2); +} + #endif // __POI_INC -- cgit v1.2.3