| … | … | @@ -539,21 +539,7 @@ void DCTerrainGeneratorProcNodes::set_graph(const Ref<Resource> &p_graph) { |
| 539 | 539 | // HBLK_USE_ATLAS=1 godot4 --path . --script res://scenes/test/... |
| 540 | 540 | static bool _use_atlas() { |
| 541 | 541 | String v = OS::get_singleton()->get_environment("HBLK_USE_ATLAS"); |
| 542 | | const bool on = (v == "1" || v.to_lower() == "true"); |
| 543 | | // REPORTED FROM HERE, ONCE, AND NOWHERE ELSE. The first attempt at this |
| 544 | | // printed from GDScript by scanning g.compile_to_glsl_function(), which is |
| 545 | | // the GRAPH's compiler output -- a DIFFERENT string from the cached_glsl_ |
| 546 | | // this generator assembles. The HBLK_* consts are not in it, so it reported |
| 547 | | // "SSBO ... HBLK_ATLAS_W=?" in BOTH arms of the A/B and proved nothing. |
| 548 | | // Printing at the point of emission cannot drift from what is emitted. |
| 549 | | static bool announced = false; |
| 550 | | if (!announced) { |
| 551 | | announced = true; |
| 552 | | UtilityFunctions::print("[DCTerrainGeneratorProcNodes] HBLK transport: ", |
| 553 | | on ? "ATLAS binding 14" : "SSBO binding 13", |
| 554 | | " (HBLK_USE_ATLAS=\"", v, "\", HBLK_ATLAS_W=", itos(DCCompute::ATLAS_W), ")"); |
| 555 | | } |
| 556 | | return on; |
| 542 | return v == "1" || v.to_lower() == "true"; |
| 557 | 543 | } |
| 558 | 544 | |
| 559 | 545 | |