@galacean/engine-physics-lite 0.0.0-experimental-0.9-plus.1 → 0.0.0-experimental-0.9-plus.2
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.map +1 -1
- package/dist/miniprogram.js +6 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/miniprogram.js
CHANGED
|
@@ -15019,6 +15019,7 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
|
|
|
15019
15019
|
_this._fogEnd = 300;
|
|
15020
15020
|
_this._fogDensity = 0.01;
|
|
15021
15021
|
_this._fogParams = new miniprogram$7.Vector4();
|
|
15022
|
+
_this._sunlightVector3 = new miniprogram$7.Vector3();
|
|
15022
15023
|
_this.name = name || "";
|
|
15023
15024
|
var shaderData = _this.shaderData;
|
|
15024
15025
|
shaderData._addRefCount(1);
|
|
@@ -15175,7 +15176,10 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
|
|
|
15175
15176
|
var sunLightIndex = lightManager._getSunLightIndex();
|
|
15176
15177
|
if (sunLightIndex !== -1) {
|
|
15177
15178
|
var sunlight = lightManager._directLights.get(sunLightIndex);
|
|
15178
|
-
|
|
15179
|
+
var sunlightColor = sunlight.color;
|
|
15180
|
+
var sunlightIntensity = sunlight.intensity;
|
|
15181
|
+
this._sunlightVector3.set(sunlightColor.r * sunlightIntensity, sunlightColor.g * sunlightIntensity, sunlightColor.b * sunlightIntensity);
|
|
15182
|
+
shaderData.setVector3(Scene._sunlightColorProperty, this._sunlightVector3);
|
|
15179
15183
|
shaderData.setVector3(Scene._sunlightDirectionProperty, sunlight.direction);
|
|
15180
15184
|
this._sunLight = sunlight;
|
|
15181
15185
|
}
|
|
@@ -36128,7 +36132,7 @@ function _interopNamespace(e) {
|
|
|
36128
36132
|
}
|
|
36129
36133
|
var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
|
|
36130
36134
|
//@ts-ignore
|
|
36131
|
-
var version = "0.0.0-experimental-0.9-plus.
|
|
36135
|
+
var version = "0.0.0-experimental-0.9-plus.2";
|
|
36132
36136
|
console.log("Galacean engine version: " + version);
|
|
36133
36137
|
for(var key in CoreObjects__namespace){
|
|
36134
36138
|
CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);
|