Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_brush.h
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Uses the brush curve control to find a strength value. | * Uses the brush curve control to find a strength value. | ||||
| */ | */ | ||||
| float BKE_brush_curve_strength(const struct Brush *br, float p, float len); | float BKE_brush_curve_strength(const struct Brush *br, float p, float len); | ||||
| /* Sampling. */ | /* Sampling. */ | ||||
| /** | /** | ||||
| * Generic texture sampler for 3D painting systems. | * Generic texture sampler for 2D and 3D painting systems, with texture coordinate as input. | ||||
| * point has to be either in region space mouse coordinates, | * This most efficient when evaluated in large batches instead of single points | ||||
| * or 3d world coordinates for 3D mapping. | |||||
| * | * | ||||
| * RGBA outputs straight alpha. | * RGBA outputs straight alpha. | ||||
| */ | */ | ||||
| float BKE_brush_sample_tex_3d(const struct Scene *scene, | void BKE_brush_sample_tex_intensity(const struct Scene *scene, | ||||
| const struct Brush *br, | const struct Brush *br, | ||||
| const float point[3], | const int num_points, | ||||
| float rgba[4], | const float (*points)[3], | ||||
| float *r_intensity, | |||||
| int thread, | int thread, | ||||
| struct ImagePool *pool); | struct ImagePool *pool); | ||||
| float BKE_brush_sample_masktex(const struct Scene *scene, | void BKE_brush_sample_tex_rgba(const struct Scene *scene, | ||||
| struct Brush *br, | const struct Brush *br, | ||||
| const float point[2], | const int num_points, | ||||
| const float (*points)[3], | |||||
| float (*r_rgba)[4], | |||||
| int thread, | int thread, | ||||
| struct ImagePool *pool); | struct ImagePool *pool); | ||||
| void BKE_brush_sample_tex_mask(const struct Scene *scene, | |||||
| const struct Brush *br, | |||||
| const int num_points, | |||||
| const float (*points)[3], | |||||
| float *r_masks, | |||||
| const int thread, | |||||
| struct ImagePool *pool); | |||||
| /** | /** | ||||
| * Radial control. | * Radial control. | ||||
| */ | */ | ||||
| struct ImBuf *BKE_brush_gen_radial_control_imbuf(struct Brush *br, | struct ImBuf *BKE_brush_gen_radial_control_imbuf(struct Brush *br, | ||||
| bool secondary, | bool secondary, | ||||
| bool display_gradient); | bool display_gradient); | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||