elm-3d-scene icon indicating copy to clipboard operation
elm-3d-scene copied to clipboard

Support Perlin or similar noise for procedural textures

Open ianmackenzie opened this issue 6 years ago • 2 comments

Especially useful for doing things like normal mapping to give surfaces a more realistic slightly bumpy look, without needing an actual texture image

ianmackenzie avatar Jul 29 '19 20:07 ianmackenzie

I just watched your elm-conf '19 talk. Are regular textures supported? I don't see it mentioned for sure, and the photorealistic scene doesn't seem to have textures, so I'm not sure.

tankorsmash avatar Nov 26 '21 23:11 tankorsmash

Hey @tankorsmash, regular textures are definitely supported! See https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/Scene3d-Material#textured-materials for the documentation and https://github.com/ianmackenzie/elm-3d-scene/blob/main/examples/TexturedSphere.elm for an example.

ianmackenzie avatar Dec 01 '21 03:12 ianmackenzie