fix: babylonjs加载material的引入包错误

This commit is contained in:
caoqianming 2024-04-17 14:37:53 +08:00
parent aa2a4c136c
commit d2b82c290a
4 changed files with 5881 additions and 17 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -153,11 +153,11 @@ export default {
initialBeta: Math.PI / 3.3, initialBeta: Math.PI / 3.3,
initialRadius: 18, initialRadius: 18,
initialTarget: null, initialTarget: null,
scene: null, // scene: null,
myui: null, // myui: null,
is_mainviewpoint: false, is_mainviewpoint: false,
resizeTimeout: null, resizeTimeout: null,
engine: null, // engine: null,
loadedPercent: 0, loadedPercent: 0,
sectionNames: { sectionNames: {
"干渣库_primitive0": "电石渣", "干渣库_primitive0": "电石渣",
@ -796,16 +796,16 @@ export default {
skyboxMaterial.backFaceCulling = false; skyboxMaterial.backFaceCulling = false;
skybox.material = skyboxMaterial; skybox.material = skyboxMaterial;
/* /*
* Keys: * Keys:
* - 1: Day * - 1: Day
* - 2: Evening * - 2: Evening
* - 3: Increase Luminance * - 3: Increase Luminance
* - 4: Decrease Luminance * - 4: Decrease Luminance
* - 5: Increase Turbidity * - 5: Increase Turbidity
* - 6: Decrease Turbidity * - 6: Decrease Turbidity
* - 7: Move horizon to -50 * - 7: Move horizon to -50
* - 8: Restore horizon to 0 * - 8: Restore horizon to 0
*/ */
var setSkyConfig = function (property, from, to) { var setSkyConfig = function (property, from, to) {
var keys = [ var keys = [
{ frame: 0, value: from }, { frame: 0, value: from },
@ -1145,9 +1145,9 @@ export default {
}; };
const scene = createScene(); //Call the createScene function const scene = createScene(); //Call the createScene function
// scene.debugLayer.show() // // scene.debugLayer.show()
// Register a render loop to repeatedly render the scene // // Register a render loop to repeatedly render the scene
engine.runRenderLoop(function () { engine.runRenderLoop(function () {
scene.render(); scene.render();
}); });