V!nc3r Posted May 30, 2016 Share Posted May 30, 2016 Hi all, Is there a way to set a lightmap on a mesh rather than its materials ? I always use this workflow on others 3d engine, and i think it's more efficient ; but after some searches i don't find a procedure to do this on BJS. Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 31, 2016 Share Posted May 31, 2016 Hello you can set your lightmap to material.lightmapTexture or material.emissiveTexture depending on what your lightmap contains. Then just set material.disableLightning = true to disable dynamic lightning Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted May 31, 2016 Author Share Posted May 31, 2016 Yes, but i try to assign same material to some meshes, which each have one different lightmap. If i assign a lightmap using material.lightmapTexture, all meshes are going to use this one lightmap isn't it ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 31, 2016 Share Posted May 31, 2016 correct.. So either use UVs to select a part of your lightmap (like in espilit demo for instance) or use several materials Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 31, 2016 Share Posted May 31, 2016 i recommend to Use standardMaterial for this but any way if you have special situation you can make your want with shaderBuilder GameMonetize 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.