Shadows are cut-outs

Hey all. I’m trying to figure out what’s going on with my shadowPass.

It took me forever to figure out how to even get the shadows to appear, so it’s better than nothing, but it’s looking like this. I don’t understand why.

Here is my code…

shadowPass = new ShadowedRenderPass();

Also, calling


makes no shadow appear at all.

It has to do with your lighting. I can't remember exactly which value to play with, but try the global ambient in the lightstate.

I think Scene Monitor would help you with this. 

I changed the global ambient to dark gray, but that didn't change anything.

Gotta be a bit more specific. I don't see a method regarding setting Alpha values at all in the LightState or DirectionalLight classes.

Oh. Duh. That's the A in RGBA.

If I change from ColorRGBA.white to new ColorRGBA(0,0,0,1) the entire world just turns dark. Any clues?

perhaps you are inside the shadowvolume?

renanse said:

perhaps you are inside the shadowvolume?

:? perhaps?

How do I find out  :|