Baltor Get started

Gallery / Godot shaders

Classic sine plasma with a cosine palette

In your harnessGodot shaderMIT

Animated plasma: four sine fields (horizontal, vertical, diagonal and radial) summed and mapped through a cosine colour palette that cycles over time.

Render of Classic sine plasma with a cosine palette
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
canvas_item
Parameters
scale (float = 8), speed (float = 1), palette_offset (vec4 = 0.5, 0.5, 0.5, 1), palette_amplitude (vec4 = 0.5, 0.5, 0.5, 1), palette_frequency (vec4 = 1, 1, 1, 1), palette_phase (vec4 = 0, 0.33, 0.67, 1), cycle_speed (float = 0.15), color_steps (int = 0)
Use it on
A ColorRect (or any CanvasItem) sized to the area to fill; UVs span 0 to 1 across it.
Result
Smoothly flowing rainbow bands that swirl around a wandering centre.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/plasma_sine_2d/

Limits. Pure function of position and time: no texture detail. Palette parameters outside 0..1 can clip.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 92.1 KB
Licence
MIT
Declared effects
reads files, runs commands
Checked with
Godot 4.7.2, opengl3 compatibility (Mesa llvmpipe, Xvfb)
Checks
contract static, engine run, engine log clean, shader in scene, capture written, render not uniform, shader changes pixels
Techniques
Sum of sine fields (plasma), Cosine colour palette a + b cos(2 pi (c t + d)), Palette cycling
Tags
godot shader, canvas item, plasma, demoscene, retro, palette cycling, procedural
Identity
library.supply.creative_originals.6ee34cf8b083960e9b200689.88cb28f3342bd05f
Version
88cb28f3342bd05f19d5e4ff4c624144480fd8fc3ce5259a0e1e3a6576e60c40

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.