static int gpu_shader_curve_rgb(GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) { float *array; int size; curvemapping_table_RGBA(node->storage, &array, &size); return GPU_stack_link(mat, "curves_rgb", in, out, GPU_texture(size, array)); }
static int gpu_shader_valtorgb(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) { float *array; int size; BKE_colorband_evaluate_table_rgba(node->storage, &array, &size); return GPU_stack_link(mat, "valtorgb", in, out, GPU_texture(size, array)); }
static int gpu_shader_valtorgb(GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) { float *array; int size; colorband_table_RGBA(node->storage, &array, &size); return GPU_stack_link(mat, "valtorgb", in, out, GPU_texture(size, array)); }