start work on filterview
not doing fft fuck that
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user