Use a model's own UV channel for texture displacement, and keep its colours through a bake (#16394)

This commit is contained in:
ExPikaPaka
2026-10-13 19:51:07 +08:00
committed by GitHub
parent ab42ddeef2
commit f546551b3f
17 changed files with 904 additions and 102 deletions
@@ -48,7 +48,8 @@ void TextureDisplacementPreviewJob::process(Ctl &ctl)
(!m_current_generation ||
m_current_generation->load() == m_generation);
},
color, m_input.volume_to_world);
color, m_input.volume_to_world, nullptr, nullptr,
m_input.model_uv.empty() ? nullptr : &m_input.model_uv);
}
void TextureDisplacementPreviewJob::finalize(bool canceled, std::exception_ptr &eptr)