@galacean/engine-core 1.5.6 → 1.5.8

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