Using VPOS

rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
Posts 221
SunBurn_Community_Licensee
SunBurn_Pro_Licensee
2.0 Studios Posted: 07-30-2010 1:08 AM

Hey i'm trying to use vpos (or some other method) to get the data of what pixel i am currently working on inside a pixel shader...

Does anyone know how to do this?

Its in a shader that renders a particle, and as well as the normal things i need to know the X and Y of the current pixel being shaded...

If i can get this then i can use it to depth test my particles against a depth buffer texture.

If anyone wants a copy of the shader code to look at just let me know.

Page 1 of 1 (1 items) | RSS