SnutiHQ / Toon-Shader

A character focused Toon Shader for Unity using Shader Graph.
https://www.youtube.com/watch?v=g8eBXCgWwrk
MIT License
444 stars 58 forks source link

Support for Emissions #2

Closed chicken-suop closed 4 years ago

chicken-suop commented 4 years ago
Screen Shot 2020-06-27 at 23 47 19

I'm trying to add lights using emissions, but they aren't affecting the toon shader. Please help

chicken-suop commented 4 years ago
Screen Shot 2020-06-27 at 23 49 36

Setting all elements to Static, gives me this effect. So, the lighting is affecting the Suzzan, but the toon shader isn't being used

ecker00 commented 4 years ago

Supporting emissive surfaces could technically work, but think this would fall quite far outside scope of a Toon Shader, as it's trying to achieve simplistic shading/lighting look rather than something realistic.

The current setup of the Toon Shader supports directional, point and spot lights. Technically speaking you can make it support anything, as the helper script is just finding the position of all light sources in the scene and assigning colour values from various directions.