Thin-film Interference
Posted: Mon May 11, 2020 5:39 pm
I have added support for thin-film interference to the following materials:
The resulting colors depend on the thickness of the film, the refractive index of the film, and the angle between surface and viewer.
BlendLuxCore
In the Blender addon, the "glass" and "disney" nodes now have a "Thin Film Coating" checkbox.
If enabled, you can specify the thin film thickness (in nanometers) and the IOR of the coating material with two new sockets.
On the disney node, there is an additional "Film Amount" socket so you can mix in more or less of the film effect.
LuxCore SDL
The textures to control the film appearance are defined with the properties
The disney material has the additional property
which is the linear interpolation factor between no film and film.
- Glass
- Arch. glass
- Rough glass
- Disney
The resulting colors depend on the thickness of the film, the refractive index of the film, and the angle between surface and viewer.
BlendLuxCore
In the Blender addon, the "glass" and "disney" nodes now have a "Thin Film Coating" checkbox.
If enabled, you can specify the thin film thickness (in nanometers) and the IOR of the coating material with two new sockets.
On the disney node, there is an additional "Film Amount" socket so you can mix in more or less of the film effect.
LuxCore SDL
The textures to control the film appearance are defined with the properties
Code: Select all
scene.materials.<material name>.filmthickness = 300 # in nanometers
scene.materials.<material name>.filmior = 1.5
Code: Select all
scene.materials.<material name>.filmamount = 1