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

Add support for normal maps

Open ianmackenzie opened this issue 4 years ago • 1 comments

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.

ianmackenzie avatar Feb 04 '20 16:02 ianmackenzie

Looks like a good test case for normal mapping: https://cc0textures.com/view?id=Wood027

ianmackenzie avatar Jul 09 '20 18:07 ianmackenzie