SFML community forums

Help => Graphics => Topic started by: Lolilolight on March 01, 2014, 09:58:51 pm

Title: Question regarding rendertextures.
Post by: Lolilolight on March 01, 2014, 09:58:51 pm
Hi !

I would like to know if it's possible to get the zPosition of pixels from a rendertexture in a fragment shader just like it's shown in this following link with an fbo :


http://ogldev.atspace.co.uk/www/tutorial23/tutorial23.html (http://ogldev.atspace.co.uk/www/tutorial23/tutorial23.html)

Or should I reimplement the render texture class ?
I would like to do a two pass rendering with a depth and alpha test.
Title: Re: Question regarding rendertextures.
Post by: PoxBear on April 08, 2014, 11:51:40 pm
I too would be interested in knowing this.