Fix T43450: Texture node tree failed to clamp
Clamping routine was not implemented. This fixes T43450. Reviewers: #nodes, #rendering, sergey Reviewed By: sergey Maniphest Tasks: T43450 Differential Revision: https://developer.blender.org/D1038
This commit is contained in:
parent
363a044b4c
commit
ac2f608fa3
Notes:
blender-bot
2023-02-14 09:33:16 +01:00
Referenced by issue #43450, Texture node tree failed to clamp
|
@ -195,6 +195,10 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (node->custom2 & SHD_MATH_CLAMP) {
|
||||
CLAMP(*out, 0.0f, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
static void exec(void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
|
||||
|
|
Loading…
Reference in New Issue