ianmackenzie / elm-3d-scene

A high-level 3D rendering engine for Elm, with support for lighting, shadows, and realistic materials.
https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/
Mozilla Public License 2.0
205 stars 27 forks source link

Switch to accepting material as first argument #44

Closed ianmackenzie closed 4 years ago

ianmackenzie commented 4 years ago

Allows for things like

Block3d.centeredOn axes ( length, width, height )
    |> Scene3d.block Materials.aluminum

or

List.map (Scene3d.mesh Materials.aluminum) listOfMeshes
ianmackenzie commented 4 years ago

As suggested by @w0rm on Slack =)