Shader
Your own GLSL, written or built from nodes.

Shader
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Codecode | shader code | none | – |
Shows asalphaMode | choice | Dark clear | Covers, Alpha, Dark clear, Light |
Picture for iChannel0source | image file | none | – |
Resolutionresolution | number | 100% | 25% to 100%Lower is lighter, fine for soft shaders |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Shader:
scene.set("Shader", "resolution", 1);scene.animate("Shader", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Shader", "resolution", 1);scene.animate("Shader", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetShader
Parameter Nameresolution
Parameter Value1
Used in
The example scenes with a Shader layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.
What every layer has
Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.
First Light
Molten
Pulse
Rain Harbour
Resonance
Valley Hours