Class FresnelParameters
Hierarchy
- FresnelParameters
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new FresnelParameters object.
Parameters
-
Optional options: IFresnelParametersCreationOptions
provide your own settings to optionally to override defaults
Returns FresnelParameters
-
Properties
biasSearch playground for bias
Define bias applied to computed fresnel term
left ColorSearch playground for leftColor
Define the color used on edges (grazing angle)
powerSearch playground for power
Defined the power exponent applied to fresnel term
right ColorSearch playground for rightColor
Define the color used on center
Accessors
is Enabled
-
Define if the fresnel effect is enable or not.
Returns boolean
-
Define if the fresnel effect is enable or not.
Parameters
-
value: boolean
Returns any
-
Methods
cloneSearch playground for clone
-
Clones the current fresnel and its valuues
Returns FresnelParameters
a clone fresnel configuration
equalsSearch playground for 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
-
serializeSearch playground for serialize
-
Serializes the current fresnel parameters to a JSON representation.
Returns IFresnelParametersSerialized
the JSON serialization
Static ParseSearch playground for Parse
-
Parse a JSON object and deserialize it to a new Fresnel parameter object.
Parameters
-
parsedFresnelParameters: IFresnelParametersSerialized
Define the JSON representation
Returns FresnelParameters
the parsed parameters
-
This represents all the required information to add a fresnel effect on a material:
https://doc.babylonjs.com/how_to/how_to_use_fresnelparameters