2

I don't want shadows to be that long (sorry, can't post pictures yet). Is there any property for SKLightNode, like distance, to make shadows shorter? And if not, how do you usually implement dynamic shadows in SpriteKit?

4

1 回答 1

2

The SKLightNode class is unfortunately somewhat sparse in its present form. At present it's limited to which nodes can cast shadows, which nodes are covered from cast shadows and light sources.

There is no way to set a a node's shadow length.

于 2015-03-23T12:25:52.850 回答