CanvasMap
Getting Started Tutorials 3D Reference

Shadows

Shadows are relatively complicated as for them to work, all of the following must be completed.

Set the view's ShadowMapType (this sets the THREE.js render's ShadowMapType):

 TheView.SetSetting("CM3View","ShadowMapType","Basic");

Set at least one light to cast shadows. Note that spot light work well for this. Directional lights also work but the THREE.js documentation indicates that they only work for orthagonal views.

 TheSpotLight.SetSetting("SpotLight","castShadow",true);

Set the items that geneate shadows "Shadows", "cast" setting to true:

 TheCitiesLayer.SetSetting("Shadows","cast",true);

Set the items that recieve shadows "Shadows", "recieve" setting to true:

 TheFloor.SetSetting("Shadows","receive",true);