Jump to content

Postprocesses breaking layer masks


Abyss
 Share

Recommended Posts

Hi, developers! I have one problem with using postprocesses on cameras with layer masks. 

My scene contain two cameras with different layer masks, i push them all in active cameras to blend them. For this moment all is good and i have this picture (https://yadi.sk/i/rlKH9yIpuUeWM).

Planet are attached to layer with ortho camera, background are attached to the free camera.

When i use VolumetricLightScatteringPostProcess (or LensRenderingPipeline) on the ortho camera i get black background (https://yadi.sk/i/tTG9UbaMuUeww), seems like cameras are not blending.

Can you told me its a bug, or i doing something wrong?

Link to comment
Share on other sites

22 minutes ago, Sebavan said:

Hello,

Could you create a playground for it ?

I would like to help addressing his issue.

On the following sample I have 2 cam with layer and separate pp per cam and it seems to be ok.

http://www.babylonjs-playground.com/#1P98HI#88

CU,

Thanx for answer, friend! Can you try this with one orthographic camera. And i will try to create a playground primer. 

P.s.

Your code is amazing, thx for example, pls dont remove him). I see you use render targets and layers, and your code much more complex then my ^_^.

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...