Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: support tangents #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

WIP: support tangents #13

wants to merge 1 commit into from

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