ChristmasLights
com.zzamjak.christmaslights is an OpenUPM Unity package. Randomised per-bulb colour cycling for a single sprite or UI image, driven by one black-and-white mask. Instead of painting a separate mask per RGBA channel, paint each bulb white on one texture and the editor baker flood-fills it into an ID map that stores a random id, the blob centroid and a soft mask. Colours come from a single Unity Gradient baked to a LUT, so there is no limit on the number of colours, and Fixed/Blend mode switches between hard and smooth transitions. Ships Random, Chase, Wave and Sync motions plus per-bulb twinkle, HDR emissive output for URP Bloom, and a 60-second edit-mode preview that runs without entering Play mode. Time is advanced in the shader, so the runtime CPU cost per frame is zero.
Install this package from the OpenUPM scoped registry with the instructions on this page, or use openupm-cli to update Packages/manifest.json.
Repository: https://github.com/zzamjak-cloud/ChristmasLights.
Owner: zzamjak-cloud.
Topics
Related Unity Packages
- CATSprite com.zzamjak.catsprite
- ColorReplace com.zzamjak.colorreplace
- OceanFlow com.zzamjak.oceanflow
- ToonShading com.zzamjak.toonshading
- UIShining com.zzamjak.uishining
- UVPatternFlow com.zzamjak.uvpatternflow
For registry setup problems, see Unity scoped registry troubleshooting.