don't share a single material instance for all highlighted objects

destroy highlight material instances on highlight asset destroyed
expose highlight instances on Scene via getAssetForHighlight
This commit is contained in:
Nick Fisher
2025-06-26 15:32:05 +08:00
parent b5d9a06422
commit a7b0ed6f21
3 changed files with 40 additions and 18 deletions

View File

@@ -24,6 +24,7 @@ void main() async {
await testHelper.capture(viewer.view, "stencil_highlight");
await scene.removeStencilHighlight(cube);
await testHelper.capture(viewer.view, "stencil_highlight_removed");
}, createStencilBuffer: true);
});