hi all

How can get the worldview matrix in sfml?
or more specifically - I have a raw vector which I want to convert to screen position, i.e. the actual 2d pixel it will take on the screen if it was pushed through the rendering pipeline.
I tried the following (light.position is the raw position):
sf::Vector2f pos = m_window.getView().getTransform().transformPoint(light.position.x, light.position.y);
but from the shader it doesn't look right. I have a sprite and a light at the same position yet they seem far away. also, when I move the view (and update the shader) it doesn't move the light.
what am I doing wrong here?
thanks!
