Visual Shaders Overview
Visual Shaders Overview
Visual Shaders Overview

Visual Shaders Overview

Use visual shader patches with other patches in a graph to change the appearance of a material. This way, you can apply more complicated changes than you can using the shaders found in the Inspector.

Some visual shader patches use different data types to other patches in Spark AR Studio.

For more information on using visual shaders, see the Introduction to Visual Shaders tutorial.

Available Visual Shaders



Visually represents a property of a material, like its position or scale. Usually appears at the end of a graph to specify how the material appears in the effect.

Texture asset

Applies a texture to the material.


Blends two colors or textures together.

Color Space

Outputs a texture’s RGB, HSV, and HSL color values. Useful for isolating the color values to change the texture's appearance.


Outputs two combined functions as a single data stream.


Automatically outputs a fallback value when you disconnect the main value. For example, a color could be used as a fallback value for an image.

Fragment Stage

Processes each fragment in a texture individually instead of processing a texture at the vertices.


Used as an identity function. It always returns the same value as its argument.


Creates a grayscale gradient. Use with a Mix patch to create a color gradient.

Gradient Step

Defines each color you want to use in a color gradient. Use this patch multiple times to add multiple colors.

Render Target Size

Outputs the render target size. Useful for building effects using shaders requiring the exact pixel size, like pixel blurring.

Shader Derivative

Captures standard derivatives.

Texture Sampler

Samples a texture at the specified coordinates.

Texture Transform

Used with a 2D Transform Pack patch to scale, rotate, pivot and reposition a 2D texture on a 2D or 3D object.

Vertex Attribute

Provides the value of the selected vertex attribute among a selection of parameters.

Vertex Transform

Provides a vertex transformation matrix from a dropdown.

Was this article helpful?