psychofabrikats psychofabrikats Shader update 3mo ago

Sky Scrolling

Customizable skybox constructor with automated scrolling for Sphere, Cylinder, and Cube projections

favorite3favorites
thumb_up5upvotes
hard_drive 0 MB folder 1 files build Engine v25
open_in_new View on sbox.game

About This Package

A customizable skybox shader with built-in scrolling support


Supports three projection modes: Sphere, Cube, and Cylinder
Lets you animate the sky by setting per-face scroll speed and tiling
Cube mode includes an optional Advanced 6-Sided variant where each face gets its own texture, scroll speed, and tiling independently

Good for stylized skies, alien environments, or anything that needs a custom static or animated background.


How to use:
  1. Find the 2D Skybox component in your scene. Assign your material to its Sky Material field. 
  2. Open the material and set the Shader to sky_scrolling.
  3. Pick a mapping mode
    • Sphere — single texture wrapped around the entire sky
    • Cube — box-shaped projection, with optional Advanced 6-Sided mode (each face its own texture)
    • Cylinder — cylindrical wrap with separate top/bottom caps
  4. Assign your textures to the available slots.
  5. Set scroll speedfloat2 value per face, range -0.5 to 0.5. Zero = static.
  6. Set tiling — integer for sides (avoids seam artifacts), float2 for top/bottom caps.


Shader source code:
https://gist.github.com/Igoryoka/ab8da845e14e24d560828dc143a70224



Media (3)

Sky Scrolling - Thumbnail 2 Sky Scrolling - Screenshot 3
1
Total Users
8
Total Sessions
3.2 hours
Total Playtime
Package ID: psychofabrikats.skyscrolling
Created: 2026-04-07 21:10 UTC
Updated: 2026-04-07 21:10 UTC
Type: shader
Public: Yes
Version: 183309
files: 1
Size: 0.1 MB
Engine Version: 25
Asset Version ID: 183309
Version Created: 2026-04-07 21:10 UTC
Hash: -4896992094074984062
Manifest: Open manifest
Single Asset Source: shaders/sky_scrolling.shader
Resources:
Primary Asset: shaders/sky_scrolling.shader
Asset Type: Shader
Asset Type Extension: shader
Asset Type Is Game Resource: false
Asset Type Category: Rendering
Asset Type Target: Sandbox.Shader
Asset Type Is Simple: false
Asset Type Has Dependencies: true
Code Package References:
new_releases Latest Update Apr 7, 2026
First upload
tag v183309 folder 1 files hard_drive 0.1 MB build Engine v25
183309 Apr 7, 2026
First upload
folder 1 files hard_drive 91.4 KB build Engine v25