Custom toon shader in three.js

Hi friends

I made a three js toon shader for the game I am working on

I really liked the final result so I decided to share

Hope you find it useful

Demo: Three.js Toon Shader Demo

Repo: GitHub - manbust/three-js-toon-shader

2 Likes

Looks nice.

Is the darkening and the shift of the color tone intended effect?

1 Like

Thanks

Yes, those are the intended ‘fake shadows’ of the shader. It uses a 3x1px ramp.png file to draw its shadows in that clean cartoonish look.

1 Like