KevinBLT Posted February 15, 2016 Share Posted February 15, 2016 Hello, I encountered an error in "RenderingGroup.prototype.dispatch = function (subMesh)". This occured when I tried to activate shadows on a mesh. "material" is undefined in this case and produces an "needAlphaBlending of undefined" error. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 16, 2016 Share Posted February 16, 2016 Hello can you reproduce in the playground? Quote Link to comment Share on other sites More sharing options...
KevinBLT Posted February 18, 2016 Author Share Posted February 18, 2016 Hello, sorry, it was an error in the file loader we have created for our old file format. Nevertheless, wouldn't it be better like this: if (material && material.needAlphaBlending() || ... ? Thanks and a nice day! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 18, 2016 Share Posted February 18, 2016 submesh.getmaterial() is not supposed to return undefined as the default material is used if no material is associated with a mesh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.