I have a GLTF/GLB model with normal maps. How can I make Wonderland Engine render them correctly?
Normal maps are supported in Wonderland Engine, but disabled by default.
Enable them as follows:
- Enable
Views > Project Settings > Rendering > useTangents
- Go to
Views > Resources > Pipelines
- Right-click “Phong Opaque Textured” > Duplicate
- Rename the new pipeline “Phong Normal Mapped”
- Enable
NORMAL_MAPPING
in the new pipeline.
Now you can switch the material of the imported mesh to use the new pipeline and set the normal map.
(And as @yin-chien_Yeap mentioned, make sure to export your model with tangents. Tangents can not be generally regenerated and need to match whatever your normal maps where authored with to look right.)
1 Like
Note that the model must be exported with Tangents for the normal mapping to work in Wonderland
Blender example here:
1 Like