Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![2D outline shader thumbnail image](https://img.godotassetlibrary.com/46qMA4ypkgDAg2RqID61ZPspALNa00_5p_s3DPWjuZU/rs:fit:640:360:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyMS00YjZlODQ0NC5wbmc.webp)
![2D outline shader thumbnail image](https://img.godotassetlibrary.com/VvhT8dfhF2fiwhfoMu2sxab1ryASxzng6e9N0ptCOrw/rs:fit:640:360:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyMy03NGZjNjY5OS5wbmc.webp)
![2D outline shader thumbnail image](https://img.godotassetlibrary.com/V5FDOVSWPzFQL6NLYVJg92ECMUJYfo6y0rXpwJyms5A/rs:fit:640:360:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyX3Nwcml0ZV9zaGVldC0xLmdpZg.webp)
![2D outline shader hero image](https://img.godotassetlibrary.com/JeMhllflnUSioja3dKvbb0PYODN_XQa09h3POBPWFWc/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyMS00YjZlODQ0NC5wbmc.webp)
Quick Information
![2D outline shader icon image](https://img.godotassetlibrary.com/hsRg-CAUUCTUbopuW3rCjy9o90Bn9PdCKfYCP1zcZ2E/rs:fit:50:50:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyX2Fzc2V0X2xpYnJhcnkucG5n.webp)
Adds an outer or inner stroke to a texture. Just attach the shader to a ShaderMaterial and the ShaderMaterial to a Sprite2D or AnimatedSprite2D. Less suitable for textures with anti-aliased edges. Shader parameters:- color- width- pattern (diamond, circle, square)- inside- add_margins (to make room for an outline)- number_of_images (number of horizontal and vertical images in the sprite sheet)When using a sprite sheet: if the images contain a few semi-transparent pixels from adjacent images, try increasing the 0.0 at lines 41 and 69 to a value like 0.1.
Adds an outer or inner stroke to a texture. Just attach the shader to a ShaderMaterial and the ShaderMaterial to a Sprite2D or AnimatedSprite2D. Less suitable for textures with anti-aliased edges. Shader parameters:
- color
- width
- pattern (diamond, circle, square)
- inside
- add_margins (to make room for an outline)
- number_of_images (number of horizontal and vertical images in the sprite sheet)
When using a sprite sheet: if the images contain a few semi-transparent pixels from adjacent images, try increasing the 0.0 at lines 41 and 69 to a value like 0.1.
Reviews
Quick Information
![2D outline shader icon image](https://img.godotassetlibrary.com/hsRg-CAUUCTUbopuW3rCjy9o90Bn9PdCKfYCP1zcZ2E/rs:fit:50:50:0/g:no/aHR0cHM6Ly9nb2RvdHNoYWRlcnMuY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzAxL291dGxpbmVfc2hhZGVyX2Fzc2V0X2xpYnJhcnkucG5n.webp)
Adds an outer or inner stroke to a texture. Just attach the shader to a ShaderMaterial and the ShaderMaterial to a Sprite2D or AnimatedSprite2D. Less suitable for textures with anti-aliased edges. Shader parameters:- color- width- pattern (diamond, circle, square)- inside- add_margins (to make room for an outline)- number_of_images (number of horizontal and vertical images in the sprite sheet)When using a sprite sheet: if the images contain a few semi-transparent pixels from adjacent images, try increasing the 0.0 at lines 41 and 69 to a value like 0.1.