jamessimo Posted November 11, 2015 Share Posted November 11, 2015 Hey guys, I have made a basic scene in blender with some lights and textures. I have set the shading to FLAT in blender however the scene in babylonjs is smooth, I know for individual meshes I can use the convertToFlatShadedMesh() function but that doesn't seem to work on a scene object. My question is, is there a way to make the whole scene use flat shading? I don't want the scene to be smooth shaded and I cant find a way to set this in the scene api. Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 11, 2015 Share Posted November 11, 2015 Try this: scene.meshes.forEach(function(mesh) { mesh.convertToFlatShadedMesh();}); Quote Link to comment Share on other sites More sharing options...
jamessimo Posted November 11, 2015 Author Share Posted November 11, 2015 Cheers, I thought of doing this but wanted to check to make sure that there wasn't an automated system to do it, am I correct in saying that setting the blender shading mode doesn't translate into your exported .babylon file? Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 11, 2015 Share Posted November 11, 2015 I don't know much about Blender, sorry Maybe someone else can help you about that. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 11, 2015 Share Posted November 11, 2015 Actually there is an option for that: jamessimo 1 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.