Class FresnelParameters
Constructors
constructor
-
Creates a new FresnelParameters object.
Parameters
- options: IFresnelParametersCreationOptions = {}
provide your own settings to optionally to override defaults
Returns FresnelParameters
- options: IFresnelParametersCreationOptions = {}
Properties
bias
bias: number
Define bias applied to computed fresnel term
left Color
Define the color used on edges (grazing angle)
power
power: number
Defined the power exponent applied to fresnel term
right Color
Define the color used on center
Accessors
is Enabled
-
get isEnabled(): boolean
Define if the fresnel effect is enable or not.
Returns boolean
-
set isEnabled(value: boolean): void
Parameters
- value: boolean
Returns void
Methods
clone
equals
-
Determines equality between FresnelParameters objects
Parameters
- otherFresnelParameters: DeepImmutable<FresnelParameters>
defines the second operand
Returns boolean
true if the power, bias, leftColor, rightColor and isEnabled values are equal to the given ones
- otherFresnelParameters: DeepImmutable<FresnelParameters>
serialize
-
Serializes the current fresnel parameters to a JSON representation.
Returns IFresnelParametersSerialized
the JSON serialization
This represents all the required information to add a fresnel effect on a material:
See
https://doc.babylonjs.com/features/featuresDeepDive/materials/using/fresnelParameters