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

NoiseTexture

Extends:

three~DataTexture → NoiseTexture

A simple noise texture.

Constructor Summary

Public Constructor
public

constructor(width: Number, height: Number, format: Number, type: Number)

Constructs a new noise texture.

Public Constructors

public constructor(width: Number, height: Number, format: Number, type: Number) source

Constructs a new noise texture.

The texture format can be either LuminanceFormat, RGBFormat or RGBAFormat. Additionally, the formats RedFormat and RGFormat can be used in a WebGL 2 context.

Params:

NameTypeAttributeDescription
width Number

The width.

height Number

The height.

format Number
  • optional
  • default: LuminanceFormat

The texture format.

type Number
  • optional
  • default: UnsignedByteType

The texture type.