Token Elevation Shadows
Token Elevation Shadows is a lightweight, system-agnostic module that automatically generates 2.5D drop shadows for tokens based on their elevation. There is an optional game setting to only apply elevation shadows if the token has a specific status/active effect, e.g. fly applied.
It has the ability to strip away the baked-in drop shadows often found on standard token art. This makes sure the token has a clean, consistent silhouette whether it is walking on the ground or flying above it, without requiring manual image editing.
It is computationally too difficult to cast real shadows from lights, so the module maintains the same shadows for tokens whether they are indoors or out. Instead, it applies a "dampener" to the effect when the token is indoors so the shadow is reduced.
Please install the correct version of the module:
- v1.x is compatible with v13 of FoundryVTT.
- v2.x is compatible with v14 of FoundryVTT.
Solar Configuration
The module uses a trigonometric Altitude and Azimuth model to determine the length and direction of shadows. You can configure the global sun position in the module settings.
Simulating Time of Day
- Azimuth (Direction): Represents the compass angle of the sun. Set to
90for sunrise (East),180for midday (South), and270for sunset (West). Shadows are always cast away from the sun. - Altitude (Height): Represents how high the sun is above the horizon, from
1to89. Lower numbers simulate early morning or late evening, creating long, dramatic shadows. Higher numbers simulate midday, tightening the shadows closely beneath the tokens.
Simulating Geographical Location
You can adjust the midday Altitude to reflect where your adventure takes place on the globe:
- Equatorial Campaigns: The midday sun is directly overhead. Set your midday Altitude to
85-89for tight, intense shadows. - High Latitude Campaigns: The sun never rises particularly high, even at noon. Limit your maximum midday Altitude to
40-50to maintain longer shadows throughout the entire day cycle.
Time Integration
Token Elevation Shadows features automation to synchronise your shadows with the in-game clock. When enabled, the sun will automatically sweep from East to West, stretching and shrinking shadows based on the time of day, and fading them out completely at night.
Go to the module settings and change Time Integration to Core World Time. This natively supports standard Foundry time progression, as well as popular modules that manipulate the core clock, including:
- SmallTime
- Simple Calendar Reborn
(Note: For the automated day/night cycle to calculate correctly, ensure you have set a midday Altitude in your Solar Configuration settings).
Design Philosophy: The Height Illusion
Token Elevation Shadows is designed to create an illusion of height without disrupting the strict 2D + elevation mechanical rules of Foundry VTT. To achieve this, the module deliberately separates the token's visual artwork from its logical footprint.
When a token takes flight, you will notice the following intentional design choices:
- Tactical Clarity: UI elements such as health bars, nameplates, status effect icons, and targeting reticles remain on the ground. This provides a "tactical anchor," making sure players and GMs always know exactly which grid square a flying creature occupies for calculating ranges and placing area-of-effect templates.
- Map Interaction: The token's clickable hitbox stays on the ground. This prevents floating artwork from accidentally obstructing your ability to select other tokens standing behind the flying creature.
- Vision & Lighting: Light sources and vision cones continue to emit from the token's true elevation on the map. This guarantees that Line of Sight calculations remain mathematically accurate and fully compatible with wall and vision modules.
- Ecosystem Compatibility: Because the module exclusively elevates the token's artwork (the PIXI mesh), ground-based spell effects, auras, and most Sequencer animations attached to the token's bounding box will remain on the floor where they were cast.