Website powered by

Sparkle Shader

For Holiday Hideaway in Walkabout Mini Golf, I wanted to add something special to the ribbons on the presents around the level. I added a sparkle effect that would change as the player moved around the scene. I achieved this by taking a triplanar sample of a noise texture and doing a dot product against the view direction, and then converting that back to world space. I added that to the reflection to create the sparkle effect. I found that I could use the same effect in the snow shader by pumping it into the color output to create bright white sparkles in the snow.

Ribbon Sparkle Effect

Ribbon Sparkle

Ribbon Sparkle

Ribbon Sparkle

Ribbon Sparkle

Snow Sparkle

Snow Sparkle

Sparkle Shader

Sparkle Shader