diff --git a/src/render/buffer/memo.js b/src/render/buffer/memo.js index 63533f9..238e7a2 100644 --- a/src/render/buffer/memo.js +++ b/src/render/buffer/memo.js @@ -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; diff --git a/src/render/buffer/texture/datatexture.js b/src/render/buffer/texture/datatexture.js index 52c61e9..acdce71 100644 --- a/src/render/buffer/texture/datatexture.js +++ b/src/render/buffer/texture/datatexture.js @@ -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];