godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.18k stars 21.2k forks source link

flat shader bug #16827

Closed Itachi217 closed 6 years ago

Itachi217 commented 6 years ago

Godot 3.1 Windows 10 GTX 1070 16GB ram i5

i try to add toon shader in this low poly sphere but the materail shader looks flat and not smooth.

import low poly sphere and add toon shader to it

ws

Zylann commented 6 years ago

Is this sphere looking smooth without toon? Does it look smooth in a 3D modeling program?

ghost commented 6 years ago

this is not a bug , you are using non smooth sphere

Itachi217 commented 6 years ago

Look at the normals of the shader its not smooth at all

reduz commented 6 years ago

There is no such thing as Flat shading in Godot, you exported the model wrong.. this information is not in the material but the geometry.

On Feb 20, 2018 09:59, "Itachi124" notifications@github.com wrote:

Look at the normals of the shader its not smooth at all

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/16827#issuecomment-366969680, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-Z20C9FBOWUGbze2eGm_VaXonxuYRNks5tWsGjgaJpZM4SKyxa .

Zylann commented 6 years ago

Can't reproduce with a sphere with correct smooth normals: image

Side note, toon shading is this: image

Make sure you generate smooth normals in your model if you want it to be smooth in Godot. In Blender, type [Space] and find the "Shade smooth" command (it won't create more geometry, it's still low-poly).

ghost commented 6 years ago

Closing as not a bug.