Solution: Turn off Optimize Mesh Attributes. In Blender this is located under Render Properties. Re-export your project.
Hi there,
Problem: After a material swap from a material with a normal map (Source) to a material without a normal map (Target) – the target object will appear black on iphone.
On desktop the normal map will not be displayed but the color information remains intact.
HOW TO USE THE EXAMPLE:
This demo has two rows of ico spheres.
The Blue ico sphere (Source) is the button. It contains the source material and has a normal map.
In the first row there is a red (Target) ico sphere without a normal map.
When you click the first row blue ico sphere the material replaces the material in the red ico sphere but the normal map does not map with it. Desktop, red sphere turns blue, on iphone red sphere turns black.
In the second row there is a blue and red ico sphere each having a material with a normal map. When you press the blue sphere the red sphere receives the texture map and the color as expected.
online test application
https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:184ff32db5/applications/test_normal_map_swap/test_normal_map_swap.html
online project with blend file:
https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:184ff32db5/zip/test_normal_map_swap.zip