Searched refs:round_fl_to_uchar (Results 1 – 4 of 4) sorted by relevance
/dports/graphics/blender/blender-2.91.0/source/blender/editors/sculpt_paint/ |
H A D | paint_vertex_color_utils.c | 129 cp_mix[0] = round_fl_to_uchar(sqrtf(divide_round_i((mfac * r1 + fac * r2), 255))); in mcol_blend() 130 cp_mix[1] = round_fl_to_uchar(sqrtf(divide_round_i((mfac * g1 + fac * g2), 255))); in mcol_blend() 131 cp_mix[2] = round_fl_to_uchar(sqrtf(divide_round_i((mfac * b1 + fac * b2), 255))); in mcol_blend() 132 cp_mix[3] = round_fl_to_uchar(sqrtf(divide_round_i((mfac * a1 + fac * a2), 255))); in mcol_blend()
|
H A D | paint_vertex.c | 3006 col[0] = round_fl_to_uchar(sqrtf(divide_round_i(blend[0], total_hit_loops))); in do_vpaint_brush_blur_task_cb_ex() 3007 col[1] = round_fl_to_uchar(sqrtf(divide_round_i(blend[1], total_hit_loops))); in do_vpaint_brush_blur_task_cb_ex() 3008 col[2] = round_fl_to_uchar(sqrtf(divide_round_i(blend[2], total_hit_loops))); in do_vpaint_brush_blur_task_cb_ex() 3009 col[3] = round_fl_to_uchar(sqrtf(divide_round_i(blend[3], total_hit_loops))); in do_vpaint_brush_blur_task_cb_ex() 3213 blend[0] = round_fl_to_uchar(sqrtf(divide_round_i(accum_value[0], accum_len))); in calculate_average_color() 3214 blend[1] = round_fl_to_uchar(sqrtf(divide_round_i(accum_value[1], accum_len))); in calculate_average_color() 3215 blend[2] = round_fl_to_uchar(sqrtf(divide_round_i(accum_value[2], accum_len))); in calculate_average_color()
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/ |
H A D | BLI_math_base.h | 192 MINLINE unsigned char round_fl_to_uchar(float a);
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/intern/ |
H A D | math_base_inline.c | 296 unsigned char round_fl_to_uchar(float a){_round_fl_impl(a, unsigned char)} MINLINE in round_fl_to_uchar() function
|