{"action":"created","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3856","repository_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3856/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3856/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3856/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/3856","id":148738323,"number":3856,"title":"Shadows","user":{"login":"lilleyse","id":915398,"avatar_url":"https://avatars.githubusercontent.com/u/915398?v=3","gravatar_id":"","url":"https://api.github.com/users/lilleyse","html_url":"https://github.com/lilleyse","followers_url":"https://api.github.com/users/lilleyse/followers","following_url":"https://api.github.com/users/lilleyse/following{/other_user}","gists_url":"https://api.github.com/users/lilleyse/gists{/gist_id}","starred_url":"https://api.github.com/users/lilleyse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilleyse/subscriptions","organizations_url":"https://api.github.com/users/lilleyse/orgs","repos_url":"https://api.github.com/users/lilleyse/repos","events_url":"https://api.github.com/users/lilleyse/events{/privacy}","received_events_url":"https://api.github.com/users/lilleyse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-15T18:45:42Z","updated_at":"2016-04-15T19:40:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/3856","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/3856","diff_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/3856.diff","patch_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/3856.patch"},"body":"For #2594 \r\n\r\nThis PR adds support for different types of shadows including cascaded directional shadows, spot light shadows, and point light shadows. It also adds the concept of derived commands which are used for OIT, shadows, and later 3D Tiles.\r\n\r\nBy default the scene contains a shadow map whose light source is the sun. It is disabled by default, but can be enabled with `scene.shadowMap.enabled = true`. The globe receives shadows by default but does not cast shadows. To enable casting just call `scene.globe.castShadows = true`. Models always cast/receive shadows by default. Primitives do neither by default, but they can be enabled.\r\n\r\nTo-do:\r\n* [ ] Unit tests\r\n* [ ] Fix `Globe.update` which causes flickery terrain tiles currently\r\n* [ ] Figure out the best approach approach for shadows when the light source is below the horizon. Currently if the globe casts shadows, the surface will be completely shadowed and dark. Maybe day-night shading should be on if shadows are on.\r\n* [ ] Possible support for `GroundPrimitive` if needed.\r\n* [ ] Integration with higher level constructs like `Viewer`."},"comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/comments/210611619","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/3856#issuecomment-210611619","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3856","id":210611619,"user":{"login":"pjcozzi","id":782098,"avatar_url":"https://avatars.githubusercontent.com/u/782098?v=3","gravatar_id":"","url":"https://api.github.com/users/pjcozzi","html_url":"https://github.com/pjcozzi","followers_url":"https://api.github.com/users/pjcozzi/followers","following_url":"https://api.github.com/users/pjcozzi/following{/other_user}","gists_url":"https://api.github.com/users/pjcozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/pjcozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjcozzi/subscriptions","organizations_url":"https://api.github.com/users/pjcozzi/orgs","repos_url":"https://api.github.com/users/pjcozzi/repos","events_url":"https://api.github.com/users/pjcozzi/events{/privacy}","received_events_url":"https://api.github.com/users/pjcozzi/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T19:40:32Z","updated_at":"2016-04-15T19:40:32Z","body":">  Possible support for GroundPrimitive if needed.\r\n\r\nProbably not needed since they are modulated with the terrain, which will already be shadowified."}}