Sign in to follow this  
DylanD

Pseudo Shadows

Recommended Posts

Hello everyone, hope you day is going well.

 

I was wondering if there was a way I could set up a light that had a black colour in an already lit scene, to make pseudo shadows like this:

So heres a playground of an object bobbing in an out of the light, but I'm hoping to make it not white like but like a black light, or pseudo shadow.  Notice how the point light does nothing when I make its colour black...

Any Ideas how I could do this?

I would rather not use a shadow generator... but if forced I will :( 

Share this post


Link to post
Share on other sites
9 minutes ago, Deltakosh said:

You have multiple options:

- Use the shadowOnlyMaterial that you can apply on top of the mesh: http://doc.babylonjs.com/extensions/shadowonly

- Simulate the shadow with a texture that you set in the ambientTexture channel

Oh I completely forgot about ambient stuff! that should work I will try it out and get back to you! Thanks!

Share this post


Link to post
Share on other sites

hmm in not using a texture but I guess I could just make the material a texture or something, I mean its just a solid colour it must be ezpz.  

 

I will look more into using ambient texture.  Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.