Edit of asset "2D outline shader" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | 2D outline shader | 2D outline shader |
Description |
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. |
Category | Shaders | Shaders |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/Julian-Vos/asset-library-2D-outline-shader-4 | https://github.com/Julian-Vos/asset-library-2D-outline-shader-4 |
Issues Url | https://godotshaders.com/shader/2d-outline-inline-configured-for-sprite-sheets/ | https://godotshaders.com/shader/2d-outline-inline-configured-for-sprite-sheets/ |
Godot version | Godot 4.0 | Godot 4.0 |
Version String | 1.0.0 | 1.0.0 |
Download Commit | b41ecb704f260c3f04b35b19837ace0f89cb092d | b41ecb704f260c3f04b35b19837ace0f89cb092d |
Download Url (Computed) | https://github.com/Julian-Vos/asset-library-2D-outline-shader-4/archive/b41ecb704f260c3f04b35b19837ace0f89cb092d.zip | https://github.com/Julian-Vos/asset-library-2D-outline-shader-4/archive/b41ecb704f260c3f04b35b19837ace0f89cb092d.zip |
Icon Url |
https://godotshaders.com/wp-content/uploads/2021/01/outline_shader_asset_library.png
|
https://godotshaders.com/wp-content/uploads/2021/01/outline_shader_asset_library.png
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://godotshaders.com/wp-content/uploads/2021/01/outline_shader1-4b6e8444.png
|
|
Thumbnail |
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://godotshaders.com/wp-content/uploads/2021/01/outline_shader3-74fc6699.png
|
|
Thumbnail |
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://godotshaders.com/wp-content/uploads/2021/01/outline_shader_sprite_sheet-1.gif
|
|
Thumbnail |
|