Mixedrealitytoolkit-unity: Add metal and smoothness texture maps to mrtk standard shader options

Created on 13 Jun 2018  路  6Comments  路  Source: microsoft/MixedRealityToolkit-Unity

Overview

Currently the metal and smoothness maps need to be embedded into the albedo texture, but then that limits the ability to use transparency in the albedo alpha.

Adding the metal and smoothness texture slots will give developers greater flexibility in creating materials.

Shaders / Materials

Most helpful comment

I have some cycles to add these features. I thinking of approaching it as one additional channel texture. Laid out as follows (to match Unity's standards):

Red -> Metallic
Green-> Occlusion
Blue -> Emission (Unity uses 3 channels for this.)
Alpha-> Smoothness

All 6 comments

This shouldn't be too hard to add, I would be worried about enabling these features on HoloLens for perf reasons. But, with IHMDs it should be fine. I'm a tad busy right now, but can add this in the coming weeks!

Has there been any progress on that front?

@Cameron-Micka bump. Once that's in I think we should port that feature over to vNEXT.

I haven't had a chance to start this yet, but I agree I will make sure to merge all latest changes to vNEXT. I also have a few other enhancements I would like to integrate into the MRTK from our local version.

I have some cycles to add these features. I thinking of approaching it as one additional channel texture. Laid out as follows (to match Unity's standards):

Red -> Metallic
Green-> Occlusion
Blue -> Emission (Unity uses 3 channels for this.)
Alpha-> Smoothness

I just created a pull request for this! Implementing it via channel maps requires a bit more texture authoring time, but is a big win for performance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephenHodgson picture StephenHodgson  路  3Comments

brean picture brean  路  3Comments

StephenHodgson picture StephenHodgson  路  3Comments

DanAndersen picture DanAndersen  路  3Comments

Alexees picture Alexees  路  3Comments