primesoftware Posted October 7, 2015 Share Posted October 7, 2015 How can I render a mesh without having lights affect it? Let's say I want it to display whatever color I set it, and don't want it brightened or such by a light. Essentially I am using a plane as a simple button and do not want lights to change its shading. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 7, 2015 Share Posted October 7, 2015 Hi prime... and welcome. http://doc.babylonjs.com/classes/2.2/Light Check out .excludedMeshes Party on! Quote Link to comment Share on other sites More sharing options...
primesoftware Posted October 7, 2015 Author Share Posted October 7, 2015 Hi prime... and welcome. http://doc.babylonjs.com/classes/2.2/Light Check out .excludedMeshes Party on! Hi Wingnut! Thanks! I've added my mesh to the excluded meshes array although now the mesh is dark. I would still like my mesh to show up the color I assigned it in the material. This is progress though!! Edit: I set the emissiveColor in the material if anyone else is wondering how to do this. 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.