75ca88ddbe
- 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
51 lines
1.3 KiB
GLSL
51 lines
1.3 KiB
GLSL
#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;
|
|
}
|