https://github.com/yuna0x0/sbox-mtoon
Toon Shader with Global Illumination. Ported to s&box (Source 2).
https://github.com/yuna0x0/sbox-mtoon
sbox sbox-game shader source-engine source2 toon-shader
Last synced: 5 months ago
JSON representation
Toon Shader with Global Illumination. Ported to s&box (Source 2).
- Host: GitHub
- URL: https://github.com/yuna0x0/sbox-mtoon
- Owner: yuna0x0
- License: mit
- Created: 2022-11-15T16:34:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-27T10:42:54.000Z (almost 3 years ago)
- Last Synced: 2025-03-29T03:22:33.560Z (about 1 year ago)
- Topics: sbox, sbox-game, shader, source-engine, source2, toon-shader
- Language: GLSL
- Homepage: https://asset.party/edison/mtoon_shader
- Size: 16.2 MB
- Stars: 58
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbox-MToon
**Asset.Party link: https://asset.party/edison/mtoon_shader**
Toon Shader with Global Illumination. Ported to s&box (Source 2).

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

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

# 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



# Credits
### 3D model used in the screenshot
Eve by Hamuketsu (@ganbaru_sisters): https://sisters.booth.pm/items/2557029