Add lights to maps #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a system for placing lights onto the maps. Make that that walls block the light. Make also that the lights sync with foundry
I'll start by exploring the repository structure to understand how maps, tokens, and Foundry sync currently work.
Now let me implement. Starting with the backend model:
Now the frontend lighting service (pure geometry, matching
MapTokens.js/MapPins.jsstyle):Now the viewer. First the imports and pointer handling:
Continuing with the viewer template — the toolbar buttons, the lighting canvas, and the light markers:
Now the backend Foundry sync routes:
Now the Foundry module. First the state and settings wiring:
Now the module's scene lighting section:
Found a real bug: naming the model
Mapshadows the built-inMapused by the folder sync. Let me fix that:Implementation is ready for review: #106
The automated implementation stopped because of an internal error. Please check the worker logs for details.