Polygon hides mesh with change in camera angle

Hello there!

I’m new to babylonjs and was wondering what I’m doing wrong here.

I do not understand why I am able to see the cylinder inside the polygon. Is there a parameter I’m missing somewhere?

I tried applying materials too, but it does not help.

Here’s the issue in a playground:

Seems like back face is culled, so the solution would be to set:

pipeMaterial.backFaceCulling=false

Also BABYLON.Color3.Red is a function so you are missing brackets in your PG

3 Likes