2D to 3D shape: shade and texture

@prisoner849: thank you for speedy response. I had no idea this question existed.

I have added the code from Texture on dynamically created object to a fork of my previous fiddle:

https://jsfiddle.net/theo/fmr6vxde/

I note that the textures load nicely but that the shading does not work. In order to show this more clearly, I replaced THREE.MeshPhongMaterial with THREE.MeshNormalMaterial. The result looks like this:

Can you think of a way of getting the meshes to shade as expected?