SparkSL
SparkSL API
SparkSL API Overview

SparkSL API Overview

All API functions can be found in the std namespace. Some API functions will require you to import the corresponding module before usage.

Example usage: auto normal = std::getVertexNormal();



The Spark AR Extension for Visual Studio Code supports code autocompletion for the SparkSL API.

ModuleImport Syntax
Attributes
 * Automatically imported *
Blending
 #import <blending>
Color Spaces
 #import <color_spaces>
Gradients
 #import <gradients>
Lights
 #import <lights>
SDF
 #import <sdf>
Textures
 * Automatically imported *
Uniforms
 * Automatically imported *
Utils
 #import <utils>




Was this article helpful?