Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/render/buffer/memo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class Memo extends RenderToTexture {
const height = options.height || 1;
const depth = options.depth || 1;

// RGBFormat was removed in r137 of ThreeJS
//options.format = [null, THREE.LuminanceFormat, THREE.LuminanceAlphaFormat, THREE.RGBFormat, THREE.RGBAFormat][@channels]
options.format = RGBAFormat;
options.width = _width = items * width;
Expand Down
2 changes: 1 addition & 1 deletion src/render/buffer/texture/datatexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class DataTexture {
null,
CONST.LuminanceFormat,
CONST.LuminanceAlphaFormat,
CONST.RGBFormat,
undefined, // CONST.RGBFormat was removed in r137 of ThreeJS
CONST.RGBAFormat,
][this.channels];

Expand Down