Class FresnelModifier
- Namespace
- Nautilus.Utility.MaterialModifiers
- Assembly
- Nautilus.dll
A material modifier that changes the '_Fresnel' property of all materials.
public class FresnelModifier : MaterialModifier
- Inheritance
-
FresnelModifier
- Inherited Members
- Extension Methods
Constructors
FresnelModifier(float)
Changes the fresnel of all materials based on the '
fresnel
' parameter.public FresnelModifier(float fresnel)
Parameters
fresnel
float- This factor determines how much the reflection intensity changes based on the angle of incidence.
Remarks
Example values:
- 0.00: no fresnel; uniform reflection intensity regardless of view direction.
- 0.25: average fresnel; edges are shinier.
- 0.70: high fresnel; ideal for transparent membranes (ghost leviathans use this value).
- 1.00: full fresnel. Only geometry at a 90° angle is shiny, which results in essentially no reflections.
Methods
EditMaterial(Material, Renderer, int, MaterialType)
Applies changes to the specified material.
public override void EditMaterial(Material material, Renderer renderer, int materialIndex, MaterialUtils.MaterialType materialType)
Parameters
material
Materialrenderer
RenderermaterialIndex
intmaterialType
MaterialUtils.MaterialType