@galacean/engine-rhi-webgl 2.0.0-alpha.13 → 2.0.0-alpha.14

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 CHANGED
@@ -906,7 +906,7 @@ var GLBuffer = /*#__PURE__*/ function() {
906
906
  return {
907
907
  internalFormat: isSRGBColorSpace ? gl.SRGB8 : isWebGL2 ? gl.RGB8 : gl.RGB,
908
908
  baseFormat: isSRGBColorSpace ? isWebGL2 ? gl.RGB : gl.SRGB8 : gl.RGB,
909
- readFormat: gl.RGB,
909
+ readFormat: isWebGL2 ? gl.RGBA : gl.RGB,
910
910
  dataType: gl.UNSIGNED_BYTE,
911
911
  isCompressed: false,
912
912
  alignment: 1
@@ -981,6 +981,7 @@ var GLBuffer = /*#__PURE__*/ function() {
981
981
  return {
982
982
  internalFormat: gl.R11F_G11F_B10F,
983
983
  baseFormat: gl.RGB,
984
+ readFormat: gl.RGBA,
984
985
  dataType: gl.FLOAT,
985
986
  isCompressed: false,
986
987
  alignment: 4