The Camera
The Camera
The Device

The Device

The Viewport and Simulator.

On this page

Have a question?

Ask the community

On this page

The device is an object that's automatically listed in the Scene panel in every Spark AR Studio project. It represents the device showing the effect, which means it can’t be removed from a project.

  • Add instructions to your effect, to tell people how to use it.
  • Create a custom render pipeline.

Device properties

When the Device is selected in the Scene panel, you'll see its properties in the Inspector.


This shows the size of the screen of the device playing your effect. It can’t be edited.


Custom Instruction

Click the arrow to the left of Custom Instruction to create a patch that can be used to add custom instructions to your effect add custom instructions to your effect.

Render Output

Render Pass

Click the arrow to the left of Render Pass to create a patch representing this property. This will enable you to use Render Pass patches in the Patch Editor to bypass Spark AR Studio’s default render pipeline.

Default Pipeline

Create a series of patches that replicate the default render pipeline. You can then use other render pass patches to customize it.


Creates the replica default render pipeline plus an imageBasedAntiAliasingShader patch. This patch reduces the appearance of aliasing artefacts by smoothing jagged edges in the image displayed on the device screen.

If you already have a default or custom render pipeline set up, this option will add the imageBasedAntiAliasingShader patch to your existing pipeline plus a shader render pass patch if necessary.

To apply anti-aliasing:

  1. Select Device in the Scene panel and go to the Inspector.
  2. To the right of Anti-Aliasing, click Create.

Anti-Aliasing is highlighted in the Inspector.

Editing the inputs

The ideal anti-aliasing settings are set by default in the ImageBasedAntiAliasingShader patch. However, you can edit these values to alter the intensity of the anti-aliasing effect, making it more or less visible.

EdgeSharpness: Controls the intensity of the anti-aliasing effect. Increasing the value increases the smoothness of the transition between an edge and its neighbouring pixels.

EdgeThreshold: Controls which edges are detected and therefore have the anti-aliasing effect applied. Higher values detect only very clear edges with high contrast between edge and neighboring pixels. Lower values detect less visible edges, with less contrast. If your effect is very dark or blurry with less visible edges, try entering a lower value than the default.

Was this article helpful?