Skip to content

JakeKurtz/Multilayer-Thinfilm-OSL

Repository files navigation

Multilayer-Thinfilm OSL Shader

Many structures in nature have complex microstructures, some of which are composed of dozens to thousands of layers of alternating thin films (lamella). When light interacts with these structures a phenomena called interference produces dazzling colors that change depending on the viewing angle.

layer diagram+
Illustration of the reflection and refraction of a multilayer material

Results

Nacre Magpie Feather Ammolite
0128 0108 0059
Moonstone Bottle Fly Golden Stag Beetle
0137 fly_0 beetle_13-3

Film IOR

Index of refraction for the respective layer. Video below shows the impact of the IOR of the secondary layer.

Glossy Glass
ior_gloss.mp4
ior_glass.mp4

Film Thickness

The film thickness specifies the mean thickness of the respective layer. Video below shows the impact of the mean thickness of the secondary layer.

Glossy Glass
thickness_gloss.mp4
thickness_glass.mp4

Film Sigma

The film sigma specifies the variance of the layers thickness. The video below shows the impact of the variance of the secondary layer.

Glossy Glass
sigma_gloss.mp4
sigma_glass.mp4

Lamella Normal

This parameter is useful when you want to mimic crystals such as labradorite and moonstone, which have their lamella structure oriented in a particular direction (plane of schiller).

Lamella_Normal.mp4

Sources:

About

Multilayer Thinfilm shader for OSL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages