Skip to content

Commit

Permalink
Fixed the hue input calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron committed Jul 21, 2012
1 parent 6566040 commit f091460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Source/GPUImageHueFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ -(id) init {
}

-(void) setHue:(CGFloat)newHue {
hue = fmodf(newHue, 360.0);
// Convert degrees to radians for hue rotation
hue = fmodf(newHue, 360.0) * M_PI/180 ;
[GPUImageOpenGLESContext useImageProcessingContext];
[filterProgram use];
glUniform1f(hueAdjustUniform, hue);
Expand Down

0 comments on commit f091460

Please sign in to comment.