*Senior Unity Technical Artist: Tiled Scrolling & Rotation Cg Shader*
This custom Unity UI shader scrolls a tiled sprite horizontally while also rotating its UV coordinates around the texture center.
It works well for animated backgrounds, moving patterns, conveyor effects, energy panels, loading screens, and stylized UI elements.
Features
• Adjustable horizontal scroll speed
• Rotatable UV coordinates
• Continuous texture animation
• SpriteAtlas compatibility
• Unity UI stencil and clipping support
• Optional alpha clipping
• Transparent rendering
• Lightweight unlit implementation
The shader offsets the texture coordinates over time, converts them into centered UV space, applies a rotation matrix, and then samples the animated texture.
For seamless scrolling, use a tileable texture with Wrap Mode set to Repeat.
Created in CG for Unity’s Built-In Render Pipeline as part of my technical art and UI shader portfolio.
#Unity #UnityShader #CGShader #UnityUI #TechnicalArt #UIEffects #UVAnimation #ScrollingTexture #ShaderDevelopment