From f29625922f61c772e01a9bf2902a41bd4e4e264e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 28 Jul 2015 14:39:53 +0200 Subject: Cycles: Expose Clip image extension type This type causes pixels outside of 0..1 coordinate range to become transparent. --- source/blender/makesdna/DNA_node_types.h | 1 + source/blender/makesrna/intern/rna_nodetree.c | 1 + 2 files changed, 2 insertions(+) (limited to 'source/blender') diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 45407d1bcda..1bbd0ab8416 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -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 diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 2c86799f0e2..105829ef389 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -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} }; -- cgit v1.2.3