@galacean/engine 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/browser.js +11 -2
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -19908,7 +19908,10 @@
|
|
|
19908
19908
|
lightManager._updateShaderData(this.shaderData);
|
|
19909
19909
|
var sunLightIndex = lightManager._getSunLightIndex();
|
|
19910
19910
|
if (sunLightIndex !== -1) {
|
|
19911
|
-
|
|
19911
|
+
var sunlight = lightManager._directLights.get(sunLightIndex);
|
|
19912
|
+
shaderData.setColor(Scene._sunlightColorProperty, sunlight.color);
|
|
19913
|
+
shaderData.setVector3(Scene._sunlightDirectionProperty, sunlight.direction);
|
|
19914
|
+
this._sunLight = sunlight;
|
|
19912
19915
|
}
|
|
19913
19916
|
if (this.castShadows && this._sunLight && this._sunLight.shadowType !== exports.ShadowType.None) {
|
|
19914
19917
|
shaderData.enableMacro("SHADOW_TYPE", this._sunLight.shadowType.toString());
|
|
@@ -20100,6 +20103,12 @@
|
|
|
20100
20103
|
(function() {
|
|
20101
20104
|
Scene._fogParamsProperty = Shader.getPropertyByName("oasis_FogParams");
|
|
20102
20105
|
})();
|
|
20106
|
+
(function() {
|
|
20107
|
+
Scene._sunlightColorProperty = Shader.getPropertyByName("galacean_SunlightColor");
|
|
20108
|
+
})();
|
|
20109
|
+
(function() {
|
|
20110
|
+
Scene._sunlightDirectionProperty = Shader.getPropertyByName("galacean_SunlightDirection");
|
|
20111
|
+
})();
|
|
20103
20112
|
/**
|
|
20104
20113
|
* Scene manager.
|
|
20105
20114
|
*/ var SceneManager = /*#__PURE__*/ function() {
|
|
@@ -36092,7 +36101,7 @@
|
|
|
36092
36101
|
], OasisMaterialsRemap);
|
|
36093
36102
|
|
|
36094
36103
|
//@ts-ignore
|
|
36095
|
-
var version = "0.0.0-experimental-0.9-plus.
|
|
36104
|
+
var version = "0.0.0-experimental-0.9-plus.1";
|
|
36096
36105
|
console.log("Galacean engine version: " + version);
|
|
36097
36106
|
for(var key in CoreObjects){
|
|
36098
36107
|
Loader.registerClass(key, CoreObjects[key]);
|