I want a shadow effect , need't Ground, what can I do?

1 Like

I don’t know When I don’t set ground , shadow how to set ?

If I set ground , I can get shadow,

    private createGround():void{
        var ground = Mesh.CreateGround("ground", 35, 35, 10, this.scene);
        ground.position = new Vector3(0, -2, 0),
        ground.checkCollisions = true;
        ground.receiveShadows = true;
    }

when I don’t set ground ,what cant I do?

If i want a shadow, “Ground” it is necessary to receive shadow?

Maybe you want this:

But you will still need an object on which the shadow is projected, there’s no way around that.

2 Likes

Yes, this is I want ,thanks!!