From 9f903208e800d4580314dc03d31e8ae5fea73cdb Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 23 Jan 2014 18:38:48 +0100 Subject: Fix T36165: blender internal HDR textures with negative values got clamped. For example for vector displacement, you may have an EXR texture that has negative colors values. Blender clamps these by default, now the Colors panel for textures has a Clamp option to disable this clamping. This option affects all texture types and is enabled by default, you need to disable it if you want negative values to have an influence. Patch by Fredrik Hansson with modifications by me. --- source/blender/makesdna/DNA_texture_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_texture_types.h') diff --git a/source/blender/makesdna/DNA_texture_types.h b/source/blender/makesdna/DNA_texture_types.h index fcd0575f1c5..a3025a7fb31 100644 --- a/source/blender/makesdna/DNA_texture_types.h +++ b/source/blender/makesdna/DNA_texture_types.h @@ -382,6 +382,7 @@ typedef struct ColorMapping { #define TEX_REPEAT_YMIR 256 #define TEX_FLAG_MASK ( TEX_COLORBAND | TEX_FLIPBLEND | TEX_NEGALPHA | TEX_CHECKER_ODD | TEX_CHECKER_EVEN | TEX_PRV_ALPHA | TEX_PRV_NOR | TEX_REPEAT_XMIR | TEX_REPEAT_YMIR ) #define TEX_DS_EXPAND 512 +#define TEX_NO_CLAMP 1024 /* extend (starts with 1 because of backward comp.) */ #define TEX_EXTEND 1 -- cgit v1.2.3