Jump to content

All transparent surfaces have refraction


Go to solution Solved by Josh,

Recommended Posts

Posted

there was only one oddity. All particles are now like refractive lenses.

image.thumb.png.9bed49f14206f1cc83f0fc455b2cde4b.png

--self.camera:SetRefraction(true)   I figured out that the particles became glassy under the influence of the transparency parameter in the camera

  • Thanks 1
  • 2 weeks later...
Posted

image.thumb.png.dad4f2f416a7592b613a398ce634ad9b.png

I may have messed up something, but I clicked on the update file icon in my manager. And everything is as usual, the smoke   like glass

  • Thanks 1
  • 2 weeks later...
Posted

Okay, in the editor, you can clearly see the refraction artifacts on both the smoke and muzzelflash. Let me dig in some more...

screenshot748.thumb.jpg.fc86678b81989731b27ec3c447680428.jpg

Let's build cool stuff and have fun. :)

Posted

Okay, I did some really weird math to try to pack an extra boolean into the thickness value, and my math was wrong. I will continue this in the morning...

  • Like 2

Let's build cool stuff and have fun. :)

  • Solution
Posted

Okay, I had to change some things but it will work in the next update.

  • Simple refraction model is removed, to be revisited later.
  • Shader update is required.
  • Game update is required.

Let's build cool stuff and have fun. :)

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.

×
×
  • Create New...