Open hichemfantar opened 8 hours ago
Currently gltfjsx (via glTF Transform) will remove a normal attribute is if the geometry is either unlit (MeshBasicMaterial) or a point cloud. three.js does not in general require a normal attribute in these cases, but it sounds like you're hitting a problem with Decal geometry. That could be fixed upstream in three.js, but I think a PR here would be OK too.
If you'd like to disable that, it would be necessary to enable the keepAttributes
flag here:
This change would also cause unused UVs and tangents to be kept, relevant to https://github.com/pmndrs/gltfjsx/issues/235.
Need a way to override this behavior because three.js throws an error because it expects the normal attribute to be present
related https://github.com/mrdoob/three.js/pull/29462