From f2c54df625d65c40f6070294a5f66de3f2d18c10 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 21 Jul 2015 21:58:19 +0200 Subject: Cycles: Expose image image extension mapping to the image manager Currently only two mappings are supported by API, which is Repeat (old behavior) and new Clip behavior. Internally this extension is being converted to periodic flag which was already supported but wasn't exposed. There's no support for OpenCL yet because of the way how we pack images into a single texture. Those settings are not exposed to UI or anywhere else and there should be no functional changes so far. --- intern/cycles/util/util_types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h index 187675e74bf..411f2d803f8 100644 --- a/intern/cycles/util/util_types.h +++ b/intern/cycles/util/util_types.h @@ -470,6 +470,17 @@ enum InterpolationType { INTERPOLATION_SMART = 3, }; +/* Extension types for textures. + * + * Defines how the image is extrapolated past its original bounds. + */ +enum ExtensionType { + /* Cause the image to repeat horizontally and vertically. */ + EXTENSION_REPEAT = 0, + /* Clip to image size and set exterior pixels as transparent. */ + EXTENSION_CLIP = 1, +}; + /* macros */ /* hints for branch prediction, only use in code that runs a _lot_ */ -- cgit v1.2.3