使用three.js如sketchfab.com或windows 3D Viewer为glTF 3D模型加载原始光照

问题描述

我在 3D 建模方面遇到了问题。

为每个 glTF 3D 模型选择和调整灯光。 最初,我的模型看起来很暗。但我不想为每个 3D 模型手动选择灯光设置。 我想知道有什么方法可以像 Sketchfab.com 或 windows 3D Viewer 那样自动应用灯光。在此类应用中打开 3D 模型时无需调整或选择灯光。

enter image description here

enter image description here

cy.get('[data-testId="<button ID>"]')
    .click();

cy.get('body h2')
   .should('not.exist') //Checks if the page starts reloading and the initial element has dissapeared.

cy.get('body h2')
   .should('contain','<some text>');

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)