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.