Replies: 1 comment
-
UPDATE: I managed to control lighting of terria viewer by in index.js. I know this is not a good way, though. setTimeout(()=>{
const viewer = terria.currentViewer;
const directionalLight = new Cesium.DirectionalLight({
direction: new Cesium.Cartesian3(0.6289450511350295, -0.563156644510077, -0.5359876084359657),
});
viewer.scene.light = directionalLight;
},3000);
render(terria, [], viewState); And I still don't know how to control clock. The viewer I got didn't have "clock" property. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm customizing terriajs and it's a lot of fun.
Now I'm trying to control light and time (something like this ) of terria viewer, so I have to get the cesium viewer instance first.
Is there a way to do that?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions