Make metal work

This commit is contained in:
luboslenco
2025-04-24 22:19:44 +02:00
parent fff6ced18f
commit bf2dda291d
85 changed files with 1292 additions and 1794 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ function render_path_raytrace_bake_commands(parse_paint_material: (b?: bool)=>vo
let _bake_type: bake_type_t = context_raw.bake_type;
context_raw.bake_type = bake_type_t.INIT;
parse_paint_material(true);
render_path_set_target("baketex0");
render_path_clear_target(0x00000000); // Pixels with alpha of 0.0 are skipped during raytracing
render_path_set_target("baketex0", null, clear_flag_t.COLOR, 0x00000000);
// Pixels with alpha of 0.0 are skipped during raytracing
let additional: string[] = ["baketex1"];
render_path_set_target("baketex0", additional);
render_path_draw_meshes("paint");