Jump to content

Multi-camera and WaterMaterial


Dad72
 Share

Recommended Posts

We need add  " if(vPositionW.x >0.)  discard; " this part  ( need calculate plan direction ) for mirror

and   " if(vPositionW.x < 0.)  discard; " this part  ( need calculate plan direction ) for refract part

to correct shader and recompile  that

http://www.babylonjs-playground.com/#1HECPU#60        

http://www.babylonjs-playground.com/#1HECPU#62

Link to comment
Share on other sites

I do not know how to reproduce your examples to correct on my PG with ground and water.

You asked me for PGs and it does not seem useful to you, because the examples are with your PG, so I do not understand what I should do.

Is of testing for you, in order to correct the problem in CustomMaterial ?

Link to comment
Share on other sites

i need  find the error so i need simulate mirror material to test canera 2 and rendertarget 

so in this sample i see we r problem in mirror material sampler ( uniform array  )

i dont know what happend in mirror material inside may beed talk with writer of this for find solution fatser

 

Link to comment
Share on other sites

@NasimiAsl It would be nice if this bug was corrected for version 3.0 of Babylon before its official release which is for the 7 july.

Why is it so long ? How many weeks you think you will to correct this problem ?

Can not we simply add a propertie that allows to recompile the shader after the creation of water or miror... ? Which should solve this problem. You may have another solution ...

It's been weeks since this bug is open, can it be resolved? The version 3.0 of Babylon be released with this major bug ? :mellow:

Link to comment
Share on other sites

  • 2 weeks later...

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