Use the normal maps the assets ship #86
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse#86
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
assets/3d/nature/shipsBark_*.pngand matching*_Normal.pngfiles, andliuverse/src/config.rsincludes only the albedo. The vertex layout is position,normal and UV; the lit fragment samples one albedo texture and one normal.
Trees are large, close and textured, and their lighting is flat, so the normal maps
are currently paid for in repository size and never used.
Add a normal-map bind per asset that has one, and a tangent frame. Tangents can be
derived in the fragment from screen-space derivatives, which keeps the vertex
format and every existing buffer unchanged; the cheaper alternative is to add a
tangent attribute at import, which touches
Assetand the scene builder.Related: #76 fixes the filtering that would otherwise hide the result at
distance. #87 varies the same models.