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

UpsamplingMaterial

Extends:

three~ShaderMaterial → UpsamplingMaterial

Implements:

An upsampling material.

Based on an article by Fabrice Piquet: https://www.froyok.fr/blog/2021-12-ue4-custom-bloom/

Constructor Summary

Public Constructor
public

Constructs a new upsampling material.

Member Summary

Public Members
public set

inputBuffer: Texture

The input buffer.

public get

The blur radius.

public set
public set

supportBuffer: Texture

A support buffer.

Method Summary

Public Methods
public

setSize(width: Number, height: Number)

Sets the size of this object.

Public Constructors

public constructor() source

Constructs a new upsampling material.

Public Members

public set inputBuffer: Texture source

The input buffer.

public get radius: Number source

The blur radius.

public set radius source

public set supportBuffer: Texture source

A support buffer.

Public Methods

public setSize(width: Number, height: Number) source

Sets the size of this object.

Params:

NameTypeAttributeDescription
width Number

The width.

height Number

The height.