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

DownsamplingMaterial

Extends:

three~ShaderMaterial → DownsamplingMaterial

Implements:

A downsampling 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 downsampling material.

Member Summary

Public Members
public set

inputBuffer: Texture

The input 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 downsampling material.

Public Members

public set inputBuffer: Texture source

The input 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.