Asset.Party link: https://asset.party/edison/mtoon_shader
Toon Shader with Global Illumination. Ported to s&box (Source 2).
https://github.com/Santarh/MToon
https://vrm.dev/en/univrm/shaders/shader_mtoon.html
Other sections might or might not work. Experiment yourself. UwU
Most of the default material section inputs are not used by this shader except normal map (check "Use Normal Map" if you are using a normal map).
The shader will not output the correct result if any texture has no input at all.
If some texture inputs are unused, just fill them with the default color by clicking the "Change To Color" button.
Different texture inputs might have different default colors.
- Multi-pass rendering is not yet supported (Facepunch/sbox-issues#1067). Therefore, the outline pass has not been implemented yet.
- Engine built-in shadowing and depth prepass (Shadow Caster) is different from Unity. The shadow under direct light looks weird or dirty. Might need to port the shadow caster.
Eve by Hamuketsu (@ganbaru_sisters): https://sisters.booth.pm/items/2557029