elm-3d-scene
elm-3d-scene copied to clipboard
Add support for normal maps
Much of the necessary functionality for supporting normal maps is already present inside elm-3d-scene
, but there's a bit more thought to do on exactly how to expose it and make sure that all corner cases are correctly handled.
For example, some work remains on how exactly normal map textures should be represented/handled - try to fit it into the existing Texture
framework as a Texture Direction3d
or similar, or have a specialized NormalMap
type? The latter is likely better since it would then be easier to support custom options such as whether normal map texture should be assumed to be in OpenGL or DirectX format.
In addition, normal mapping often involves a sign flag - proper support for this sign flag needs to be added and tested.
Looks like a good test case for normal mapping: https://cc0textures.com/view?id=Wood027