paint: tweak brush angle reject

This commit is contained in:
luboslenco
2026-03-30 18:28:28 +02:00
parent 3315654205
commit 1c90c6a073
+1 -1
View File
@@ -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)));