elm-obj-file icon indicating copy to clipboard operation
elm-obj-file copied to clipboard

Autogenerate tangents

Open w0rm opened this issue 4 years ago • 0 comments

Tangents would allow rendering with normal mapping. Tangent can be calculated from positions and uv of three vertices from a face.

TBD: a tangent probably needs to store an additional value (1 or -1) that is needed to compute the direction of bitangent, so a Vector3d type might not be enough to store the value.

This depends on elm-3d-scene support for normal maps.

w0rm avatar Aug 07 '20 20:08 w0rm