Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find something to emulate refraction on glass #4

Open
sunkper opened this issue Feb 15, 2020 · 2 comments
Open

Find something to emulate refraction on glass #4

sunkper opened this issue Feb 15, 2020 · 2 comments
Labels
visual Visual related issues

Comments

@sunkper
Copy link
Owner

sunkper commented Feb 15, 2020

Due to the limitation of current Godot renderer, transparent materials behind objects with refraction are not visible. Now I have to remove refraction from glasses... https://twitter.com/SunkPer/status/1228087270281887744

Glasses without refraction feels very flat. I have to find something to emulate the "feeling" of refraction.

Possibly..

  • Normal or roughness, or combination of both
  • Depth?

Or maybe, reversely, remove transparency from sea face. Some clever texturing? Interior mapping shader???

@sunkper sunkper added the visual Visual related issues label Feb 15, 2020
@sunkper
Copy link
Owner Author

sunkper commented Feb 18, 2020

Possible workaround: Set water shader opaque when it's viewed through the glasses. Water doesn't need to be transparent unless camera is looking at it closely.

How?:

  • Set it opaque if player or camera is inside the house. Possibly using anim? Shader params?
  • Cast rays and check if the sea is viewed through the glasses (convoluted)

@sunkper
Copy link
Owner Author

sunkper commented Apr 20, 2020

Decided to just live with it for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
visual Visual related issues
Projects
None yet
Development

No branches or pull requests

1 participant