Skip to content

Properties

In Properties, you can add external inputs as Uniform variables for use in shaders.

Time

Get the elapsed time since the editor started as a float.

Resolution

Get the resolution (px) of the drawing screen as a vec2.

Previous Render Pass

Get the latest drawing result of the specified Pass as a sampler2D.

Previous Frame

Get the final drawing result of the previous frame as a sampler2D.

Image

Get uploaded images as a sampler2D.

Audio Spectrum

Get the spectrum of microphone input as a sampler2D. The input is represented as a 256x1 texture, and the strength of each frequency is written to the R channel normalized to [0, 1].

INFO

To use the Audio Spectrum property, you need to allow microphone usage in your browser.

Camera

Get the camera image as a sampler2D.

INFO

To use the Camera property, you need to allow camera usage in your browser.

Keyboard

Get keyboard input as a sampler2D. The input is represented as a 256x1 texture, and the state of each key is written to the R channel as 0 or 1. The position on the texture corresponds to the following KeyCodes.