Try It Here!
Get It Here!
Space Graphics Toolkit (SGT) is a collection of shaders, components, and media, that allow you to easily construct impressive space scenes for your games and software.
Each component is designed to give you full control over the visual result, while remaining easy to use, so you can easily integrate it with your existing media, or media made with other software.
Thanks to the great Unity community, SGT has been in development for over four years, and has received significant updates to keep up with new technology, and user requests.
[FREEBIE] Solar System Pack
This demo pack contains high-resolution versions of all major solar system bodies, including 4 versions of The Sun.
[FREEBIE] Galaxy/Nebula Pack
This demo pack contains the Ring Nebula, and two versions of The Milky Way.
[FREEBIE] Alien Worlds Pack
This demo pack contains six unique alien worlds with their own texture sets, atmospheres, and scenes.
[FREEBIE] Old Media Packs
If you're using an older version of SGT, then you can get the old media packs here.
Platform Support
All features of SGT have been written for Shader Model 2.5. This means it will run on almost all desktops, Android devices, iOS devices, consoles, etc.
In addition to this, each shader has been well optimized, and will even remove parts of itself that you aren't using (e.g. if you disable atmospheric scattering, then the atmospheric scattering shader code won't be used).
Terrestrial Planets
SGT comes with components that allow you to quickly create impressive terrestrial planets (e.g. Earth, Mars, Mercury, Venus).
The SgtAtmosphere component can be used to add a fully volumetric haze around your planets, allowing seamless visuals as the camera travels from space down to the surface. NOTE: This effect is applied on top of your planet, so it's compatible with most terrain shaders without any modification.
This can also be combined with the SgtCloudsphere component, to add a cloud layer on top of your planets.
Atmospheric Scattering
If you need more impressive sunrise and sunset effects, then the SgtAtmosphere component can also be set to scatter light through the atmosphere.
[NEW] Lightning
The SgtLightningSpawner component allows you to add life to your planets by periodically spawning animated lightning effects across the atmosphere.
Jovian Planets
The SgtJovian component allows you to quickly create impressive gas giants (e.g. Saturn, Jupiter, Uranus, Neptune).
Gas giants are fully volumetric, allowing seamless visuals as the camera travels from space into and through the atmosphere. It also has settings that allow you to easily change the atmospheric density, sunset colors, rim color, etc, so you can create any kind of gas giant you need.
The SgtRing component can be added to your planets, allowing you to render any sized ring you like, and even allow light to scatter through them, making the dark side look very impressive.
Rings can also be split into smaller segments, avoiding depth sorting issues when combined with planet atmospheres, or gas giants.
Stars
The SgtAtmosphere component can be used to add a fully volumetric corona to your stars, allowing seamless visuals as the camera travels from space down to the surface.
This can be combined with the SgtProminence component, to add solar prominences around your stars.
Shadows
SGT comes with a custom shadow system that allows you to cast very accurate and high performance shadows on your scene.
The SgtSphereShadow component can be used to cast spherical or ellipsoidal shadows on your scene. This component has settings for the penumbra radius, color transition, etc, allowing you to cast impressive shadows for any type of spherical body.
The SgtRingShadow component can be used to cast ring shadows on your scene, giving very impressive visuals when added to rings that orbit planets.
Asteroid Belts
SGT comes with many components to render billboard asteroid belts. The asteroids in these belts are animated to orbit, and spin.
These asteroids are animated on the GPU, giving very high performance, even allowing mobile devices to render thousands at once.
Starfields
SGT comes with many components to render billboard starfields. These starfields can either be part of your scene so you can fly around them, or they can be placed in the background.
Because the stars are billboards (quads), they give great performance, have incredibly high resolution, can be animated, and require very little memory.
Many games use skysphere or skybox starfields, which look bad on high resolution devices, and waste a lot of GPU memory. For example, a 4096x2048 starfield texture can use as much as 24MB of data!
[NEW] Gravitational Waves & Wells
The SgtSpacetime component can be used to show gravitational waves between two massive orbiting bodies, or just gravitational wells around them.
[NEW] Nebulas/Nebulae & Galaxies
The SgtNebulaStarfield component can be used to generate a 3D nebula based on a source picture, and gives you many settings to get the exact visual result you want.
You can also use this feature to generate galaxies, and combine it with the SgtSpiralStarfield component to give it stars.
[NEW] Black Holes/Singularities
The SgtSingularity component can be used to render black holes in your scene that bend light around them, distorting the background. This component gives you full control over the hold radius, strength, color, etc.
[NEW] Accretion Discs
The SgtRing component can be used to render an accretion disk, showing how matter can fall into a black hole.
[NEW] Hyperspace/Warp Drive Effects
The starfield components in SGT can be set to stretch based on camera movement, enhancing the sense of speed.
[NEW] Dynamic Mesh LOD
The SgtTerrain component can be used to generate a sphere mesh that increases in detail based on where the camera approaches.
This terrain can be combined with other components (e.g. SgtTerrainColor, SgtTerrainSimplex) to add more interesting details as you get closer.
[NEW] Infinite Asteroids & Dust
The SgtDebrisSpawner component can be used to spawn prefabs (e.g. Asteroids) around the camera as it moves.
The SgtBoxStarfield component can be used with the wrap setting to create an infinitely repeating dust field.
This dust can be set to fade in and out based on camera distance, and use volumetric rendering, to seamlessly fit into your game.
[NEW] Flares
The SgtFlare component allows you to render high quality light flares. You can control flare color and shape to produce any look you want.
These flares can also be combined with the SgtCameraDepth and SgtRaycastDepth components to smoothly fade the flare out as they go behind solid or transparent objects.