Property.index_of_refraction

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 interpolation be set to 'Physically based rendering'.

For further details see PBR Journey Part 3 : Clear Coat Model with VTK

Property has range [1.0, inf). A value of 1.0 reflects no light at normal incidence and larger values reflect more.

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.