FresnelParameters

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

see

http://doc.babylonjs.com/how_to/how_to_use_fresnelparameters

Hierarchy

  • FresnelParameters

Index

Properties

bias

Find examples in Playground
bias: number

Define bias applied to computed fresnel term

isEnabled

Find examples in Playground
isEnabled: boolean

Define if the fresnel effect is enable or not.

leftColor

Find examples in Playground
leftColor: Color3

Define the color used on edges (grazing angle)

power

Find examples in Playground
power: number

Defined the power exponent applied to fresnel term

rightColor

Find examples in Playground
rightColor: Color3

Define the color used on center

Methods

clone

Find examples in Playground
  • Clones the current fresnel and its valuues

    Returns FresnelParameters

    a clone fresnel configuration

serialize

Find examples in Playground
  • serialize(): any
  • Serializes the current fresnel parameters to a JSON representation.

    Returns any

    the JSON serialization

Static Parse

Find examples in Playground
  • Parse a JSON object and deserialize it to a new Fresnel parameter object.

    Parameters

    • parsedFresnelParameters: any

      Define the JSON representation

    Returns FresnelParameters

    the parsed parameters

Generated using TypeDoc