Options
All
  • Public
  • Public/Protected
  • All
Menu

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

bias: number

Define bias applied to computed fresnel term

leftColor: Color3

Define the color used on edges (grazing angle)

power: number

Defined the power exponent applied to fresnel term

rightColor: Color3

Define the color used on center

Accessors

  • get isEnabled(): boolean
  • set isEnabled(value: boolean): void
  • Define if the fresnel effect is enable or not.

    Returns boolean

  • Define if the fresnel effect is enable or not.

    Parameters

    • value: boolean

    Returns void

Methods

  • Clones the current fresnel and its values

    Returns FresnelParameters

    a clone fresnel configuration

  • Determines equality between FresnelParameters objects

    Parameters

    Returns boolean

    true if the power, bias, leftColor, rightColor and isEnabled values are equal to the given ones

  • Serializes the current fresnel parameters to a JSON representation.

    Returns IFresnelParametersSerialized

    the JSON serialization

  • 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 constructor
  • Static method

Settings

Theme