Jump to content

Not lighting light (?)


prvi_treti
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...