yum-archive/Tooner
A toon shader for Unity's BIRP.
git clone https://git.yummers.dev/yum-archive/Tooner
1a4298d
v0.0.0
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.
1## Tooner 2 3A toon shader for VRChat. 4 5Features: 6* PBR 7* Decals 8* Reflection probe override 9* Min/max brightness 10* Emissions 11* Flat/realistic normals 12* Matcaps 13* Rim lighting 14* Outlines 15* Glitter 16* Explosion 17* Geometry scroll (similar to Poiyomi's shatterwave) 18* UV scroll 19* OKLCH color adjustment 20* Clones 21* Opaque, cutout, fade rendering modes 22* Back/front/no culling modes 23* LTCGI 24* Shadow caster pass 25* Extensive use of variants to minimize performance cost 26 27Disclaimers: 281. This is a WIP. 292. I am not a graphics expert. 303. Stability is a non-goal. Keywords are likely to change in the interest of 31 performance and simplicity. 32 33Strawman FAQ 34 351. Why create another toon shader? 36 37To deepen my understanding of lighting and to have a "simple" foundation on 38top of which to create bespoke shader effects. lilToon and Poiyomi are both way 39too fucking huge and complicated to fit my needs. 40 412. Does it work? 42 43Sort of. I haven't implemented shadow receiving yet, so some water effects are 44fucked up. 45 463. Is it optimized? 47 48Sort of. I haven't benchmarked it. I know it's slower than Poiyomi. 49 50I use keywords on every feature so it shouldn't be obscenely bad. But I haven't 51gotten to the point of like, deduplicating all computation and shoving as much 52as possible into the vertex shader. So it's like. Sort of optimized. 53 54I'd like to strike a balance between performance and readability. Since it's 55mostly for*my* use, I don't feel a need to make it totally optimal. 56 574. Demos? 58 59This avatar uses it:[gumroad]( https://yumfood.gumroad.com/l/lychee) . 60 61I'm working on a world but haven't published yet. 62 63Will update this section with real demos later. 64