@galacean/engine-rhi-webgl 2.0.0-alpha.25 → 2.0.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +6 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -6
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -1053,7 +1053,7 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1053
1053
|
};
|
|
1054
1054
|
case engineCore.TextureFormat.ETC2_RGBA5:
|
|
1055
1055
|
return {
|
|
1056
|
-
internalFormat: GLCompressedTextureInternalFormat.RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
|
|
1056
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 : GLCompressedTextureInternalFormat.RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
|
|
1057
1057
|
isCompressed: true
|
|
1058
1058
|
};
|
|
1059
1059
|
case engineCore.TextureFormat.ETC2_RGBA8:
|
|
@@ -1088,27 +1088,27 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
case engineCore.TextureFormat.ASTC_5x5:
|
|
1090
1090
|
return {
|
|
1091
|
-
internalFormat: GLCompressedTextureInternalFormat.RGBA_ASTC_5X5_KHR,
|
|
1091
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_ALPHA8_ASTC_5X5_KHR : GLCompressedTextureInternalFormat.RGBA_ASTC_5X5_KHR,
|
|
1092
1092
|
isCompressed: true
|
|
1093
1093
|
};
|
|
1094
1094
|
case engineCore.TextureFormat.ASTC_6x6:
|
|
1095
1095
|
return {
|
|
1096
|
-
internalFormat: GLCompressedTextureInternalFormat.RGBA_ASTC_6X6_KHR,
|
|
1096
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_ALPHA8_ASTC_6X6_KHR : GLCompressedTextureInternalFormat.RGBA_ASTC_6X6_KHR,
|
|
1097
1097
|
isCompressed: true
|
|
1098
1098
|
};
|
|
1099
1099
|
case engineCore.TextureFormat.ASTC_8x8:
|
|
1100
1100
|
return {
|
|
1101
|
-
internalFormat: GLCompressedTextureInternalFormat.RGBA_ASTC_8X8_KHR,
|
|
1101
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_ALPHA8_ASTC_8X8_KHR : GLCompressedTextureInternalFormat.RGBA_ASTC_8X8_KHR,
|
|
1102
1102
|
isCompressed: true
|
|
1103
1103
|
};
|
|
1104
1104
|
case engineCore.TextureFormat.ASTC_10x10:
|
|
1105
1105
|
return {
|
|
1106
|
-
internalFormat: GLCompressedTextureInternalFormat.RGBA_ASTC_10X10_KHR,
|
|
1106
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_ALPHA8_ASTC_10X10_KHR : GLCompressedTextureInternalFormat.RGBA_ASTC_10X10_KHR,
|
|
1107
1107
|
isCompressed: true
|
|
1108
1108
|
};
|
|
1109
1109
|
case engineCore.TextureFormat.ASTC_12x12:
|
|
1110
1110
|
return {
|
|
1111
|
-
internalFormat: GLCompressedTextureInternalFormat.RGBA_ASTC_12X12_KHR,
|
|
1111
|
+
internalFormat: isSRGBColorSpace ? GLCompressedTextureInternalFormat.SRGB8_ALPHA8_ASTC_12X12_KHR : GLCompressedTextureInternalFormat.RGBA_ASTC_12X12_KHR,
|
|
1112
1112
|
isCompressed: true
|
|
1113
1113
|
};
|
|
1114
1114
|
case engineCore.TextureFormat.Depth:
|