Skip to content

Commit

Permalink
allow for meshData-less entity when precompiling shaders.
Browse files Browse the repository at this point in the history
  • Loading branch information
schteppe committed May 18, 2016
1 parent d57bdf4 commit 4a6d301
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/goo/renderer/shaders/ShaderBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ ShaderBuilder.uber = {
},

processor: function (shader, shaderInfo) {
if (!shaderInfo.meshData) {
return;
}
var attributeMap = shaderInfo.meshData.attributeMap;
var material = shaderInfo.material;
var textureMaps = material._textureMaps;
Expand Down

0 comments on commit 4a6d301

Please sign in to comment.