Every material applied does it. I think it is some sort of geometry normal oddness. It’s got me head scratching for most of today. So I figured I would call in reinforcements. Thoughts on a fix?
The white vertical lines are the normals. As you can see, the first triangle as a proper normal for each of its 3 vertices, so the shading is ok, but the other triangles have only a single normal for one of its vertex, so the shading can’t work.
Don’t know why it happens, if it’s a bug in the MeshBuilder.ExtrudeShape class or if there is something wrong with your parameters when calling this function…
First of all lets exaggerate the shape you are extruding, i.e. majorLine. In your case your shape is essentially two lines forming a 0 angle. Lets make that angle none zero (lines 69 - 71)
Since by default only front sides are drawn as you move the camera, depending on the angle, only some of the front sides of the upper or lower planes can be seen at any one time.