Hello, everybody!
I have a lot of models on Cesium,But their shades don’t look the same.
They look dark from certain angles:
I tried using DirectionalLight to solve this problem,
viewer.scene.light = new DirectionalLight({
direction : viewer.scene.camera.directionWC,
intensity: 1.0,
});
viewer.scene.preRender.addEventListener(function () {
(viewer.scene.light as DirectionalLight).direction = Cartesian3.clone(
viewer.scene.camera.directionWC,
(viewer.scene.light as DirectionalLight).direction
);
});
That still doesn’t solve the problem,So, I was wondering if there was a way to make my model always bright.
Unfortunately, DUE to confidentiality, I can’t provide sandcastle.
Thank you very much!