From 37114517f079e907dacc933e4aa45b5c0a793775 Mon Sep 17 00:00:00 2001 From: linbingquan <695601626@qq.com> Date: Fri, 3 May 2024 20:38:25 +0800 Subject: [PATCH 1/2] Texture: Add Texture.DEFAULT_COLORSPACE --- src/textures/Texture.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/textures/Texture.js b/src/textures/Texture.js index 720ee91cf0f7a..3179a7eda7ff0 100644 --- a/src/textures/Texture.js +++ b/src/textures/Texture.js @@ -19,7 +19,7 @@ let _textureId = 0; class Texture extends EventDispatcher { - constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = Texture.DEFAULT_ANISOTROPY, colorSpace = NoColorSpace ) { + constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = Texture.DEFAULT_ANISOTROPY, colorSpace = Texture.DEFAULT_COLORSPACE ) { super(); @@ -316,5 +316,6 @@ class Texture extends EventDispatcher { Texture.DEFAULT_IMAGE = null; Texture.DEFAULT_MAPPING = UVMapping; Texture.DEFAULT_ANISOTROPY = 1; +Texture.DEFAULT_COLORSPACE = NoColorSpace; export { Texture }; From 31a4379cf66ca383442679037d695071dc3a4c11 Mon Sep 17 00:00:00 2001 From: linbingquan <695601626@qq.com> Date: Sat, 4 May 2024 00:15:05 +0800 Subject: [PATCH 2/2] rename: DEFAULT_COLORSPACE -> DEFAULT_COLOR_SPACE --- src/textures/Texture.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textures/Texture.js b/src/textures/Texture.js index 3179a7eda7ff0..31ea2a15ba8b8 100644 --- a/src/textures/Texture.js +++ b/src/textures/Texture.js @@ -19,7 +19,7 @@ let _textureId = 0; class Texture extends EventDispatcher { - constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = Texture.DEFAULT_ANISOTROPY, colorSpace = Texture.DEFAULT_COLORSPACE ) { + constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = Texture.DEFAULT_ANISOTROPY, colorSpace = Texture.DEFAULT_COLOR_SPACE ) { super(); @@ -316,6 +316,6 @@ class Texture extends EventDispatcher { Texture.DEFAULT_IMAGE = null; Texture.DEFAULT_MAPPING = UVMapping; Texture.DEFAULT_ANISOTROPY = 1; -Texture.DEFAULT_COLORSPACE = NoColorSpace; +Texture.DEFAULT_COLOR_SPACE = NoColorSpace; export { Texture };