summaryrefslogtreecommitdiffstats
path: root/pema99.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'pema99.cginc')
-rw-r--r--pema99.cginc7
1 files changed, 7 insertions, 0 deletions
diff --git a/pema99.cginc b/pema99.cginc
index 0651761..9e1626b 100644
--- a/pema99.cginc
+++ b/pema99.cginc
@@ -32,4 +32,11 @@ bool isInMirror()
return unity_CameraProjection[2][0] != 0.f || unity_CameraProjection[2][1] != 0.f;
}
+bool textureExists(texture2D tex)
+{
+ int width, height;
+ tex.GetDimensions(width, height);
+ return width > 16;
+}
+
#endif // __PEMA_99_INC