@galacean/engine-core 0.0.0-experimental-0.9-plus.0 → 0.0.0-experimental-0.9-plus.1

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
@@ -15323,7 +15323,10 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
15323
15323
  lightManager._updateShaderData(this.shaderData);
15324
15324
  var sunLightIndex = lightManager._getSunLightIndex();
15325
15325
  if (sunLightIndex !== -1) {
15326
- this._sunLight = lightManager._directLights.get(sunLightIndex);
15326
+ var sunlight = lightManager._directLights.get(sunLightIndex);
15327
+ shaderData.setColor(Scene._sunlightColorProperty, sunlight.color);
15328
+ shaderData.setVector3(Scene._sunlightDirectionProperty, sunlight.direction);
15329
+ this._sunLight = sunlight;
15327
15330
  }
15328
15331
  if (this.castShadows && this._sunLight && this._sunLight.shadowType !== exports.ShadowType.None) {
15329
15332
  shaderData.enableMacro("SHADOW_TYPE", this._sunLight.shadowType.toString());
@@ -15515,6 +15518,12 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
15515
15518
  (function() {
15516
15519
  Scene._fogParamsProperty = Shader.getPropertyByName("oasis_FogParams");
15517
15520
  })();
15521
+ (function() {
15522
+ Scene._sunlightColorProperty = Shader.getPropertyByName("galacean_SunlightColor");
15523
+ })();
15524
+ (function() {
15525
+ Scene._sunlightDirectionProperty = Shader.getPropertyByName("galacean_SunlightDirection");
15526
+ })();
15518
15527
 
15519
15528
  /**
15520
15529
  * Scene manager.