Phase 3: Alle 24 Pflicht-Plugins (10 Generatoren + 14 Filter, §15.1/§15.2)
- 10 Generatoren mit Manifest + HLSL + GLSL + GLES je Plugin: solid, gradient, checker_grid, stripes_chaser, noise_clouds (AQ Octaves 2/3/5), plasma, wave_bars, shapes, drops_ripples, starfield (AQ 32/128/512 Partikel) - 14 Filter mit Manifest + Shader je Backend: transform2d (keine AQ-Geometriereduktion), color_adjust, gradient_map, blur_sharpen (separabel 2-Pass, AQ 5/9/17 Samples), pixelate_quantize, mirror_tile, kaleidoscope, wave_displace (Noise adaptiv, Amount unverändert), rgb_split, glow_bloom (Kaskade 2/4/8), edge_emboss, vignette, strobe_pulse (Safety clamp 2 Hz, nie durch DMX allein freischaltbar), feedback_trails (Double-Buffer, Clear-Trigger, §15.3) - Uniform-Vertrag §14.4 in allen 75 Shadern; Generatoren sampeln nie u_input_texture; alle Filter mit mix-0-Bypass (§15.3) - 195 parametrisierte Plugin-Tests: Manifest/Backends/DMX-Slots<=8/ AQ>=3 Varianten/Uniform-Satz/Vollstaendigkeit exakt 10+14 - Nachtraegliche Manifest-Fixes: AQ-Bloecke fuer 4 1-Pass-Filter, mix-Parameter fuer feedback_trails (Slot-Overlap vermieden) - Gesamtsuite 506 gruen, Ruff gruen
This commit is contained in:
@@ -0,0 +1,175 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
// HMS MediaEngine - Generator (D3D11)
|
||||
// Erzeugt ohne Eingangstextur; cbuffer-Satz identisch zu Filtern (§12.6).
|
||||
|
||||
Texture2D u_input_texture : register(t0);
|
||||
SamplerState u_sampler : register(s0);
|
||||
|
||||
cbuffer hms_params : register(b0)
|
||||
{
|
||||
float4 u_resolution; // xy = Auflösung in Pixeln
|
||||
float u_time_seconds;
|
||||
float u_delta_seconds;
|
||||
float u_frame_index;
|
||||
float u_layer_opacity;
|
||||
float u_audio_rms;
|
||||
float u_audio_peak;
|
||||
float u_audio_bass;
|
||||
float u_audio_mid;
|
||||
float u_audio_treble;
|
||||
float u_audio_beat;
|
||||
float4 param_color_a;
|
||||
float4 param_color_b;
|
||||
float param_type;
|
||||
float param_angle;
|
||||
float param_center_x;
|
||||
float param_center_y;
|
||||
float param_width;
|
||||
float param_phase;
|
||||
float param_speed;
|
||||
float _pad0;
|
||||
float _pad1;
|
||||
float _pad2;
|
||||
};
|
||||
|
||||
|
||||
float4 mainPS(float4 pos : SV_POSITION, float2 uv : TEXCOORD0) : SV_Target
|
||||
{
|
||||
float2 p = uv - float2(param_center_x, param_center_y);
|
||||
float ang = radians(param_angle);
|
||||
float2 dir = float2(cos(ang), sin(ang));
|
||||
float t;
|
||||
if (param_type < 0.5)
|
||||
{
|
||||
t = dot(p, dir) / max(param_width, 0.0001) + 0.5;
|
||||
}
|
||||
else
|
||||
{
|
||||
t = length(p) / max(param_width, 0.0001);
|
||||
}
|
||||
t += param_phase + u_time_seconds * param_speed;
|
||||
t = frac(t);
|
||||
float4 col = lerp(param_color_a, param_color_b, saturate(t));
|
||||
col.a *= u_layer_opacity;
|
||||
return col;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
#version 330 core
|
||||
// HMS MediaEngine - Generator (GLSL, Linux x64)
|
||||
// Semantik identisch zur HLSL-Variante (§12.6, §15.4).
|
||||
|
||||
uniform sampler2D u_input_texture;
|
||||
uniform vec2 u_resolution;
|
||||
uniform float u_time_seconds;
|
||||
uniform float u_delta_seconds;
|
||||
uniform float u_frame_index;
|
||||
uniform float u_layer_opacity;
|
||||
uniform float u_audio_rms;
|
||||
uniform float u_audio_peak;
|
||||
uniform float u_audio_bass;
|
||||
uniform float u_audio_mid;
|
||||
uniform float u_audio_treble;
|
||||
uniform float u_audio_beat;
|
||||
uniform vec4 param_color_a;
|
||||
uniform vec4 param_color_b;
|
||||
uniform float param_type;
|
||||
uniform float param_angle;
|
||||
uniform float param_center_x;
|
||||
uniform float param_center_y;
|
||||
uniform float param_width;
|
||||
uniform float param_phase;
|
||||
uniform float param_speed;
|
||||
|
||||
|
||||
in vec2 v_uv;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 p = v_uv - vec2(param_center_x, param_center_y);
|
||||
float ang = radians(param_angle);
|
||||
vec2 dir = vec2(cos(ang), sin(ang));
|
||||
float t;
|
||||
if (param_type < 0.5)
|
||||
{
|
||||
t = dot(p, dir) / max(param_width, 0.0001) + 0.5;
|
||||
}
|
||||
else
|
||||
{
|
||||
t = length(p) / max(param_width, 0.0001);
|
||||
}
|
||||
t += param_phase + u_time_seconds * param_speed;
|
||||
t = fract(t);
|
||||
vec4 col = mix(param_color_a, param_color_b, clamp(t, 0.0, 1.0));
|
||||
col.a *= u_layer_opacity;
|
||||
fragColor = col;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
#version 100
|
||||
// HMS MediaEngine - Generator (GLES, Raspberry Pi)
|
||||
// ES 2.0: texture2D, varying, gl_FragColor, Schleifen mit konstanter Höchstgrenze.
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D u_input_texture;
|
||||
uniform vec2 u_resolution;
|
||||
uniform float u_time_seconds;
|
||||
uniform float u_delta_seconds;
|
||||
uniform float u_frame_index;
|
||||
uniform float u_layer_opacity;
|
||||
uniform float u_audio_rms;
|
||||
uniform float u_audio_peak;
|
||||
uniform float u_audio_bass;
|
||||
uniform float u_audio_mid;
|
||||
uniform float u_audio_treble;
|
||||
uniform float u_audio_beat;
|
||||
uniform vec4 param_color_a;
|
||||
uniform vec4 param_color_b;
|
||||
uniform float param_type;
|
||||
uniform float param_angle;
|
||||
uniform float param_center_x;
|
||||
uniform float param_center_y;
|
||||
uniform float param_width;
|
||||
uniform float param_phase;
|
||||
uniform float param_speed;
|
||||
|
||||
|
||||
varying vec2 v_uv;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 p = v_uv - vec2(param_center_x, param_center_y);
|
||||
float ang = radians(param_angle);
|
||||
vec2 dir = vec2(cos(ang), sin(ang));
|
||||
float t;
|
||||
if (param_type < 0.5)
|
||||
{
|
||||
t = dot(p, dir) / max(param_width, 0.0001) + 0.5;
|
||||
}
|
||||
else
|
||||
{
|
||||
t = length(p) / max(param_width, 0.0001);
|
||||
}
|
||||
t += param_phase + u_time_seconds * param_speed;
|
||||
t = fract(t);
|
||||
vec4 col = mix(param_color_a, param_color_b, clamp(t, 0.0, 1.0));
|
||||
col.a *= u_layer_opacity;
|
||||
gl_FragColor = col;
|
||||
}
|
||||
Reference in New Issue
Block a user