RefractionMaterial
Refraction material
Refraction material utilizes ray tracing approach to implement refractions of light inside a mesh volume. It is used for rendering of gems, diamons or glass. Several parameters fine-tune ray tracing mechanics and optimize for quality-performance trade offs. Environment texture is used as a sperical source of light refracting inside the mesh, one can use dynamic texture to reflect surrounding objects of the scene.
Extends
ShaderMaterial
Constructors
new RefractionMaterial()
new RefractionMaterial(
envMap
,color
,opacity
,bounces
,ior
,fresnel
,aberrationStrength
,fastChroma
):RefractionMaterial
Constructor
Parameters
• envMap: Texture
| CubeTexture
Environment map
• color: Color
= ...
Color of the material
• opacity: number
= 1.0
Opacity of the material
• bounces: number
= 4
Number of ray-cast bounces
• ior: number
= 2.4
Refraction index
• fresnel: number
= 0
Fresnel, strip light
• aberrationStrength: number
= 0.2
RGB shift intensity
• fastChroma: boolean
= true
Use fewer ray casts for the RGB shift
Returns
Overrides
ShaderMaterial.constructor