Options

The following section describes the options of the shader, in the same order as they appear in the material inspector. The inspector groups them into three categories – Main Surface, Emission, and Outline.

Main Texture

The main (albedo/color) texture used by the shader, and the texture that the outline is traced from. A Sprite Renderer fills this in with its sprite automatically.

Albedo

An additional color multiplied with the one already present in the main texture. Use this to further customize the look of your sprite.

Alpha Cutoff

This is a threshold value – all parts of the texture whose alpha value is less than the alpha cutoff will not be rendered. The outline is still traced from the full alpha of the texture, so the parts removed this way can end up covered by the outline instead.

Ambient Occlusion

The regular ambient occlusion from the standard URP Lit shader. This property is not available in the 2D Renderer version of the shader.

Metallic Map

The standard metallic map option in the default URP Lit shader. The metallic map is a black-and-white texture that determines the surface type of the object. It is used to make certain parts of the sprite reflect light like a metal would (metallic), and others like sand would (smooth). This property is not available in the 2D Renderer version of the shader.

Metallic

This value determines how "metallic" the surface should be, i.e., whether it should reflect light like a metal or a wet surface, or should absorb it like sand or another rough, non-metallic surface. This property is not available in the 2D Renderer version of the shader.

Normal Map

The standard normal map option in the default URP Lit shader. The normal map is used to simulate a 3D-surface by containing information on how the light should be reflected by the surface.

Normal Strength

This value is multiplied with the normal map and is used to make the effect stronger or weaker. A negative value will mirror the 3D-effect (i.e., protruding surfaces will now be concave, and vice versa). It starts at 0, which leaves the normal map without any effect, so remember to raise it after assigning a normal map.

Emission Color

The emission color as an HDR color. Keep in mind that different post-processing effects (most notably bloom) will have a profound effect on the look of your emission.

Emission Map

The standard emission map option in the default URP Lit shader. A black-and-white map that determines which parts of the sprite will emit light. The white pixels of the texture are areas where the emission will have an effect, and the black pixels are the areas with no emission.

Emission Extra Intensity

Since the default HDR color has a limited intensity (-10 to 10), this shader offers an additional intensity option that allows you to make your emission even stronger. It starts at 0, where there is no visible emission. At 1, the emission shows at about the strength of the Emission Color. Above 1, it grows very quickly – the demo materials that use emission stay between 1 and 3.5. The effect depends on the viewing angle, so the boost is strongest near the center of the screen.
Emission Extra Intensity relies on a perspective camera, which is what all demo scenes use. With an orthographic camera, the sprite faces the camera head-on at every point: values below 1 leave the emission off entirely, and values of 1 or above produce invalid colors (NaN or infinity) instead of a usable emission. The outline is not affected by this.

Outline Width

The thickness of the outline, measured in texels of the main texture. The same value therefore looks thinner on a high-resolution sprite than on a low-resolution one, and the outline scales along with the sprite.

Outline Color

The color of the outline as an HDR color. The outline is drawn as emission, so it is not affected by the lights in your scene, and a high intensity combined with bloom makes it glow. The alpha value controls the opacity of the outline – set it to 0 to hide the outline completely.

Outline Softness

How gradually the outline fades out (0 to 5). At 0, the outline has a hard edge. At 1, it fades smoothly from full strength to nothing, which turns it into a glow. Values above 1 also make the outline fainter, reducing its peak strength to about a half at 2, and to about a tenth at 5. A strong HDR Outline Color makes up for that.

Outline Quality

The number of times the main texture is sampled per pixel to trace the outline: 8 on Low Quality, 16 on Medium Quality, and 32 on High Quality, which is the default. More samples follow the shape of the sprite more accurately, but cost more performance. Thin outlines usually look fine on a lower quality, whereas wide or soft ones benefit from a higher one.

Inner Outline

Disabled by default, which draws the outline outside of the sprite. Enable this option to draw the outline inside of the sprite instead, starting from its edges and replacing the sprite's own color underneath. A single material draws either an outer or an inner outline, not both.

Since the outline is built from a fixed number of samples, very wide and soft outlines can look stepped or jagged. If that happens, raise the Outline Quality. If the steps are still visible on High Quality, reduce the Outline Width. The outline options interact strongly with each other and with the resolution of your sprite, so there is no single "correct" set of values. The demo scenes ship with materials covering everything from a hard outline to an inner glow – use them as starting points.
Main Texture Albedo Alpha Cutoff Ambient Occlusion Metallic Map Metallic Normal Map Normal Strength Emission Color Emission Map Emission Extra Intensity Outline Width Outline Color Outline Softness Outline Quality Inner Outline