Szerkesztés

Megosztás a következőn keresztül:


Microsoft.MixedReality.Toolkit.Rendering Namespace

Classes

DepthBufferRenderer

Component should be applied to the main camera and will apply post-process procedure to blit the scene's rendered depth buffer as the color output

MaterialInstance

The MaterialInstance behavior aides in tracking instance material lifetime and automatically destroys instanced materials for the user. This utility component can be used as a replacement to Renderer.material or Renderer.materials. When invoking Unity's Renderer.material(s), Unity automatically instantiates new materials. It is the caller's responsibility to destroy the materials when a material is no longer needed or the game object is destroyed. The MaterialInstance behavior helps avoid material leaks and keeps material allocation paths consistent during edit and run time.

Interfaces

IMaterialInstanceOwner

Optional interface to use with objects which need to take ownership of MaterialInstance(s).