-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toon shading issue #20207
Comments
The "shadow" around the chin comes from the environment lighting. I'm not sure if there's a way to disable it with a flag. The second shadow problem has workarounds but there's no perfect way. Using a normal offset and good bias value usually takes care of it pretty well. |
thank you. so now the problem is due to the shadow from the environment lighting? Thank you. |
toon shading works well with directional lights. if you use omnilight or your sky is contributing to ambient light, you get this kind of shading. not sure if supposed to be or bug |
if no ambient light, objects which do not receive the directional light will become black. |
@nagasawamaki you can use ambient light to have some basic light in all objects, just disable(or reduce) the sky contribution in the world environment node, that's the issue |
@nagasawamaki using the suggested settings were you able to get things figured out? If so, can we close this issue? |
what @nunodonato suggested is use ambient light and disable the sky contribution. |
@volzhs ah yes, you are correct. |
what about setting Background > Energy to |
I guess this will help you. or using built-in material |
Try background energy of 1 and ambient energy of 0. Also, this has been fixed in 4.0. You can now disable radiance and/or irradiance as you choose. |
Here: @clayjohn any chance this can be fixed for 3.2.x? I could do it with a bit of help, if that's desired. |
Managed to obtain the typical banding, but it does not behave as expected. Opened a proposal with more detail here. godotengine/godot-proposals#484 |
Closing in favor of godotengine/godot-proposals#484, as feature proposals are now tracked on the Godot proposals repository. |
Godot version:
3.0.2
OS/device including version:
Windows 7, Nvidia GeForce GTX 1060
Issue description:
I am testing Godot toon shader for my character but I found some issues on it.
First I found there is some gradient shadow in the model even I use the toon shader.
I think The gradient shadow should not be appear in toon shading. Or am I setting wrong?
Below is my setting for the material:

Metallic: 0
Roughness: 0
Another issue is when the directional light enable shadow, the mesh become the following:

I think it should not happen in toon shading.
Ultimately, I just want to achieve the visual effect like this:

If I am doing something wrong, please tell me how can I get the toon shading like above (wind waker style). Thanks so much!
Steps to reproduce:
-make a meshInstance
-set the material to toon shading
-add directional light
Thank you!!
The text was updated successfully, but these errors were encountered: