Custom shaders issue with clipping plane on Rhino 8

Hello,

there seems to be an issue with OpenGL clipping planes when adding materials to objects via script. the issue partly disappears when I place other visible objects in the viewport. A sample script in the attachment. The same issue persists when using ghgl shaders. Done on updated Rhino 8, tested on different computers with updated graphic card driver. Works fine on Rhino 7.

drawbrepswithcolours2.gh (24.7 KB)