@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 +2 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -1
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/module.js
CHANGED
|
@@ -902,7 +902,7 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
902
902
|
return {
|
|
903
903
|
internalFormat: isSRGBColorSpace ? gl.SRGB8 : isWebGL2 ? gl.RGB8 : gl.RGB,
|
|
904
904
|
baseFormat: isSRGBColorSpace ? isWebGL2 ? gl.RGB : gl.SRGB8 : gl.RGB,
|
|
905
|
-
readFormat: gl.RGB,
|
|
905
|
+
readFormat: isWebGL2 ? gl.RGBA : gl.RGB,
|
|
906
906
|
dataType: gl.UNSIGNED_BYTE,
|
|
907
907
|
isCompressed: false,
|
|
908
908
|
alignment: 1
|
|
@@ -977,6 +977,7 @@ var GLBuffer = /*#__PURE__*/ function() {
|
|
|
977
977
|
return {
|
|
978
978
|
internalFormat: gl.R11F_G11F_B10F,
|
|
979
979
|
baseFormat: gl.RGB,
|
|
980
|
+
readFormat: gl.RGBA,
|
|
980
981
|
dataType: gl.FLOAT,
|
|
981
982
|
isCompressed: false,
|
|
982
983
|
alignment: 4
|