1 Reply Latest reply on Oct 16, 2009 9:58 PM by Kevin Goldsmith

    How to get the Width and Height of an image source?

    akaitora

      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!