ofxDOF icon indicating copy to clipboard operation
ofxDOF copied to clipboard

inverting colors in the final image

Open nosarious opened this issue 8 years ago • 0 comments

I was trying to alter the shader code to get a black on white color instead of the white on black.

I do appreciate your making this addon available, it is streamlined compared to some of the others (not to mention it works properly where others ... don't)

The code in the dof fragment shader (not the dof_GL3) which I altered was: gl_FragColor= vec4( 1.0-sum.rgl_Color.r, 1.0-sum.ggl_Color.g, 1.0-sum.b*gl_Color.b, gl_Color.a );

there was no change in the output of the expected shader (basically I wanted inverted colors so black lines on a white background.)

nosarious avatar Nov 08 '16 08:11 nosarious