diff options
| author | yum <yum.food.vr@gmail.com> | 2025-03-07 13:48:04 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-03-07 13:48:04 -0800 |
| commit | 08762a99117fdddb3b48b450d02dd515b3eb78af (patch) | |
| tree | b3c9fc04e08bc7311f81775aedbeea060a6204ac /poi.cginc | |
| parent | 39f1d5d72d3395b4ee2ee6d0d2304a33674f2092 (diff) | |
Add fallback cubemap feature
Diffstat (limited to 'poi.cginc')
| -rw-r--r-- | poi.cginc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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
|
