Home Reference Source
import {SSAOMaterial} from 'postprocessing'
public class | source

SSAOMaterial

Extends:

three~ShaderMaterial → SSAOMaterial

A Screen Space Ambient Occlusion (SSAO) shader material.

Constructor Summary

Public Constructor
public

constructor(camera: Camera)

Constructs a new SSAO material.

Member Summary

Public Members
public get

The depth packing of the source depth buffer.

public set

Sets the depth packing.

public

Method Summary

Public Methods
public

adoptCameraSettings(camera: Camera)

Adopts the settings of the given camera.

public

Sets the texel size.

Public Constructors

public constructor(camera: Camera) source

Constructs a new SSAO material.

Params:

NameTypeAttributeDescription
camera Camera

A camera.

Public Members

public get depthPacking: Number source

The depth packing of the source depth buffer.

public set depthPacking: Number source

Sets the depth packing.

public needsUpdate: boolean source

Public Methods

public adoptCameraSettings(camera: Camera) source

Adopts the settings of the given camera.

Params:

NameTypeAttributeDescription
camera Camera
  • optional
  • default: null

A camera.

public setTexelSize(x: Number, y: Number) source

Sets the texel size.

Params:

NameTypeAttributeDescription
x Number

The texel width.

y Number

The texel height.