
RainbowGear
Turns the green glow on high-quality gear into a fast, balanced rainbow that is more see-through, and recolours the weapon's own blade trail. Brightness and opacity are configurable.RainbowGear
Fully refined gear gets a green halo. RainbowGear turns that halo into a slowly cycling, white-tinted rainbow and recolours the weapon's own blade trail — without changing the glow's size, density or the weapon model itself.
How it works
Runtime inspection of an item shows the glow is three things:
UpgraderGlow: ParticleIntensityScaler
Particle System: ParticleSystemRenderer [DraugrFangGlow material (_EmissionColor, _EmissionMap)]
Point light: Light, LightLod
trail: MeleeWeaponTrail
- The halo's colour lives in the particle material's
_EmissionColor, not in the particle start colour. Writing the start colour only tints it slightly and can wash it out to white fog. - The blade trail is a
MeleeWeaponTrailwith baked vertex colours.
The plugin therefore:
- writes
_EmissionColor(and_Color) on eachParticleSystemRenderermaterial of the equipped model — the emission is the halo; - recolours the point light;
- replaces the RGB of the built-in
MeleeWeaponTrail's vertex colours, keeping its alpha falloff.
It does not resize, thin out or add anything, so the look stays vanilla apart from the hue.
Config
BepInEx/config/snowfarm.valheim.rainbowgear.cfg
| Section | Key | Default | Meaning |
|---|---|---|---|
| 1 - General | Enabled |
true |
Master switch |
| 1 - General | MinQuality |
26 |
Minimum item quality (26 = above level 25) |
| 2 - Rainbow | CycleSpeed |
1.0 |
Full hue cycles per second |
| 2 - Rainbow | Saturation |
0.5 |
0 = white, 1 = vivid rainbow |
| 2 - Rainbow | GlowBrightness |
1.0 |
Emission multiplier; 1 keeps the vanilla intensity |
Tuning:
- halo still too strong →
GlowBrightness0.6 - want it brighter →
GlowBrightness1.5 - more colour, less white →
Saturation0.7–0.9 - faster cycle →
CycleSpeed2
Why quality 26 is a real number
In Valheim 1.0 the Forge of Potential in the Mountains reforges an item with an idol: 65% chance to
raise its quality by one level and no maximum level. Quality values above the old cap of 4/5 are
normal on refined gear, and 26 simply means "anything refined past 25".
Notes
- Client-side and visual only; nothing is sent to the server or saved.
- Materials are accessed per instance (
Renderer.material), so shared assets are never modified.
中文说明
满级/高强化装备外面那圈绿光,其实由三部分组成:粒子(材质 DraugrFangGlow 的 _EmissionColor
决定颜色)、点光源、以及武器自带的 MeleeWeaponTrail 刀光。
这个 mod 只做换色,不改尺寸、不改浓度、也不额外加拖尾:
- 逐帧写粒子材质的
_EmissionColor/_Color; - 改点光源颜色;
- 把自带
MeleeWeaponTrail的顶点颜色 RGB 换掉、保留原本的透明度衰减。
所以外观和原版一致,只是绿光变成会流转的、偏白的彩虹。想更淡把 GlowBrightness 调到 0.6,
想更彩把 Saturation 调到 0.8。
Build
dotnet build -c Release -p:ValheimDir="C:\Program Files (x86)\Steam\steamapps\common\Valheim"
or run pack.ps1 to build and produce RainbowGear.zip for Thunderstore.