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.
Module | Import 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> |