prvi_treti Posted April 9, 2015 Share Posted April 9, 2015 Hello there, Sorry if title and question sounds stupid but I checked four types of lights of Babylon.js but couldn't find what I need. Light I need will just illuminate the scene but there will be no shadows, reflections (just will show texture as is) etc.Is there such feature? Or can it be achieved by existing lights? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 9, 2015 Share Posted April 9, 2015 It can be achieved, just not with Lights, materials. Make the material self lighting, setting the emissiveColor / emissiveTexture. Seehttp://babylondoc.azurewebsites.net/page.php?p=22051 Quote Link to comment Share on other sites More sharing options...
prvi_treti Posted April 9, 2015 Author Share Posted April 9, 2015 It can be achieved, just not with Lights, materials. Make the material self lighting, setting the emissiveColor / emissiveTexture. Seehttp://babylondoc.azurewebsites.net/page.php?p=22051 EmissiveTexture is what I was looking for, thank you. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 9, 2015 Share Posted April 9, 2015 The hemispheric light can be a handy "general purpose" light, too. http://www.babylonjs-playground.com/#139LKD It's aimed straight-up in this demo... which causes the light to reflect back from the sky... and light 5 of 6 crate sides. The bottom of the crate is lit via line 8, and the light shining off-of the material... is eliminated in line 9. This is one of my favorite "working light" configs. Party on! Quote Link to comment Share on other sites More sharing options...
prvi_treti Posted April 9, 2015 Author Share Posted April 9, 2015 The hemispheric light can be a handy "general purpose" light, too. http://www.babylonjs-playground.com/#139LKD It's aimed straight-up in this demo... which causes the light to reflect back from the sky... and light 5 of 6 crate sides. The bottom of the crate is lit via line 8, and the light shining off-of the material... is eliminated in line 9. This is one of my favorite "working light" configs. Party on! One of the reasons I prefer a lightless solution is that I will use sprites for most cases and other is I tend to believe a lightless solution will have better performance (nothing to calculate after all). Hope I am right 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.