How to solve ground shadows with no visible ground plane?

Hi! I’m currently working on a scene where I want the CubeMap/SkyBox environment to be completely white like a studio, and I want the models in the scene to have ambient shadows or cast shadows straight down on a ground plane.

What I’ve done now is set the CubeMap/SkyBox environment to be 6 completely white images and the ground is a plane with a completely white material/texture.
Is there a way to get rid of the plane but retain the cast shadows or ambient shadows? I was thinking of either making some sort of alpha texture for the plane to blend it into the background, or maybe see if there is some custom shader out there that gives me the result that I want.

Thanks,
John

Hi @john.andersson,

Good question, @mvaligursky do you think there is an easy way to do this?

I’d tempted to override some of the shadowing shader chunks and discard any non shadowed pixels, I hope there is an easier way.

the easiest would be to just hava a polygon to be a part of the model, with transparent texture that contains the shadow …so you’d build that in Blender or Maya and just use it as a transparent texture. Would that work? Or do you need it dynamically rendered.

1 Like

for realtime you could perhaps

1 Like

There’s a shader from Will that has done for AR toolkit that I think does this https://playcanvas.com/editor/project/481413

https://playcanvas.com/editor/code/481413?tabs=8792451&line=767

3 Likes

well, if you just make a clear cubemap, it shouldn’t have a shadow, then let the game engine render shadows for you

Thanks! I will give this a try and see if it works for me!

1 Like