paint: fix make_mesh_preview for viewport

This commit is contained in:
luboslenco
2026-08-03 14:08:58 +02:00
parent 0b4a11a8a4
commit 62c8b69b08
+1 -1
View File
@@ -73,7 +73,7 @@ node_shader_context_t *make_mesh_preview_run(material_t *data, material_context_
node_shader_write_frag(kong, string("if (opacity <= float(%s)) { discard; }", f32_to_string(opac)));
}
kong->frag_out = "float4[2]";
kong->frag_out = viewport ? "float4[3]" : "float4[2]";
kong->frag_n = true;
node_shader_add_function(kong, str_pack_float_int16);