Skip to content

Commit e821489

Browse files
authored
Change thin film IOR default (#211)
From 1.5 to 1.4. As this won't make much difference to the look in implementations that ignore the adjacent IORs of the film. But for those that take it into account, this will make the film visible rather than invisible by default (since `specular_ior` is 1.5 by default, and `coat_ior` 1.6).
1 parent 9704b2a commit e821489

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/open_pbr_default.mtlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<input name="coat_darkening" type="float" value="1.0" />
3838
<input name="thin_film_weight" type="float" value="0" />
3939
<input name="thin_film_thickness" type="float" value="0.5" />
40-
<input name="thin_film_ior" type="float" value="1.5" />
40+
<input name="thin_film_ior" type="float" value="1.4" />
4141
<input name="emission_luminance" type="float" value="0.0" />
4242
<input name="emission_color" type="color3" value="1, 1, 1" />
4343
<input name="geometry_opacity" type="float" value="1" />

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@
868868
--------------------------|-----------|----------|:---------------:|:-------------:|:--------:|----------------------------------------------
869869
**`thin_film_weight`** | Weight | `float` | $ [0, 1] $ | | $ 0 $ | Coverage weight of the thin film
870870
**`thin_film_thickness`** | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | Thickness of the film in micrometers ($\mathrm{\mu m}$)
871-
**`thin_film_ior`** | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.5 $ | Refractive index of the film
871+
**`thin_film_ior`** | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.4 $ | Refractive index of the film
872872

873873
![](images/thin_film_0nm.png width=99%) ![](images/thin_film_300nm.png width=99%) ![](images/thin_film_600nm.png width=99%)
874874
<div class="shifted-caption">

parametrization.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
| **Thin-film** |
6464
| `thin_film_weight` | Weight | `float` | $ [0, 1] $ | | $ 0 $ | |
6565
| `thin_film_thickness` | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | $\mathrm{\mu m}$ |
66-
| `thin_film_ior` | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.5 $ | |
66+
| `thin_film_ior` | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.4 $ | |
6767
| **Geometry** |
6868
| `geometry_opacity` | Opacity | `float` | $ [0, 1] $ | | $ 1 $ | |
6969
| `geometry_thin_walled` | Thin walled | `boolean` | {false, true} | | false | |

reference/open_pbr_surface.mtlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
doc="Coverage weight of the thin-film. Use for materials such as multi-tone car paint or soap bubbles." />
7070
<input name="thin_film_thickness" type="float" value="0.5" uimin="0.0" uisoftmax="1.0" uiname="Thin Film Thickness" uifolder="Thin Film" uiadvanced="true"
7171
doc="The thickness of the thin-film layer on the base (in micrometers)." />
72-
<input name="thin_film_ior" type="float" value="1.5" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" uiname="Thin Film Index of Refraction" uifolder="Thin Film" uiadvanced="true"
72+
<input name="thin_film_ior" type="float" value="1.4" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" uiname="Thin Film Index of Refraction" uifolder="Thin Film" uiadvanced="true"
7373
doc="The index of refraction of the thin-film." />
7474
<input name="emission_luminance" type="float" value="0.0" uimin="0.0" uisoftmax="1000.0" uiname="Emission Luminance" uifolder="Emission"
7575
doc="The amount of emitted light, as a luminance in nits." />

0 commit comments

Comments
 (0)