首页 / 浏览问题 / 三维GIS / 问题详情
三维超图里面开启天空盒没有效果 不知道什么原因
38EXP 2021年11月10日

现在是也不报错,不知道问题在哪 

//初始化时把天空盒资源准备好
        function initialSkyBox(){
            if(scene.frameState.passes.render){
                sunSkyBox.update(scene.frameState,true);
                blueSkyBox.update(scene.frameState,true);
                scene.postRender.removeEventListener(initialSkyBox);
            }
        }
        scene.postRender.addEventListener(initialSkyBox);

示例这句代码是什么意思 没看懂

1个回答

您好,这几句代码的意思是: 实时渲染,每一帧刷新一下天空盒子.可以参考下api文档,搜索下scene的postRender接口和SkyBox接口。

文档地址: http://support.supermap.com.cn:8090/webgl/web/apis/3dwebgl.html

1,504EXP 2021年11月10日
你帮我远程一下吧 向日葵

576177907

b6Jqmy
...