Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FresnelParameters

This represents all the required information to add a fresnel effect on a material:

see

https://doc.babylonjs.com/divingDeeper/materials/using/fresnelParameters

Hierarchy

  • FresnelParameters

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

biasSearch playground for bias

bias: number

Define bias applied to computed fresnel term

leftColorSearch playground for leftColor

leftColor: Color3

Define the color used on edges (grazing angle)

powerSearch playground for power

power: number

Defined the power exponent applied to fresnel term

rightColorSearch playground for rightColor

rightColor: Color3

Define the color used on center

Accessors

isEnabled

  • get isEnabled(): boolean
  • set isEnabled(value: boolean): any
  • 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 values

    Returns FresnelParameters

    a clone fresnel configuration

equalsSearch playground for equals

  • Determines equality between FresnelParameters objects

    Parameters

    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

    Returns FresnelParameters

    the parsed parameters

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method