Jump to content

Rim Effect


pichou
 Share

Recommended Posts

Cool I didn't know about the fresnelParameters!

To go further, do you think there is a way to mix waterMaterial with the fresnel parameters to obtain a sort of force field? 
Something like that : https://www.youtube.com/watch?v=tB5WoFpWdYQ (hope I won't get ban for sharing a unity video ;) )

 

I have made a test in this playground with no result : http://www.babylonjs-playground.com/#1SLLOJ#386
But maybe the waterMaterial is not the right tool to do that.

Cheers!

Link to comment
Share on other sites

  • 3 months later...

I made it work by adding the needAlphaBlending: true attribute in the ShaderMaterial creation! It looks really nice!

Weird thing I noticed though : If my mesh with the shaderMaterial has a visibility of 1, it creates a hole in the canvas. I mean I can see the other html element behind the canvas in the scene.
In order to avoid that I add to put the visibility to 0.2.

ShaderMaterial are awesome, I will continue to add them in my scene! ;)

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