summaryrefslogtreecommitdiffstats
path: root/poi.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'poi.cginc')
-rw-r--r--poi.cginc7
1 files changed, 7 insertions, 0 deletions
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