Announcement

Collapse
No announcement yet.

Post process material aspect ratio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Post process material aspect ratio

    I have a post-process material that displays a texture from a scenecapture camera in the top right of the screen. A picture in picture. It works, however the texture is squished vertically because of my aspect ratio (16:9). I want the PiP to be a perfect square, 256x256. So, I need to find a way how to adjust the texture UVs within the material to accommodate any resolution. This is where I'm stuck, how would I do that? Looking through the material nodes I found ScreenSize (ViewSize when placed) and figured that must be the width/height of the player's game window. I spent a couple hours trying to figure out this node but to no avail. There is no documentation anywhere to be found on it either.

    Thanks!
Working...
X