Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Question regarding rendertextures.  (Read 1059 times)

0 Members and 1 Guest are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Question regarding rendertextures.
« 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

Or should I reimplement the render texture class ?
I would like to do a two pass rendering with a depth and alpha test.
« Last Edit: March 01, 2014, 10:00:43 pm by Lolilolight »

PoxBear

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: Question regarding rendertextures.
« Reply #1 on: April 08, 2014, 11:51:40 pm »
I too would be interested in knowing this.