Iterate through each pixel of the viewport camera ?

Hello !

I am looking for a way to run through each pixel of the camera in the viewport (not during runtime), to cast a ray from each one, is there a way to do this ?
I thought it would be easy to find but I didn’t find anything unfortunately :frowning:

Thanks :slight_smile:

Yes its possible. here is a person that was able figure out how to do it with the mouse x,y. You could do the same thing, but loop through the x and y of the screen if you know the screen size, or just hard set a specific x,y portion of the screen. Also this probably wont be very fast and take alot of time to do this many line traces just a warning.…to-target.html