Skip to content

Fix material-refraction example to use correct IOR value#8434

Merged
mvaligursky merged 1 commit into
mainfrom
mv-material-refraction-dynamic-example-fix
Feb 3, 2026
Merged

Fix material-refraction example to use correct IOR value#8434
mvaligursky merged 1 commit into
mainfrom
mv-material-refraction-dynamic-example-fix

Conversation

@mvaligursky

@mvaligursky mvaligursky commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the material-refraction example to use a proper IOR value (1.0 / 1.33 for water) instead of 1.0.

This is a follow-up to #8311 which fixed IOR/refractionIndex being ignored in materials. The fix revealed that the example was using refractionIndex = 1.0, which produces no refraction (IOR ratio of 1.0 means light passes straight through without bending). The example previously appeared to work because the bug caused custom IOR values to be silently ignored, defaulting to glass-like refraction.

@mvaligursky mvaligursky merged commit fba4ea3 into main Feb 3, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-material-refraction-dynamic-example-fix branch February 3, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants