Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
| Show First 20 Lines • Show All 1,256 Lines • ▼ Show 20 Lines | else if (ss->texcache) { | ||||
| else { | else { | ||||
| const float point_3d[3] = {point_2d[0], point_2d[1], 0.0f}; | const float point_3d[3] = {point_2d[0], point_2d[1], 0.0f}; | ||||
| avg = BKE_brush_sample_tex_3d(scene, br, point_3d, rgba, 0, ss->tex_pool); | avg = BKE_brush_sample_tex_3d(scene, br, point_3d, rgba, 0, ss->tex_pool); | ||||
| } | } | ||||
| } | } | ||||
| /* Falloff curve */ | /* Falloff curve */ | ||||
| avg *= BKE_brush_curve_strength(br, len, cache->radius); | avg *= BKE_brush_curve_strength(br, len, cache->radius); | ||||
| avg *= frontface(br, cache->view_normal, vno, fno); | avg *= frontface(br, cache->view_normal, vno, fno); | ||||
| /* Paint mask */ | /* Paint mask */ | ||||
| avg *= 1.0f - mask; | avg *= 1.0f - mask; | ||||
| return avg; | return avg; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 5,260 Lines • Show Last 20 Lines | |||||