Skip to content

Commit

Permalink
Add note about required texture sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmackenzie committed Jun 27, 2020
1 parent 8934d40 commit f8afce0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Scene3d/Material.elm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ like their non-textured versions above, but require a mesh that has [UV](https:/
(texture) coordinates. Color, roughness and metallicness can then be controlled
by a texture image instead of being restricted to constant values.
Note that images used as textures should generally have dimensions that are
powers of 2: 2048x2048, 1024x512, etc. Images you get from sites like [CC0
Textures](https://cc0textures.com/) will almost always have appropriate
dimensions, but if you want to use your own images some cropping/resizing may be
needed.
@docs Texture, constant, load
@docs texturedColor, texturedEmissive, texturedMatte, texturedNonmetal, texturedMetal, texturedPbr
Expand Down

0 comments on commit f8afce0

Please sign in to comment.