paint: tweak brush angle reject
This commit is contained in:
@@ -37,7 +37,7 @@ void make_brush_run(node_shader_t *kong) {
|
||||
|
||||
if (config_raw->brush_angle_reject && !context_raw->xray) {
|
||||
// constants.inp.w = paint2d ? 0.0 : 1.0
|
||||
node_shader_write_frag(kong, "if (plane_dist < -0.01 && constants.inp.w == 0.0) { discard; }");
|
||||
node_shader_write_frag(kong, "if (plane_dist < -0.03 && constants.inp.w == 0.0) { discard; }");
|
||||
kong->frag_n = true;
|
||||
f32 angle = context_raw->brush_angle_reject_dot;
|
||||
node_shader_write_frag(kong, string("if (dot(wn, n) < %s && constants.inp.w == 0.0) { discard; }", f32_to_string(angle)));
|
||||
|
||||
Reference in New Issue
Block a user