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
scene.customRenderTargets.push(depthGrab)
depthGrab.renderList.push(planet)

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?

Thanks!

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:

May I ask how do you resolve this issue? I am facing the same issue as this topic.

image

2 Likes