diff options
Diffstat (limited to 'source/blender/nodes/intern/TEX_nodes/TEX_checker.c')
-rw-r--r-- | source/blender/nodes/intern/TEX_nodes/TEX_checker.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/nodes/intern/TEX_nodes/TEX_checker.c b/source/blender/nodes/intern/TEX_nodes/TEX_checker.c index 7f5648f3d88..c6c25ba1a8a 100644 --- a/source/blender/nodes/intern/TEX_nodes/TEX_checker.c +++ b/source/blender/nodes/intern/TEX_nodes/TEX_checker.c @@ -26,7 +26,13 @@ * ***** END GPL LICENSE BLOCK ***** */ -#include "../TEX_util.h" +/** \file blender/nodes/intern/TEX_nodes/TEX_checker.c + * \ingroup texnodes + */ + + +#include "../TEX_util.h" +#include "TEX_node.h" #include <math.h> static bNodeSocketType inputs[]= { @@ -48,9 +54,9 @@ static void colorfn(float *out, TexParams *p, bNode *UNUSED(node), bNodeStack ** float sz = tex_input_value(in[2], p, thread); /* 0.00001 because of unit sized stuff */ - int xi = (int)fabs(floor(0.00001 + x / sz)); - int yi = (int)fabs(floor(0.00001 + y / sz)); - int zi = (int)fabs(floor(0.00001 + z / sz)); + int xi = (int)fabs(floor(0.00001f + x / sz)); + int yi = (int)fabs(floor(0.00001f + y / sz)); + int zi = (int)fabs(floor(0.00001f + z / sz)); if( (xi % 2 == yi % 2) == (zi % 2) ) { tex_input_rgba(out, in[0], p, thread); |