Unlit material accurately displaying vertex colors

Hello there,
I’ve been trying to make a material that can showcase vertex color on an unshaded “unlit” mesh in the Material Preview view. I tired to use Emission type of node for that output but it seem it doesn’t really have a full white color, instead has this slightly dimmer and tinted shade of white. When I increase the Strength value, the color gets more white, but also every other color that is being displays shifts to brighter ranges. Any idea how to fix it so the output would be more like the one under Solid view when Lightning is set to Flat (as seen in the first picture)?


This is how I want it to look


This is how it currently looks.

The first image looks like it’s set to Flat mode in Viewport Shading.

The manual explains it this way:
Flat: Do not calculate any lighting. The base color of the scene will be rendered.

https://docs.blender.org/manual/en/latest/editors/3dview/display/shading.html

Yeah, I know how the flat lightning works, I am trying to emulate this with a shader.
The emission is the closest to get to the same result because if I understand it correctly emission is basically making the material emit the light on its own creating no shade. But obviously it has limitation and I am trying to see if there are ways to overcome it so the shader rendering would show the same as the flat rendering under Solid

I don’t understand the whole content exactly. (language problem) :slightly_smiling_face:

To create a material similar to Flat, use the Shaders to rgb node.

https://docs.blender.org/manual/ru/4.1/render/shader_nodes/converter/shader_to_rgb.html

However, this is supported only up to blender 4.1, and from blender 4.2, it is switched to EEVEE-Next and the Shaders to rgb node is no longer available.

This is due to colour management (by default set to AGX).
For white to look pure white you can change that to “standard” (you could also try “khronos PBR neutral” or “raw”)

Emission values over one will de-saturate (vear to white) and in some cases change hue. For example with “standard” or “raw” reds will turn yellow when you turn the emission value over 1. Khronos was made to avoid this as much as possible and will go from red to pink to white.

For what you are after I would make sure not to set values over 1 in the emission, any of those options (standard, kronos, or raw) should give you pure white with HSV value of hue 0, sat 0 and value 1 and an emission strength of 1.

They do have differences, I would probably go for standard, you can check which one gets you closer to your goal.

1 Like

Yeah, thanks, this is exactly the solution I was looking for! It helped to set the Color Management from Filmic to Standard

1 Like