DepthPass from RTT? or Similar solution

so Is there a way to get a depth pass from a specific rtt?

var depthGrab = new BABYLON.RenderTargetTexture("depthGrab", 1024, scene, false);
depthGrab.activeCamera = camera

I need a way to grab the depth texture of only specific meshes.

Hey @Pryme8,

Any possible way to get a playground to look at, to get a better idea of what you’re after?


I actually figured it out!

1 Like

Thanks for pursuing a solve for P8, @PirateJC. Free Expresso Vapes all weekend, for you and your family/friends… compliments of Babylon Java Shoppes. :slight_smile: