KhronosGroup / glTF-Validator

Tool to validate glTF assets.
Apache License 2.0
360 stars 60 forks source link

Test for invalid length normals in normal maps #217

Open emackey opened 4 months ago

emackey commented 4 months ago

Suggested in KhronosGroup/glTF#2368, this utility could check for invalid texels in normal maps by calculating the length of the normal at each texel, and checking for Z < 0.5. There might need to be some tolerance to allow for poor JPEG encoding, etc. This could be done independently of any mesh geometry, but would require image decoders to be present.