Playable demo
Feature Showcase
A forest camp of sprites baked from 3D and lit in real time. Play it in your browser.
Checking this browser
Checking this browser
- Keyboard and mouse
- Desktop browser
Coming soon to the Unity Asset Store
What differs on the webIn your browser
What differs on the web
The web demo is the same scene as the sample you open in Unity, with the limits a browser sets.
Loading
The first visit downloads the whole scene, and your browser keeps it for the next. Starting can take a minute while the browser prepares the lighting for every style, so switching styles later does not stop the scene.First changes
The first time you try some settings, such as night or a debug texture, the scene can pause for a few seconds while the browser prepares them.Lighting
Metal surfaces do not reflect the pools of light that lamps cast on the ground, and those pools do not light standing sprites.Speed
A browser runs the scene on one thread, so it draws fewer frames than a game you build for Windows.Editor tools
In Unity, the panel also saves a style you tuned and opens the settings that baked each asset. The web demo leaves them out.Devices
The demo needs a desktop browser with a keyboard and mouse. A phone or tablet may run out of memory.
The full showcase comes with Sun Forge
Sun Forge, coming soon to the Unity Asset Store, includes the Sun Forge Showcase package with this scene as its sample. In Unity, choose Tools > Sun Forge > Open Showcase. There the scene comes with the 3D models and presets its art was baked from, so you can change a preset and bake again.
What you are playing
Baked from 3D, lit like 3D
Every character, prop and effect in this scene, and the meadow under them, is Sun Forge bake output: sprites baked from 3D models and particle systems, with normal, mask and height textures beside the color. Only the grass over the meadow and the wisps at night are drawn by scripts. Sun Forge 2D Lighting reads those textures, so the sun, the campfire and the lights at night fall on each sprite as they would on its model.
Sun Direction
Turn the dial on the panel. Every sprite lights from the new angle, with no new bake.Style
Switch between Regular, Cinematic and Flat: the same sprites, shaded three ways.Debug Texture
Show the normal, mask and height textures the lighting reads.Browse Assets
Open a gallery of every asset in the scene, with the 3D model it was baked from.
WebGPU and WebGL 2
Two ways to draw the same scene
Both buttons start the same build, so you download it once and can try both. The scene, its lighting and its frame rate are the same on each.
| WebGPU | WebGL 2 | |
|---|---|---|
| Tested in | Chrome and Edge on Windows. Other browsers with WebGPU are not yet tested. | Chrome, Edge and Firefox on Windows. Other browsers with WebGL 2 are not yet tested. |
| First visit | Starts in about half the time | Takes longer to start |
| Later visits | Nothing downloads again | Nothing downloads again, and Chrome keeps the prepared lighting, so it starts sooner |
| In your own game | Unity 6.6 | Unity 6.3 LTS or Unity 6.6 |
Platforms
Windows, Android and the web
A bake writes ordinary Unity sprites, sprite atlases, animation clips and prefabs. The showcase built from them runs as:
A Windows game
Direct3D 12An Android app
Vulkan and OpenGL ES 3This web page
WebGPU and WebGL 2
Sun Forge works in Unity 6.3 LTS and Unity 6.6, with URP.
Controls
Hold the camp
Skeletons rise at the treeline and close in on the knight. Turn on Gameplay on the panel and more rise after dark. Hover any panel control to see what it does.
- WASD or arrow keys
- Move the knight
- Mouse
- Aim
- Left-click or Space
- Fire a bolt. Hold to keep firing.
- Right-click
- Fire a glowing bolt
- Esc
- Close the Asset Guide