CLASSES
TagsA - Z

RefractionPostProcess

PostProcess

Description

class RefractionPostProcess extends PostProcess

Builtin postprocess applying e refraction texture as a postprocess

A tutorial about post process can be found here : https://doc.babylonjs.com/tutorials/how_to_use_postprocessrenderpipeline

Constructor

new RefractionPostProcess(name, refractionTextureUrl, color, depth, colorLevel, options, PostProcessOptions, camera, samplingMode, engine, reusable)

Parameters

Name Type Description
name string The postprocess name
refractionTextureUrl string The URL of the refraction texture
color Color3 The base color of the refraction (used to taint the rendering)
depth number The simulated refraction
colorLevel number The coefficient of the base color (0 to remove base color tainting)
options number or PostProcessOptions
camera Camera The given camera
optional samplingMode number Texture.NEAREST_SAMPLINGMODE, Texture.BILINEAR_SAMPLINGMODE or Texture.TRILINEAR_SAMPLINGMODE
optional engine Engine The engine to attach the postprocess.

Members

color : Color3

The base color of the refraction (used to taint the rendering)

depth : number

The simulated refraction

colorLevel : number

The coefficient of the base color (0 to remove base color tainting)

Methods

dispose(camera) → void

Parameters

Name Type Description
camera Camera The given camera