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

DepthDownsamplingMaterial

Extends:

three~ShaderMaterial → DepthDownsamplingMaterial

A depth downsampling shader material.

Based on an article by Eleni Maria Stea: https://eleni.mutantstargoat.com/hikiko/depth-aware-upsampling-6

Constructor Summary

Public Constructor
public

Constructs a new depth downsampling 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

Sets the texel size.

Public Constructors

public constructor() source

Constructs a new depth downsampling material.

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 setTexelSize(x: Number, y: Number) source

Sets the texel size.

Params:

NameTypeAttributeDescription
x Number

The texel width.

y Number

The texel height.