Jump to content

Render Post Processes before fullscreen GUI layer


royibernthal
 Share

Recommended Posts

Can you make Post Processes render before the fullscreen GUI layer? The same way it was done for Highlight layer and for the same reasons:

http://www.html5gamedevs.com/topic/36612-highlightlayer-is-in-front-of-gui/

 

For instance here is a PG with a GUI without a post process:

http://www.babylonjs-playground.com/#A9EWEQ

 

Here's that same PG with a post process, the GUI is affected by it:

http://www.babylonjs-playground.com/#A9EWEQ#1

Link to comment
Share on other sites

I remember this approach, but I was going for simply rendering ADT afterwards. The same logic mentioned in the highlight thread applies to this case as well.

I think this basically applies to everything - logically ADT layer with foreground = true should be rendered last in all cases, correct me if I'm wrong.

 

http://www.html5gamedevs.com/topic/36612-highlightlayer-is-in-front-of-gui/

Quote

 

yes glow and highlight are layers

They are now rendered before the ADT layer.

Godrays and lens flare are postprocesses so they are also rendered before the ADT layer

 

 

Link to comment
Share on other sites

Sorry I was unclear. ADT is based on layers and thus it will be rendered BEFORE postprocess.

 

And this is not a big deal as we can either have two scenes if it is a problem (or even two cameras with layer masks)

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