what I’m searching for is a simple way to get the world space coordinates for each pixel running throu the pixel shader.
I’ve found this topic:
Pixel World Position
and it seems to work, but I’m yet not that used to shader language that I completly understand it.
Isn’t there an easy way to solve this?
Kind regards,
Marius
Easiest way is to pass it from the vertex shader as texture coordinate, like this (dx9 sample easy to convert to 10 if you use it):