Cycles: Expose Clip image extension type

This type causes pixels outside of 0..1 coordinate range to become transparent.
This commit is contained in:
Sergey Sharybin 2015-07-28 14:39:53 +02:00
parent 4690281b17
commit f29625922f
2 changed files with 2 additions and 0 deletions

View File

@ -979,6 +979,7 @@ typedef struct NodeSunBeams {
#define SHD_IMAGE_EXTENSION_REPEAT 0
#define SHD_IMAGE_EXTENSION_EXTEND 1
#define SHD_IMAGE_EXTENSION_CLIP 2
/* image texture */
#define SHD_PROJ_FLAT 0

View File

@ -3626,6 +3626,7 @@ static void def_sh_tex_image(StructRNA *srna)
static EnumPropertyItem prop_image_extension[] = {
{SHD_IMAGE_EXTENSION_REPEAT, "REPEAT", 0, "Repeat", "Cause the image to repeat horizontally and vertically"},
{SHD_IMAGE_EXTENSION_EXTEND, "EXTEND", 0, "Extend", "Extend by repeating edge pixels of the image"},
{SHD_IMAGE_EXTENSION_CLIP, "CLIP", 0, "Clip", "Clip to image size and set exterior pixels as transparent"},
{0, NULL, 0, NULL, NULL}
};