SFML community forums

Help => Graphics => Topic started by: porteffroi on June 17, 2013, 06:13:41 pm

Title: Capture pixels while drawing shapes
Post by: porteffroi on June 17, 2013, 06:13:41 pm
Hi,

I'm searching a way to introduce some code between the computation of the pixels that must be colored when drawing a figure and the coloration itself. The target goal is to be able to cancel some pixel coloration based on a distance map to implement a basic 3D rendering engine.

Does anyone know where i should write this code ? I searched for some class i could extend and overload a "drawpixel" method but i did not find any ... (i'm new with SFML).

Thx for your attention
Title: Re: Capture pixels while drawing shapes
Post by: Laurent on June 17, 2013, 06:31:24 pm
It looks like a job for a fragment shader.