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 committed 2025-06-26 15:32:05 +08:00
1 parent b5d9a06422
commit a7b0ed6f21
3 files changed
+40 -18

No files matched your search

+1
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);
});