Jump to content

Water drops on camera


smatt
 Share

Recommended Posts

14 minutes ago, JCPalmer said:

You would need 2 cameras, a scene camera, & a drops camera which was ortho.

Why is there a need for a second camera? Couldn't be the drops on the default "FreeCamera"?

Is it possible to put a bump mapping in front of the camera with zero alpha and PBR? :unsure:

(I'm pretty new to Babylon.JS ;))

Link to comment
Share on other sites

Did it! It is actually much easier than I thought.

Just add following line:

var postProcess = new BABYLON.RefractionPostProcess("Refraction", "textures/normalMap.jpg", new BABYLON.Color3(1.0, 1.0, 1.0), 0.5, 0.5, 1.0, camera);

Result is here: http://babylonjs-playground.com/#FCRJG

I got this line from: http://www.babylonjs.com/Demos/PPRef/

 

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