microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Sample Scene: Add ClippingInstancedExamples to MRTK3 #11510

Closed AMollis closed 1 year ago

AMollis commented 1 year ago

This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:


MRTK2 Scene Name

ClippingInstancedExamples

Overview

This scene shows how the MRTK/Standard shader in conjunction with clipping primitives (ClippingPlane, ClippingSphere, & ClippingBox) can be used to dynamically clip pixels on meshes instanced on the GPU. This method allows for significantly more clipped meshes by enabling automatic batching across all renderers that share the same material even if they interact with different clipping primitives.

Additional Context

MRTK/Standard shader replaced by GraphicsTools shader

Weimmer commented 1 year ago

Hi, is it possible to use custom "ClippingMesh" somehow? Like currently it only support plane, sphere and box, it would be great if it support custom mesh shape clipping.

AMollis commented 1 year ago

Done