30 lines
737 B
GLSL
30 lines
737 B
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 float param_alpha;
|
||
|
|
|
||
|
|
|
||
|
|
varying vec2 v_uv;
|
||
|
|
|
||
|
|
void main()
|
||
|
|
{
|
||
|
|
vec4 col = param_color_a;
|
||
|
|
col.a *= clamp(param_alpha, 0.0, 1.0) * u_layer_opacity;
|
||
|
|
gl_FragColor = col;
|
||
|
|
}
|