yum-archive/Tooner
A toon shader for Unity's BIRP.
git clone https://git.yummers.dev/yum-archive/Tooner
69a2a65
v0.0.0
files
| Editor/ | |
| Third_Party/at.pimaker.ltcgi/ | |
| LICENSE | 1.0 KiB |
| README.md | 1.6 KiB |
| audiolink.cginc | 266 B |
| clones.cginc | 998 B |
| globals.cginc | 2.4 KiB |
| interpolators.cginc | 1010 B |
| iq_sdf.cginc | 3.4 KiB |
| math.cginc | 2.6 KiB |
| mochie_shadow_caster.cginc | 2.1 KiB |
| motion.cginc | 1.7 KiB |
| oklab.cginc | 3.4 KiB |
| pbr.cginc | 4.8 KiB |
| pema99.cginc | 1.3 KiB |
| poi.cginc | 1.9 KiB |
| shadertoy.cginc | 741 B |
| tooner.shader | 11.9 KiB |
| tooner_lighting.cginc | 21.1 KiB |
| tooner_outline_pass.cginc | 9.6 KiB |
| tooner_scroll.cginc | 1004 B |
Tooner
A toon shader for VRChat.
Features:
- PBR
- Decals
- Reflection probe override
- Min/max brightness
- Emissions
- Flat/realistic normals
- Matcaps
- Rim lighting
- Outlines
- Glitter
- Explosion
- Geometry scroll (similar to Poiyomi's shatterwave)
- UV scroll
- OKLCH color adjustment
- Clones
- Opaque, cutout, fade rendering modes
- Back/front/no culling modes
- LTCGI
- Shadow caster pass
- Extensive use of variants to minimize performance cost
Disclaimers:
- This is a WIP.
- I am not a graphics expert.
- Stability is a non-goal. Keywords are likely to change in the interest of performance and simplicity.
Strawman FAQ
- Why create another toon shader?
To deepen my understanding of lighting and to have a "simple" foundation on top of which to create bespoke shader effects. lilToon and Poiyomi are both way too fucking huge and complicated to fit my needs.
- Does it work?
Sort of. I haven't implemented shadow receiving yet, so some water effects are fucked up.
- Is it optimized?
Sort of. I haven't benchmarked it. I know it's slower than Poiyomi.
I use keywords on every feature so it shouldn't be obscenely bad. But I haven't gotten to the point of like, deduplicating all computation and shoving as much as possible into the vertex shader. So it's like. Sort of optimized.
I'd like to strike a balance between performance and readability. Since it's mostly for my use, I don't feel a need to make it totally optimal.
- Demos?
This avatar uses it: gumroad.
I'm working on a world but haven't published yet.
Will update this section with real demos later.