Vertex Animation Script for Blender 3D Users

Hi! I love your tool it’s really useful. I was wondering if there’s a reason that meshes with hard edges appear smoothed when using the generated normal texture? Is there a way around this? Or have I done something wrong? Thanks!

Edit: I tried it with another mesh and it seems that my normal output always looks a bit weird. I’m not sure if it’s the material function or the texture.

Weird shading: