3 * Brightness Point filter
5 * Copyright (C) 2009-2014 Cyril Hrubis <metan@ucw.cz>
8 #include <core/GP_Clamp.h>
10 @ include point_filter.t
12 @ def filter_op_brightness(val, val_max):
13 GP_CLAMP_GENERIC({{ val }} + (p * {{ val_max }} + 0.5), 0, {{ val_max }})
16 {@ filter_point('brightness', filter_op_brightness, 'float p', 'p') @}