{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a00211a1e1aa4fe920302e7b76da0d91?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a00211a1e1aa4fe920302e7b76da0d91","url":"https://api.github.com/users/mrdoob","login":"mrdoob","id":97088},"labels":[{"name":"Bug","color":"ffcfcf","url":"https://api.github.com/repos/mrdoob/three.js/labels/Bug"}],"assignee":null,"updated_at":"2011-11-15T18:15:51Z","comments":3,"closed_at":null,"url":"https://api.github.com/repos/mrdoob/three.js/issues/760","body":"When dragging the cubes in [this example](http://mrdoob.github.com/three.js/examples/webgl_interactive_draggablecubes.html) the shadow seem to be one frame behind. I think this didn't happen in r45?","html_url":"https://github.com/mrdoob/three.js/issues/760","number":760,"title":"ShadowMaps are one frame behind?","id":2243112,"created_at":"2011-11-15T13:14:08Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/05a9ea8209c0f0d038d94865d380b210?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"05a9ea8209c0f0d038d94865d380b210","url":"https://api.github.com/users/alteredq","login":"alteredq","id":438022},"updated_at":"2011-11-15T18:15:51Z","url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/2748652","body":"> By moving a cube in the example, you'll see that some kind of shadow of the cube appears.\r\n\r\nI think I have seen what you mean - when you move a cube, this buggy self-shadow on the cube is different than when you stop moving the cube, it looks like there is a lag.\r\n\r\n> Yep, that's right. Are you updating it before the shadow render pass?\r\n\r\nYes, both before rendering shadow and then before rendering the scene.\r\n\r\nI tried now to change the order of updates and this seems to have got rid of the lag. Also we saved one scene graph update per frame.\r\n\r\nhttps://github.com/alteredq/three.js/commit/f61edd14c2f354319b566c91b6b13840dd9d4edc","id":2748652,"created_at":"2011-11-15T18:15:51Z"}}