start work on filterview

not doing fft fuck that
This commit is contained in:
2026-01-23 11:58:37 +13:00
parent eb511a1f79
commit 87cafe3a05
4 changed files with 83 additions and 99 deletions

View File

@@ -20,6 +20,31 @@
*/
#define CRUSHVIEW_SAMPLECOUNT 200
#define VERTEXSHADER R"(#version 330 core
in vec2 position;
in vec4 colour;
out vec4 fragcolour;
void main()
{
gl_Position = vec4(position, 1, 1);
fragcolour = colour;
if(position.x<0){
fragcolour.a = position.x+1;
}
else{
fragcolour.a = 1-position.x;
}
}
)"
#define FRAGSHADER R"(#version 330 core
in vec4 fragcolour;
void main()
{
gl_FragColor = fragcolour;
}
)"
class CrushView : public juce::Component, public juce::OpenGLRenderer
{
public: