Jump to content

Glass shader


Temechon
 Share

Recommended Posts

Hello all, 

 

I'm looking to create a glass shader that I can use in my Babylon projects, but I cannot achieve the effect I would like to have.  

 

Here is my code : https://dl.dropboxusercontent.com/u/17799537/08_GLASS.zip

 

And an example of what I have so far is attached to this post. I don't know how to have the transparency required on my sphere...

 

Thank you for your help !

 

 

post-5218-0-82699500-1387205102_thumb.pn

Link to comment
Share on other sites

It works with the alpha blending. I had to update the shader but I have now some transparency.

I removed the bump texture and the reflection texture as I don't need it.

 

Next problem : I would like more refraction that I have right now. I tried to update the refraction level, and tweak some values in the shader, without any results...

 

The effect I would like to reproduce is the second image : I want to be as much realistic as possible.

post-5218-0-85499900-1387444726.png

post-5218-0-25302200-1387445193.jpg

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