重置场景的lightCamera,无论位置设为多少,投影都是这样,怎么解释

Cesium源码 · cesium_abc · 于 5年前 发布 · 8336 次阅读

重置场景的lightCamera,无论位置设为多少,投影都是这样,怎么解释

共收到 8 条回复
cesium_abc#15年前 0 个赞

默认好像是太阳的位置吧 还没顾上研究

cesium_abc#25年前 0 个赞

我改了

我重新定义一个相机替换掉,能发现投影不是太阳投影,但是无论什么位置都是这样的投影

admin#35年前 0 个赞

要改的是光源的位置 不是相机的位置吧

cesium_abc#45年前 0 个赞

相机就是光源

admin#55年前 0 个赞

相机是光源?那light是啥

cesium_abc#65年前 0 个赞

API里就没有light属性 我的理解就是,相机位置即光源位置,然后用相机的深度图做阴影效果

admin#75年前 0 个赞

但是相机不是光源

new Cesium.ShadowMap(options) Use Viewer#shadowMap to get the scene's shadow map originating from the sun. Do not construct this directly.

The normalOffset bias pushes the shadows forward slightly, and may be disabled for applications that require ultra precise shadows.

写得很清楚啊 from the sun

devhu#85年前 0 个赞

cascadesEnabled : false加上这个

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics