Skip to content
Snippets Groups Projects
Commit 2fcaa88e authored by Florent Berthaut's avatar Florent Berthaut
Browse files

Cleaned shader code

parent 0667b830
Branches
No related tags found
No related merge requests found
......@@ -111,8 +111,7 @@ out vec4 color;
void additiveSynth(vec4 color) {
float freq=0.0;
float note = 20 + color.x * 80;//color.x * 127;
//float note = 69.0;
float note = 20 + color.x * 80;
int ind=0;
int octave = int(note/12);
......@@ -164,7 +163,6 @@ void additiveSynth(vec4 color) {
//remove audioMixSize steps and write phase to output
outputPhase=mod(outputPhase+phaseStep*(audioBufSize-audioMixSize),
samplesPerPeriod);
//outputPhase=mod(outputPhase+phaseStep*(audioBufSize), 1.0);
imageStore(audioTex, ivec2(2, ind), ivec4(int(outputPhase)));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment