Calculate interpolated vertex normals in vertex shader

XxpiingyxX
Thu, 06 Nov 2025 11:52:06 +0000
Rendering

I would like to calculate the interpolated Vertex Normals so I could use that data in a Vertex Shader for an outline effect, but I don’t know how.

This is the material I have:

But this is how it looks like on a non-smooth surface mesh:

And this is on a smooth surface (the look I am after):

I don’t really have the option to create duplicates with smooth surfaces, and I therefore want to create a workaround where I calculate the interpolated vertex normals so I could use them in the vertex shader.

I appreciate any help I could get!

11 posts - 3 participants