03Coming soon

Procedural Gas Giants

Procedural gas giants for Unity (URP and HDRP): twenty types, generated from a preset and a seed, six of them with rings that shade the planet and take its shade. Every seed gives a gas giant of its own; a preset only sets the design, and you can change presets or make your own. Made to be seen from a moon, a ship or a system view.

Unity 6.3 LTS or newer · URP and HDRP · Version 1.0.0

A Saturn-type gas giant with its ring, seen from close

What it is

Procedural Gas Giants generates gas giants from a preset and a seed: cloud bands and storms, a haze at the limb and, on six types, a ring. The preset sets the design of the type, the seed picks the gas giant (its bands, storms and ring); size and quality are set per gas giant. Every gas giant is generated, not painted, and a preset only sets the design of a type. Presets are adjustable: every value in the preset inspector can be changed, and a duplicated preset is a type of your own.

Generation runs in the editor or at runtime, in the background over several frames, with a progress value and cancellation. A generated gas giant can be stored as an asset in four sizes and then draws without generating anything. The body is traced per pixel and writes its depth, so other objects sort correctly in front of and behind it; the ring is a transparent object.

The gas giants are made to be seen from outside: from a moon, from a ship, as the giants of a star system. There is no interior and no camera inside the body.

Twenty types

Twenty presets, four real and sixteen invented. Each combines with any seed.

GroupTypesNote
RealJupiter, Saturn, Uranus, NeptuneSaturn has a ring
Invented, with ringAmethyst, Crimson, Golden, Striped, WaterCloudNarrow, dusty and saturnian rings
Invented, without ringAlkali, Azure, BrownDwarf, Eye, HotJupiter, Jade, Marble, Pastel, Storm, SuperPuff, TealBrownDwarf glows from inside, HotJupiter has a warm deep layer
All twenty gas giant types in a grid, real and invented types mixed

Rings

Six types have a ring, and no two seeds share one.

Saturnian

Zones of different density, a dark division and fine ringlets. Saturn, Golden, WaterCloud.

Narrow

A few dark, crisp ringlets. Amethyst, Striped.

Dusty

Faint, bright against the sun. Crimson.

Varied by seed

Colour, density, gaps and width change with the seed.

Shade both ways

The ring shades the gas giant and takes shade from it and from moons.

Switch off

One checkbox per gas giant.

A ringed gas giant against the light, the ring glowing
Against the light
The ring casting its shadow across the cloud bands
Ring shadow on the planet
A view along the ring plane with a moon in front
Through the ring plane

Generate and bake

Generate where it suits your game, or once in the editor.

Generate in the inspector

Preset, seed, size, Generate. Runs in the background; the editor stays usable.

Generate from code

One awaitable call, spread over frames within a GPU budget, with progress and cancellation.

Bake to Asset

Tick 256, 512, 1024 and 2048; one texture set per size, ring included. A stored gas giant draws without generating.

Look overrides

Ten values per gas giant: haze, relief, translucency, heat, flattening and the ring light.

Samples

Generate on start, in the background, a line-up of all types, a stored gas giant, a camera through the ring plane, size by distance.

Texture sizeTexture memoryGeneration time
2561 MiB57 ms
5124 MiB62 ms
102416 MiB114 ms
204864 MiB275 ms

Jupiter, measured in a player build on a AMD Radeon RX 9070 XT class, 1920 × 1080. The editor shows the memory for each size before you generate.

Jupiter close up: cloud bands and the great spot
Bands and storms
One ringed type in six different seeds
One type, six seeds

Quality levels

Choose per gas giant or project-wide. Distant gas giants can stay cheap while the one in front gets the full look.

LevelLargest texture edge readCube taps
Minimal5121
Low10244
Medium10248
High20488
Ultra20488

A gas giant that fills the screen height at 1080p costs 0.24 to 0.51 ms in URP and 0.05 to 0.28 ms in HDRP (AMD Radeon RX 9070 XT class; Jupiter, Saturn, Neptune, Amethyst and Storm; all levels).

One gas giant at the four texture sizes, same crop
Texture sizes 256 to 2048
One gas giant at the five quality levels, side by side
Five quality levels

Rendering

Drawn like any object in the scene.

Body

An ordinary renderer in every camera. The sphere is traced per pixel and writes its depth: ships and moons intersect it correctly.

Ring

A transparent object, traced as a thin slab. It reads the scene’s depth, writes none and sorts with other transparent objects.

Light

A Gas Giant Sun marks the light; HDRP gas giants follow the camera exposure.

Works together with Procedural Stars and Procedural Planets

The packages install side by side and share no code.

A star, a planet with a moon, a gas giant with a ring and a black hole in one scene

How it works

  1. 01

    Pick a type and a seed

    Drop a preset on the Gas Giant component, press Randomize for another gas giant: the preset sets the design, the seed the surface.

  2. 02

    Generate

    In the editor or from code; the package builds the bands, storms and ring in the background.

  3. 03

    Keep it

    Bake to Asset stores the gas giant in your project; it then draws without generating.

Requirements

Unity
6.3 LTS or newer
Render pipeline
URP and HDRP
Graphics API
Compute shaders for generating gas giants: Direct3D 12, Vulkan or Metal. Stored gas giants draw without them. Direct3D 11 is not supported.
Gas giants per scene
Any number; texture memory per gas giant depends on the size you choose.
Platforms tested
Linux (Vulkan). Windows (Direct3D 12) is set up but not tested yet.

Good to know

  • Built for viewing from outside; there is no interior and no camera inside the gas giant.
  • The cloud picture is generated once and turns with the body: no moving clouds, lightning or aurora in this version.
  • The ring belongs to the gas giant: no rings around other bodies, none for the fourteen types without a ring.
  • Moons come with Procedural Planets.
  • The ring writes no depth: depth of field, motion blur and soft particles do not see it, and it sorts with other transparent objects by distance.
  • No streaming and no disk cache: you decide when to generate, at what size and what stays in memory.
  • Not tested on mobile or WebGL. Direct3D 11 and macOS are not supported.

FAQ

Which gas giants are included?

Twenty types: Jupiter, Saturn, Uranus, Neptune and sixteen invented ones, each with any seed. Six have rings.

Are the gas giants fixed textures?

No. Bands, storms and rings are generated for every seed; a preset only sets the design of a type.

Can I change a preset or make my own?

Yes. Every value in the preset inspector can be changed and a duplicated preset is a new type. There is no dedicated tuning editor, so extreme values can give a plain surface.

Can I put a ring around a planet?

No. The ring belongs to the gas giant. Moons come from Procedural Planets and can shade the ring.

Do the clouds move?

No. The cloud picture is generated once and turns with the gas giant.

Does generating stall my game?

Generation runs in the background, spread over frames within a GPU time budget you set, with progress and cancellation. How long a gas giant takes at each size is listed in the documentation.

Can I avoid generating at run time?

Yes. Bake gas giants to assets in the editor and load them. A game with stored gas giants only can leave out the generation assembly.

How much memory does a gas giant use?

It depends on the texture size you choose: 1, 4, 16, 64 MiB for sizes 256 to 2048; the ring adds 0.25 MiB.

Do I need a renderer feature or custom pass?

No. A gas giant draws like any object in the scene.

Which render pipelines are supported?

Both URP and HDRP.

Does it work with Procedural Stars and Procedural Planets?

Yes. The packages install side by side; see “Works together”.

Does it run on Windows?

Windows (Direct3D 12) is set up but not tested yet.

Procedural Gas Giants Coming soon

Every purchase helps fund a space strategy game in development.