Jump to content

SSAO/DepthRenderer renders inactive meshes


Kesshi
 Share

Recommended Posts

In this playground i'm using SSAO: http://www.babylonjs-playground.com/#27DV4V
If you click on the canvas, the 2 spheres will be removed from the scene (but not disposed). The problem is that SSAO effect of the spheres remains visible.

I think this line is causing the issue: https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/Textures/babylon.renderTargetTexture.ts#L238
getActiveMeshes returns a SmartArray and the internal data array is used directly here wihtout using the real length of the SmartArray.

This also means that the frustum culling is not working correclty for the DepthRenderer at the moment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...