0 votes

LightOccluder2d resized in the TileMap-Scene seem to be always full sized, when tile ist used in another scene.
Here my TileMap Settings:
Scaling off:
The LightOccluder2D is scaled 1,1 the OccluderPolygon ist custom made just for that one Tile.
Scaling off
Scaling on:
The LightOccluder2D object is scaled down to fit the part of the Tile that i want to occlude light. The OccluderPolygon is reused many times.
Scaling on
And here the visible effects:
Scaling off:
The shadow is cast as expected. Only the part of the Tile cast the shadow.
Scaling off
Scaling on:
The shadow ist cast by the full tile, event though i resized the LightOccluder2D so it does not block the whole tile.
Scaling on

Hence my question: Is this a bug? Or am I doing something wrong? If so how to fix it?

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.