Skip to content

Conversation

w0rm
Copy link
Owner

@w0rm w0rm commented Apr 24, 2021

Closes #2

This adds support for tangents generation functionality:

normalMappedFaces :
    Obj.Decode.Decoder
        (
        TriangularMesh.TriangularMesh
            { position : Point3d.Point3d Length.Meters coordinates
            , normal : Vector3d.Vector3d Quantity.Unitless coordinates
            , uv : ( Basics.Float, Basics.Float )
            , tangent : Vector3d.Vector3d Quantity.Unitless coordinates
            , tangentBasisIsRightHanded : Basics.Bool
            }
        )

It also introduces an example that uses unpublished elm-3d-scene https://unsoundscapes.com/nefertiti/

Screenshot 2021-05-15 at 09 09 07

@w0rm w0rm force-pushed the tangents branch 4 times, most recently from f69b107 to d008ad8 Compare May 15, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autogenerate tangents
1 participant