8Observer8 Posted December 31, 2016 Share Posted December 31, 2016 I want to create a clone with flat shading. Can I? http://www.babylonjs-playground.com/#1WVZLV#4 Quote Link to comment Share on other sites More sharing options...
jerome Posted December 31, 2016 Share Posted December 31, 2016 here is the same scene with a point light located at the camera position : http://www.babylonjs-playground.com/#1WVZLV#5 It seems the second cylinder is really flat shaded... I don't get why the first is also flat shaded then ! 8Observer8 1 Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted December 31, 2016 Author Share Posted December 31, 2016 Thank you! My question is wrong. I mean can I set flat shading only for second by clone function? Quote Link to comment Share on other sites More sharing options...
adam Posted December 31, 2016 Share Posted December 31, 2016 Clones share geometry. Call makeGeometryUnique() on the cloned mesh before converting to flat shaded. http://www.babylonjs-playground.com/#1WVZLV#6 iiceman, jerome and 8Observer8 3 Quote Link to comment Share on other sites More sharing options...
jerome Posted January 1, 2017 Share Posted January 1, 2017 ooops, that's right, I just forgot this (and didn't read the code either, tssss) 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.