Vertex locations can be accessed via Absolute World Position. If you use it in the vertex shader it’ll function as vertex position, in the pixel shader as pixel position. You can use a vertex interpolator to use vertex position in the pixel shader if you need to.