Create Custom ViewModes Applying Materials

Hi everyone,

I know it’s possible to create custom Buffer Visualisation (like PBR checker etc…) but they only read from the Gbuffer.

How would someone create a proper custom view mode (e.g.: Lighting Only, Lightmap Density, Reflections) in which, for the looks of it, a “material is applied to all things in the scene”.

An example would be a Physical Material viewmode, where we could tint objects based on the PM they have, or a texel density viewmode (similiar to Lightmap Density, but with some kind of control over the density itself.)

Thanks in advance.

This video shows how to make the materials and add it to the list,

It would be cool to also make it into a plugin, so if you figure it out that would be amazing