@galacean/engine-core 1.5.6 → 1.5.7

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/module.js CHANGED
@@ -25652,6 +25652,7 @@ var unlitVs = "#define GLSLIFY 1\n#include <common>\n#include <common_vert>\n#in
25652
25652
  var UIUtils = /*#__PURE__*/ function() {
25653
25653
  function UIUtils() {}
25654
25654
  UIUtils.renderOverlay = function renderOverlay(engine, scene, uiCanvases) {
25655
+ engine._macroCollection.enable(UIUtils._shouldSRGBCorrect);
25655
25656
  var canvas = engine.canvas; engine._hardwareRenderer; var renderContext = engine._renderContext, batcherManager = engine._batcherManager;
25656
25657
  var uiRenderQueue = this._renderQueue || (this._renderQueue = new RenderQueue(RenderQueueType.Transparent));
25657
25658
  var virtualCamera = this._virtualCamera || (this._virtualCamera = new VirtualCamera());
@@ -25683,9 +25684,11 @@ var UIUtils = /*#__PURE__*/ function() {
25683
25684
  }
25684
25685
  }
25685
25686
  renderContext.camera = null;
25687
+ engine._macroCollection.disable(UIUtils._shouldSRGBCorrect);
25686
25688
  };
25687
25689
  return UIUtils;
25688
25690
  }();
25691
+ UIUtils._shouldSRGBCorrect = ShaderMacro.getByName("ENGINE_SHOULD_SRGB_CORRECT");
25689
25692
  var OverlayCamera = function OverlayCamera() {
25690
25693
  // @ts-ignore
25691
25694
  this.instanceId = ++EngineObject._instanceIdCounter;