Hi guys. Lets say I want to write a pixel shader that mirror's pixels by the distance from the center of the image source to the far most left pixel. In order to find the center of the image, I need to know its width. My thought is that I can ask for the image resolution as parameters for the pixel shader however I am not sure of any negative ramifications this might have.
What is the "proper" way to get the width and height of your image source in pixel bender? Thanks in advance!
The correct way with Pixel Bender 1.0 is indeed to pass in the width and height as parameters. There are no ramifications.