Jump to content

Apply Material to Entire Scene


spidersharma
 Share

Recommended Posts

Hi,

This is my first post on this forum ?

I am new to Babylon.js, and wanted to write a shader which writes its output to a render target, which I will use later as an input to another shader.

My first question is::

How can I apply a single shader to all the meshes in the scene, without assigning the new materials to each mesh manually. In three.js there is a property called overrideMaterial in scene, which is helpful in such scenario. Is it possible in Babylon?

My Second question is related to post processing.

Is it possible to write the output of post processing shader to a render target, which then can be used as an input to another shader?

I am sure the answer to above questions is yes, as Babylon looks a great Engine! Thanks in advance ?

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