paint: fix preview dither

This commit is contained in:
luboslenco
2026-06-09 17:24:57 +02:00
parent aa4877becf
commit e16e540d23
+1 -1
View File
@@ -88,7 +88,7 @@ node_shader_context_t *make_mesh_preview_run(material_t *data, material_context_
node_shader_write_frag(
kong, "var fragcoord1: float2 = float2(input.wvpposition.x / input.wvpposition.w, input.wvpposition.y / input.wvpposition.w) * 0.5 + 0.5;");
node_shader_write_frag(kong, "var dither: float = dither_bayer(fragcoord1 * float2(256.0, 256.0));");
node_shader_write_frag(kong, "if (opacity < dither) { discard; }");
node_shader_write_frag(kong, "if (opacity <= dither) { discard; }");
}
if (make_material_height_used) {