Ssao and clip planes

Ssao works with meshes that are cuted by clip plane
https://playground.babylonjs.com/#LHQJ2I

Ping @julien-moreau for SSAO :slight_smile:

@Zuzukidze looks more like a depth renderer issue.
I can see that the depth fragment doesn’t implement clipping planes support: Babylon.js/depth.fragment.fx at master · BabylonJS/Babylon.js · GitHub

Where for example standard material does: Babylon.js/default.fragment.fx at master · BabylonJS/Babylon.js · GitHub

@sebavan do you think the depth renderer should implement clipping planes support? If yes, then the geometry buffer renderer should too?

Thanks :slight_smile:

Yes definitely :smiley:
Should not be too much of a problem as we have shader include for it :slight_smile: