Skip to content

provencher/MRTK-StandardShader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRTK-StandardShader

Standalone version of MRTK Standard Shader

This repo is a mirror of the bare minimum extracted components to fully utilize the MRTK Standard Shader without needing to include all of MRTK.

Tested setup: Unity 2019.4 LTS, though it should work with older or newer versions.

MixedRealityToolkit/Standard shader

The MixedRealityToolkit/Standard shader is a collection of shading techniques for mimicking Microsoft's Fluent Design System within Unity 3D.

The goal of this shader is to have a single, flexible shader that can achieve visuals similar to Unity's Standard Shader, implement Fluent Design System principles, and remain performant on mobile hardware, including standalone mixed reality devices.

Example scenes

To explore a Unity scene demonstrating materials, open Scenes\MaterialGallery.unity.

StandardShader

To compare the Unity Standard shader to the MRTK Standard shader open Scenes\StandardMaterialComparison.unity.

MaterialComparison

For clip primitive examples, open Scenes\ClippingExamples.unity.

Sphere

ClipSphere

Box

ClipBox

Plane

ClipPlane

Limitations

Only one light source is supported, the directional light (additional light can be achieved using lightmapping). If you already using MRTK, then this package is not needed for your project.

Note this shader is designed to work with the default built-in renderer. MRTK includes an upgrade script that should allow it to work with URP, though certain features that rely on the depth buffer like stencils and outlines will not work until that is properly supported on URP.

Download

Either clone this repo, or download the packages in the Releases section.