2D outline shader

An asset by Julian-Vos
The page banner background of a mountain and forest
2D outline shader thumbnail image
2D outline shader thumbnail image
2D outline shader thumbnail image
2D outline shader hero image

Quick Information

0 ratings
2D outline shader icon image
Julian-Vos
2D outline shader

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.

Supported Engine Version
4.0
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
13 days ago
Git URL
Issue URL

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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
2D outline shader icon image
Julian-Vos
2D outline shader

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.

Supported Engine Version
4.0
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
13 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers