176 lines
3.0 KiB
JSON
176 lines
3.0 KiB
JSON
|
|
{
|
||
|
|
"schema_version": 1,
|
||
|
|
"id": "com.hms.generator.gradient",
|
||
|
|
"name": "Gradient",
|
||
|
|
"version": "1.0.0",
|
||
|
|
"api_version": 1,
|
||
|
|
"kind": "generator",
|
||
|
|
"vendor": "HMS",
|
||
|
|
"entrypoints": {
|
||
|
|
"d3d11": {
|
||
|
|
"type": "hlsl_singlepass",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"pixel_shader": "shaders/d3d11/gradient.hlsl"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"gl": {
|
||
|
|
"type": "glsl_singlepass",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"fragment": "shaders/gl/gradient.frag"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"gles": {
|
||
|
|
"type": "glsl_es_singlepass",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"fragment": "shaders/gles/gradient.frag"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"capabilities": {
|
||
|
|
"minimum_tier": "DESKTOP_LITE",
|
||
|
|
"requires_input_texture": false,
|
||
|
|
"supported_backends": [
|
||
|
|
"d3d11",
|
||
|
|
"gl",
|
||
|
|
"gles"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"adaptive_quality": {
|
||
|
|
"default": "auto",
|
||
|
|
"variants": [
|
||
|
|
{
|
||
|
|
"id": "low",
|
||
|
|
"internal_scale": 0.5,
|
||
|
|
"samples": 4
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "medium",
|
||
|
|
"internal_scale": 0.75,
|
||
|
|
"samples": 8
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "high",
|
||
|
|
"internal_scale": 1.0,
|
||
|
|
"samples": 16
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"transition_ms": 180,
|
||
|
|
"semantic_parameters_unchanged": [
|
||
|
|
"type",
|
||
|
|
"angle",
|
||
|
|
"center_x",
|
||
|
|
"center_y",
|
||
|
|
"width",
|
||
|
|
"phase",
|
||
|
|
"speed"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"id": "color_a",
|
||
|
|
"label": "Color A",
|
||
|
|
"type": "color",
|
||
|
|
"default": [
|
||
|
|
1.0,
|
||
|
|
0.0,
|
||
|
|
0.0,
|
||
|
|
1.0
|
||
|
|
],
|
||
|
|
"dmx_slots": [
|
||
|
|
1,
|
||
|
|
2,
|
||
|
|
3,
|
||
|
|
4
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "color_b",
|
||
|
|
"label": "Color B",
|
||
|
|
"type": "color",
|
||
|
|
"default": [
|
||
|
|
0.0,
|
||
|
|
0.0,
|
||
|
|
1.0,
|
||
|
|
1.0
|
||
|
|
],
|
||
|
|
"dmx_slots": [
|
||
|
|
5,
|
||
|
|
6,
|
||
|
|
7,
|
||
|
|
8
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "type",
|
||
|
|
"label": "Type",
|
||
|
|
"type": "enum",
|
||
|
|
"values": [
|
||
|
|
"linear",
|
||
|
|
"radial"
|
||
|
|
],
|
||
|
|
"default": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "angle",
|
||
|
|
"label": "Angle",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": 0.0,
|
||
|
|
"maximum": 360.0,
|
||
|
|
"default": 0.0,
|
||
|
|
"curve": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "center_x",
|
||
|
|
"label": "Center X",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": -1.0,
|
||
|
|
"maximum": 1.0,
|
||
|
|
"default": 0.0,
|
||
|
|
"curve": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "center_y",
|
||
|
|
"label": "Center Y",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": -1.0,
|
||
|
|
"maximum": 1.0,
|
||
|
|
"default": 0.0,
|
||
|
|
"curve": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "width",
|
||
|
|
"label": "Width",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": 0.1,
|
||
|
|
"maximum": 2.0,
|
||
|
|
"default": 0.5,
|
||
|
|
"curve": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "phase",
|
||
|
|
"label": "Phase",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": 0.0,
|
||
|
|
"maximum": 1.0,
|
||
|
|
"default": 0.0,
|
||
|
|
"curve": "linear"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "speed",
|
||
|
|
"label": "Speed",
|
||
|
|
"type": "float",
|
||
|
|
"minimum": -2.0,
|
||
|
|
"maximum": 2.0,
|
||
|
|
"default": 0.5,
|
||
|
|
"curve": "linear"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"failure_mode": "bypass"
|
||
|
|
}
|