Holographic trading card foil
In your harnessGodot shaderMIT
Stylized holographic foil for cards and stickers: rainbow bands that slide with the viewing angle, a grid of diffraction tiles each with its own grating direction, and sparkle points, over a printed base colour.

What it takes and gives
- Shader type
- spatial
- Parameters
- print_color (vec4 = 0.12, 0.14, 0.3, 1), foil_strength (float = 0.8), band_frequency (float = 4), view_shift (float = 3), tile_count (float = 14), tile_contrast (float = 0.5), sparkle_density (float = 0.15), saturation (float = 0.85)
- Use it on
- A mesh with UVs and tangents (a thin box or quad as a card).
- Result
- A dark card covered in rainbow foil that shifts and glitters as it tilts.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/holographic_foil/
Limits. Artistic, not a diffraction calculation. Colours depend on the view angle only, not on light positions. Tiles and sparkles are aligned to UVs and alias when the card is small on screen.
Details
- Kind
- Godot shader
- Engine
- Godot 4.3 or later
- Files
- 11 files, 76.8 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
- View-dependent hue shift in tangent space, Per-tile grating directions from a hash, HSV-style hue to RGB conversion, MurmurHash3 32-bit finalizer over prime-combined lattice coordinates as a hash
- Tags
- godot shader, spatial, holographic, foil, rainbow, trading card, diffraction
- Identity
library.supply.creative_originals.73d63da9836e9a5cfe79ecff.70000ea4059a4b4e- Version
70000ea4059a4b4e5515e21e04543cd1ac281e272a3deb53020965c9fe2f6057
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.
