Move the sun. See where the light lands. Save the result.
A small, offline plugin for exploring sun direction and direct shadows in Pascal. Use a visual compass and sliders, or calculate the sun position from a date and location. Keep useful settings as portable presets.
Watch the intro · Download version 0.1.0 · Host integration · Report an issue
Daylight-Launch.mp4
Actual controls and lighting in a local Pascal host. Play directly here on GitHub. Recording notes and music credit.
Independent Apache-2.0 project by BlackforestDude. Version 0.1.0 is released. Host integration is required. Pascal must bundle the plugin before it appears in that host's plugin list. This repository does not install it into Pascal's official cloud editor, and no official endorsement or catalog acceptance is claimed.
- Drag or tap a sun compass, with keyboard support and live sliders for height and light balance.
- Native date/time picking in the device time zone; offline solar calculations using SunCalc 2.0.2.
- Exact numeric values in Advanced, with preset file download/upload and optional JSON tools.
- Direct sunlight, exposure, and separately labelled unoccluded presentation fill.
- Strict version-1 JSON preset validation, export and import.
- Per-viewer atmosphere ownership, competing-atmosphere detection, and cleanup on uninstall.
- Warnings for incompatible display settings without modifying the model or host preferences.
This is raster sunlight. It does not simulate bounced light, photometric lux, coloured transmission or caustics. A roofless scene is a presentation view, not an enclosed-room test.
Date and location calculate the sun's direction and height. Sunlight strength stays at your chosen value while the sun is above the horizon and switches off below it. There is no live weather, automatic seasonal intensity or sky-light simulation. Presentation fill is an artistic control that brightens enclosed areas too.
The intro records the actual controls in a local Pascal host, including bathroom and living-room details from an existing apartment. It shows the compass, sun-height slider, direct-only versus fill, summer/winter sun positions, and preset download. It was recorded with rc.6; version 0.1.0 retains the same runtime code and styles.
The host includes the separately reviewed enclosure/glazing shadow corrections. The video is not evidence of hosted-cloud availability or calibrated lighting. See the recording notes for settings and scope. No apartment graph or model files are included in this repository.
A Pascal host must bundle the package first. Open Plugins → Daylight → Install, then enable Daylight in its panel. Disable any competing atmosphere through its own panel. Start in Visual: drag the sun, set its height, then adjust Sunlight strength or Scene brightness. Lift dark areas is an artistic fill; use Direct only for enclosure checks. Compass arrow keys move 1° (Shift or Page keys: 15°); Home points north.
Choose Date & location for an actual sun position. Enter your project's latitude/longitude, then use the date picker. Its time zone is your device's, shown below the field; it does not infer the project's time zone from coordinates. Shared presets retain the same absolute moment. Invalid dates and daylight-saving gaps/repeated times are rejected; an explicit offset in Advanced resolves repeated times. Use current time updates only the timestamp.
Advanced contains exact values, model north alignment and preset files. Expand its JSON section for copy/paste or developer/AI workflows. Both interfaces use the same version-1 configuration API. Sun colour remains the renderer's fixed warm white; no colour picker is presented for a setting the plugin does not expose.
Uninstalling Daylight releases its presentation; it does not delete or rewrite authored nodes.
For enclosure checks use shadows on, Rendered shading, full-height walls, stacked levels, visible roof/ceiling and zero presentation fill. Fast preview bypasses post-processing.
See host integration for bootstrap, saved settings and public-viewer requirements. Compatibility separates the plugin API from the companion rendering fixes. No ZIP or npm upload installs a plugin into Pascal's official cloud.
Use Bun 1.3.13, Git and tar. No install-time scripts are required.
git clone https://github.com/BlackforestDude/pascal-daylight-plugin.git
cd pascal-daylight-plugin
git checkout v0.1.0
bun install --frozen-lockfile --ignore-scripts
bun run check
bun run releaseThe release command requires a clean Git commit. It exports that source, performs two isolated
clean installs/checks/builds, packs both, and fails if the package bytes differ. It also installs
the resulting archive into a clean consumer, checks the exported API and writes checksums,
source revision, file inventory and command logs under release/. It never publishes.
See release procedure.
The release tag points to the exact source. The release assets include the version 0.1.0 package, source archive, build metadata and checksums. The original rc.6 review packet is also retained as historical host-integration and browser evidence; its package and preparation-time report remain unchanged. Use the separate 0.1.0 archive for new integrations.
The synthetic 3 × 4 m room contains no customer files or downloaded models. Its optional test harness reads the explicitly selected Pascal source checkout; production plugin code imports only public packages.
PASCAL_EDITOR_ROOT=/absolute/path/to/reviewed/pascal-editor bun run dev:labRun enclosure, native-glazing and lifecycle checks in the lab. Repeat with ?backend=webgl.
Do not interpret geometry/texture counters as a complete GPU-memory measurement.
The browser harness also compares Three's complete reported GPU allocation counters after
20 warm remounts. Testing instructions cover both renderer backends and
the integrated editor. See the review packet's verification report for observed results
and remaining host acceptance.
Runtime network requests, accounts, API keys, telemetry, geolocation requests, cookies and plugin-owned local storage: none. Coordinates and timestamps are manually supplied settings. Hosts choose where to persist the versioned preset; the stock local host uses browser storage. Shared viewers need host-owned project persistence and the same display preferences. GitHub publisher/documentation links are opened only when a user follows them.
Plugin ID: blackforestdude:daylight. The earlier private candidate used local:daylight;
enable the new ID explicitly. Version-1 exported presets remain importable. No automatic
scene migration or public namespace registration is claimed.
Licensed under Apache 2.0, with attribution in NOTICE.
The package keeps private: true solely to prevent accidental npm publication; its release
archive is installable by a reviewed host. GitHub distribution does not require npm publication.
Use GitHub Issues for bugs
and focused improvements. For rendering issues, include the plugin version, Pascal host
revision, browser, renderer backend and a small reproducible example without private project
data. Third-party terms are in THIRD-PARTY-NOTICES.md.
