RetroArch
Variables
fft_fragment_program_resolve.glsl.frag.h File Reference
#include "shaders_common.h"
Include dependency graph for fft_fragment_program_resolve.glsl.frag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

static const char * fft_fragment_program_resolve
 

Variable Documentation

◆ fft_fragment_program_resolve

const char* fft_fragment_program_resolve
static
Initial value:
precision mediump float;
precision highp int;
in vec2 vTex;
out vec4 FragColor;
uniform usampler2D sFFT;
vec4 get_heights(highp uvec2 h) {
vec2 l = unpackHalf2x16(h.x);
vec2 r = unpackHalf2x16(h.y);
vec2 channels[4] = vec2[4](
l, 0.5 * (l + r), r, 0.5 * (l - r));
vec4 amps;
for (int i = 0; i < 4; i++)
amps[i] = dot(channels[i], channels[i]);
return 9.0 * log(amps + 0.0001) - 22.0;
}
void main() {
uvec2 h = textureLod(sFFT, vTex, 0.0).rg;
vec4 height = get_heights(h);
height = (height + 40.0) / 80.0;
FragColor = height;
}
)
#define GLSL_300(src)
Definition: shaders_common.h:11
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
struct passwd out
Definition: missing_libc_functions.c:51
GLenum GLint GLint * precision
Definition: glext.h:8206
sampler2DBase< glm::ivec4 > isampler2D
Definition: sampler.hpp:95
#define log(...)
Definition: spirv_cross.cpp:28
bool l
Definition: connect_wiiupro.c:37
std::shared_ptr< Ope > dot()
Definition: peglib.h:1603
GLuint in
Definition: glext.h:10523
int main(int argc, char *argv[])
Definition: send-presence.c:197
sampler2DBase< glm::uvec4 > usampler2D
Definition: sampler.hpp:96
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293