Procedural Stars – Animated Sun & Star Shader (URP/HDRP)
BeyondAllSpace
$32.99
(no ratings)
Jump AssetStore
No setup: add the component. Put a Star component on an empty GameObject and the star is there, in every camera, like any other object. No renderer feature, no custom pass, no textures.Procedural Stars creates animated stars that are meant to be seen from a distance: the suns of your star systems, neutron stars and pulsars, the stars of a galaxy view, the light source in the sky of a space scene. Each star is generated at runtime from a few parameters. There are no textures to author and no meshes to place.What it isA sun has a granulated surface with active regions and coronal holes, a volumetric corona, coronal loops that rise from the surface, and a colour that follows its temperature. Compact stars add neutron stars (compact hot surface, heated magnetic polar caps, glowing halo) and pulsars (two sweeping lighthouse beams that flicker along their length, a blinking flash when a beam points at the viewer, polar sparks, and pulsing dipole magnetic field lines). All of it is animated.Seven presets. Infinite stars.Seven class presets give you a starting point:Red dwarf – 3100 K, 0.35 R☉Orange dwarf – 4400 K, 0.7 R☉Sun-like – 5772 K, 1 R☉White star – 7800 K, 1.5 R☉Blue giant – 12000 K, 2.5 R☉Neutron star – Compact hot surface, heated polar caps, glowing haloPulsar – Sweeping lighthouse beams, blinking flash, polar sparks, dipole field linesThese are presets only: a preset sets the design of a class, not a fixed star. Every star is generated, and its surface pattern, corona, loops and compact features are different for every seed (any integer, or call Randomize()). Star.Type (Sun, Neutron star, Pulsar) adds per-star Rotation Period, Magnetic Tilt and Field Strength. Presets are adjustable and you can create your own: every look parameter of a profile can be edited (including six Compact Star groups), and a profile can be created or duplicated. Temperature, radius, activity and seed are continuous parameters, so every value in between is available. The Star Builder demo showcases all three star types and all presets.Six view modesEvery star—suns, neutron stars and pulsars—can be rendered the way solar observations show it:EUV 171 ÅWhite lightH-alphaEUV 304 ÅX-rayCinematic: a look for games in the star's own colour (deep red dwarfs, a golden sun, white and blue hot stars)Useful for scientific-looking maps, tactical overlays, or simply for variety. The view mode is a per-star setting.Made to moveA non-uniform transform scale squashes and stretches the star like a ball, at constant volume. Each star can run at its own animation speed, changed at runtime without a jump or a rebake. An optional Star Light component lets a star light the scene, and the other BeyondAllSpace products (Procedural Planets, Gas Giants, Black Hole, Asteroids) light their bodies from the star and shade each other with eclipses; for compact stars, Star Light takes colour and luminosity from the profile and flares with a pulsar's lighthouse flash (never tinted by the view mode). Set a priority to choose the sun in a system with several stars.Quality and performanceFive quality levels, Minimal to Ultra, scaling both suns and compact stars. Surfaces are baked by compute shaders. Baking runs in the background within a per-frame budget that follows the GPU frame times, and a star's shaders compile when it is created, so a new or changed star does not stall a frame, not even on the first zoom. Baked surfaces are shared between stars. The minimum budget and the quality level are adjustable.Two rendering modesMaterial mode (default): the star draws like any renderer. No setup, any number of stars, every camera, layer and reflection probe, motion vectors for TAA and motion blur. Compact star glow draws at full resolution.Pipeline mode (optional): a URP renderer feature or HDRP custom pass draws the stars in a pass of their own, with the corona and compact star glow at half resolution; set up with one click, up to 8 stars per camera (up to 3 compact star surfaces and 8 compact glow volumes per view).Both modes look the same and can be mixed in one scene. The documentation lists the measured GPU time of each mode.Quad or sphere, with real per-pixel depthEach star is raymarched per pixel inside a simple geometry: a camera-facing quad (default, the cheaper one) or a sphere around the star. The shader writes the depth of the actual sphere, so planets, ships, asteroids and other geometry intersect and occlude the star correctly.What is includedProcedural star component (Star.Type: Sun, Neutron star, Pulsar) with custom inspectorsSeven class presets (five suns plus neutron star and pulsar) and six view modesFive quality levels with the compute-shader baking systemURP and HDRP supportFour demo scenes (Star Classes, Quality Levels, View Modes, Star Builder with all three types) and six test scenes that compare the rendering modes and geometries on your hardware (each test includes a compact star), for URP and HDRPDocumentation (PDF)Full C# and HLSL sourceRequirementsUnity 6.3 LTS or newerUniversal Render Pipeline or High Definition Render PipelineA platform and graphics API with compute shader supportLimitationsThe stars are designed to be viewed from a distance. They are not intended for flying into or close-up views of the surface.Compute shaders are required; platforms without them are not supported.Pipeline mode draws up to 8 stars per camera (material mode has no limit).Unity versions before 6.3 are not supported.SupportQuestions, bug reports and feature requests: support@beyondallspace.com. Documentation is included as PDF in the package. https://beyondallspace.comAbout the publisherBeyond All Space is developing a space strategy game. Revenue from this asset helps fund that development.

