PDA

View Full Version : world coordinates from Color value returned



iris_raj
03-01-2007, 03:50 AM
Dear shader programmers,

Can I get the world xyz position(not screen cooridinates) of the pixels through pixel shader.

With regards
RAJESH.R

Overmind
03-01-2007, 04:08 AM
Not automatically. But you can just pass it from the vertex shader in a varying variable.