{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7997","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7997/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7997/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7997/events","html_url":"https://github.com/mrdoob/three.js/issues/7997","id":127879006,"number":7997,"title":"Runtime Error in Example \"software_sandbox.html\"","user":{"login":"Mugen87","id":12612165,"avatar_url":"https://avatars.githubusercontent.com/u/12612165?v=3","gravatar_id":"","url":"https://api.github.com/users/Mugen87","html_url":"https://github.com/Mugen87","followers_url":"https://api.github.com/users/Mugen87/followers","following_url":"https://api.github.com/users/Mugen87/following{/other_user}","gists_url":"https://api.github.com/users/Mugen87/gists{/gist_id}","starred_url":"https://api.github.com/users/Mugen87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mugen87/subscriptions","organizations_url":"https://api.github.com/users/Mugen87/orgs","repos_url":"https://api.github.com/users/Mugen87/repos","events_url":"https://api.github.com/users/Mugen87/events{/privacy}","received_events_url":"https://api.github.com/users/Mugen87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T09:19:11Z","updated_at":"2016-01-21T09:19:11Z","closed_at":null,"body":"When i cleaned up some of the examples, i've noted a runtime error in \"software_sandbox.html\". The problem seemed to be caused in the render method of the `THREE.SoftwareRenderer`.\r\n\r\nMessage: \"Uncaught TypeError: Cannot read property 'r' of undefined\"\r\n\r\n```javascript\r\n(function(buffer, depthBuf, offset, depth, u, v, n, face, material\r\n/**/) {\r\nvar colorOffset = offset * 4;\r\nbuffer[ colorOffset ] = face.color.r * 255; // ERROR\r\nbuffer[ colorOffset + 1 ] = face.color.g * 255;\r\nbuffer[ colorOffset + 2 ] = face.color.b * 255;\r\nbuffer[ colorOffset + 3 ] = material.opacity * 255;\r\ndepthBuf[ offset ] = depth;\r\n})\r\n```\r\nTHREE 74(dev), Mac OSX 10.10.5, Chrome 48.0.2564.82 (64-bit)"}}