Property.index_of_refraction#
- property Property.index_of_refraction: float[source]#
Return or set the index of refraction of the base layer.
This value controls the amount of light reflected at normal incidence. This requires that the
interpolationbe set to'Physically based rendering'.For further details see PBR Journey Part 3 : Clear Coat Model with VTK
Property has range
[1.0, inf).Added in version 0.49.
Examples#
Download Python source code | Download Jupyter notebook
Get the default index of refraction.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.index_of_refraction
1.5
Set the index of refraction.
>>> prop.index_of_refraction = 2.0
>>> prop.index_of_refraction
2.0