Global materials override for the Blender EEVEE render engine

Some times we need to make a render of the scene with the single material, for example, for clay or wireframe renders. Blender has the global materials override option for the Cycles render engine in the “View Layer Properties” – “Override” but not for the EEVEE render engine.

Quick materials override for the EEVEE rendering engine can be made with a small script, as shown in the following video:

Script and video by Vitaly Sokol.

Base PBR-materials scheme

The basic scheme for making a PBR (physically based) node shader in Blender looks like as follows:

Note that all the “ImageTexture” nodes, except for the “Base Color” node, use the “NonColor” colorspace.