Skip to content

Commit 2641915

Browse files
committed
Use RedFormat by default
Addresses pmndrs#701
1 parent 4086e5b commit 2641915

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/textures/NoiseTexture.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ export class NoiseTexture extends DataTexture {
6767
/**
6868
* Constructs a new noise texture.
6969
*
70-
* The texture format can be either `LuminanceFormat` or `RGBAFormat`. Additionally, the formats `RedFormat` and
71-
* `RGFormat` can be used in a WebGL 2 context.
70+
* Supported formats are `RGBAFormat`, `RedFormat` and `RGFormat`.
7271
*
7372
* @param {Number} width - The width.
7473
* @param {Number} height - The height.
75-
* @param {Number} [format=LuminanceFormat] - The texture format.
74+
* @param {Number} [format=RedFormat] - The texture format.
7675
* @param {Number} [type=UnsignedByteType] - The texture type.
7776
*/
7877

79-
constructor(width, height, format = LuminanceFormat, type = UnsignedByteType) {
78+
constructor(width, height, format = RedFormat, type = UnsignedByteType) {
8079

8180
super(getNoise(width * height, format, type), width, height, format, type);
8281
this.needsUpdate = true;

0 commit comments

Comments
 (0)