NME flat shading

Hi

Got a question. Is there a way to achieve flat shading in NME?

I need to part of my mesh that does not flat reflect light as it was flat. Cause speculators are looking bad on the edges when the low poly mesh is making mesh uneven and some speculators are showing up.

But I do not think that a flat shading per polygon will do it. I think something more like the whole mesh is treated like a single flat unified in direction polidon.

I need this:

image

to look like this:

image

Like the displacement would not be there all, but it is there.

With a NodaMaterial.

https://playground.babylonjs.com/#103NSU

Regards
Peter

well I’m not sure to follow. You do not want lighting? Like ignore the geometry? Because in this case instead of using mesh.normal you can simply use a constant vector (0, 1, 0)

I want lightning but to have a unified angle. Then constant vector instead of mesh normal might do the trick. Will give it a go and let you know:)

Thanks
Peter

1 Like

Yes :slight_smile: It worked :slight_smile:

Thanks :slight_smile: