55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"id": "video-transform",
|
|
"name": "Video Transform",
|
|
"description": "Zooms, pans, and rotates the video by remapping output pixels back into source UV space.",
|
|
"category": "Transform",
|
|
"entryPoint": "shadeVideo",
|
|
"parameters": [
|
|
{
|
|
"id": "zoom",
|
|
"label": "Zoom",
|
|
"type": "float",
|
|
"default": 1.0,
|
|
"min": 0.1,
|
|
"max": 8.0,
|
|
"step": 0.01
|
|
},
|
|
{
|
|
"id": "pan",
|
|
"label": "Pan",
|
|
"type": "vec2",
|
|
"default": [0.0, 0.0],
|
|
"min": [-1.0, -1.0],
|
|
"max": [1.0, 1.0],
|
|
"step": [0.001, 0.001]
|
|
},
|
|
{
|
|
"id": "rotationDegrees",
|
|
"label": "Rotation",
|
|
"type": "float",
|
|
"default": 0.0,
|
|
"min": -180.0,
|
|
"max": 180.0,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"id": "edgeMode",
|
|
"label": "Edge Mode",
|
|
"type": "enum",
|
|
"default": "black",
|
|
"options": [
|
|
{ "value": "black", "label": "Black" },
|
|
{ "value": "clamp", "label": "Clamp" },
|
|
{ "value": "wrap", "label": "Wrap" },
|
|
{ "value": "mirror", "label": "Mirror" }
|
|
]
|
|
},
|
|
{
|
|
"id": "outsideColor",
|
|
"label": "Outside Color",
|
|
"type": "color",
|
|
"default": [0.0, 0.0, 0.0, 1.0]
|
|
}
|
|
]
|
|
}
|