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

Wavelength Change by Refraction #38

Open
PearCoding opened this issue Jul 23, 2020 · 0 comments
Open

Wavelength Change by Refraction #38

PearCoding opened this issue Jul 23, 2020 · 0 comments
Labels

Comments

@PearCoding
Copy link
Owner

The change of the wavelength when a refraction occurs is not taken care of when intersecting with another surface, while being inside the diffracted domain. This is not visible on a glass sphere, but if something is inside of it, the calculation will get wrong. See for example the front-page screen-shot where water is on top of the floor. The returned reflection color is wrong.
The wavelength in vacuum has to be available all the time, as the index of refraction is calculated by it regardless of the media, but also the wavelength inside media has to be available at least when shading, as spectral lookups have to be done with this wavelength.
Adding this support is worth only when volume is added. IOR should be handled by two media intersecting (e.g. glass material)

@PearCoding PearCoding added the bug label Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant