summaryrefslogtreecommitdiffstats
path: root/pema99.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'pema99.cginc')
-rw-r--r--pema99.cginc5
1 files changed, 5 insertions, 0 deletions
diff --git a/pema99.cginc b/pema99.cginc
index 030772b..0651761 100644
--- a/pema99.cginc
+++ b/pema99.cginc
@@ -27,4 +27,9 @@ SOFTWARE.
#define glsl_mod(x,y) (((x)-(y)*floor((x)/(y))))
+bool isInMirror()
+{
+ return unity_CameraProjection[2][0] != 0.f || unity_CameraProjection[2][1] != 0.f;
+}
+
#endif // __PEMA_99_INC