Skip to content

edisonlee55/sbox-MToon

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

sbox-MToon

Asset.Party link (Fallback Only): https://asset.party/edison/mtoon

Toon Shader with Global Illumination. Ported to s&box (Source 2).

sbox_mtoon_demo

Source Shader

https://github.com/Santarh/MToon

Usage

https://vrm.dev/en/univrm/shaders/shader_mtoon.html

Highlighted sections are functional and tested.

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).

sbox_mtoon_usage


ALL texture inputs must have at least a color or valid texture file input.

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.

sbox_mtoon_texture_notice

Limitation

  • Multi-pass rendering is not yet supported (sboxgame/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.

Screenshot

sbox_mtoon_demo_1

sbox_mtoon_demo_2

sbox_mtoon_demo_3

Credits

3D model used in the screenshot

Eve by Hamuketsu (@ganbaru_sisters): https://sisters.booth.pm/items/2557029

About

Toon Shader with Global Illumination. Ported to s&box (Source 2).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages