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 Sprite or AnimatedSprite. 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 37 and 65 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 Sprite or AnimatedSprite. 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 37 and 65 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-3 | https://github.com/Julian-Vos/asset-library-2D-outline-shader-3 |
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 3.5 | Godot 3.5 |
Version String | 1.0.0 | 1.0.0 |
Download Commit | 4e3d70e1af8dd443acc3d6972ea300b8e7b6fdd1 | 4e3d70e1af8dd443acc3d6972ea300b8e7b6fdd1 |
Download Url (Computed) | https://github.com/Julian-Vos/asset-library-2D-outline-shader-3/archive/4e3d70e1af8dd443acc3d6972ea300b8e7b6fdd1.zip | https://github.com/Julian-Vos/asset-library-2D-outline-shader-3/archive/4e3d70e1af8dd443acc3d6972ea300b8e7b6fdd1.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 |
|