Browse Source

Tweak depth reject

luboslenco 2 weeks ago
parent
commit
f8dc82108b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      paint/sources/make_paint.ts

+ 1 - 1
paint/sources/make_paint.ts

@@ -158,7 +158,7 @@ function make_paint_run(data: material_t, matcon: material_context_t): node_shad
 		}
 
 		if (depth_reject) {
-			node_shader_write_frag(kong, "if (sp.z > sample_lod(gbufferD, sampler_linear, sp.xy, 0.0).r - 0.00005) { discard; }");
+			node_shader_write_frag(kong, "if (sp.z > sample_lod(gbufferD, sampler_linear, sp.xy, 0.0).r - 0.00008) { discard; }");
 		}
 
 		make_brush_run(kong);