Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-04 15:48:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-04 15:48:42 +0400
commit16e6b7b867778fb041dd7cbe10cb83e8b3de0920 (patch)
tree99b2f929af5f1bb609cc9a26ab0da61da6f6df01 /intern/cycles/render/image.h
parent778999cbbf6d6430f6c8d75d8d9e2ea49fa8ace6 (diff)
cycles changes:
- images that can't be loaded because of the limit are printed in the console. - textures that can't be found show up as pink (so we know somethings wrong).
Diffstat (limited to 'intern/cycles/render/image.h')
-rw-r--r--intern/cycles/render/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/render/image.h b/intern/cycles/render/image.h
index 2b5e53cabe1..ef046cfcafb 100644
--- a/intern/cycles/render/image.h
+++ b/intern/cycles/render/image.h
@@ -31,6 +31,12 @@ CCL_NAMESPACE_BEGIN
#define TEX_IMAGE_MAX (TEX_NUM_IMAGES + TEX_NUM_FLOAT_IMAGES)
#define TEX_IMAGE_FLOAT_START TEX_NUM_IMAGES
+/* color to use when textures are not found */
+#define TEX_IMAGE_MISSING_R 1
+#define TEX_IMAGE_MISSING_G 0
+#define TEX_IMAGE_MISSING_B 1
+#define TEX_IMAGE_MISSING_A 1
+
class Device;
class DeviceScene;
class Progress;