- Home /
Draw image with the original aspect ratio on the far clipping plane
I am drawing an image at the far clipping plane as in the following picture. I am doing this with a Quad to which I attach a material containing an image. Then, I scale the Rect of the Quad to fit the far clipping plane size. The problem is, just by using a Quad, the image's aspect ratio is different than the original image.
Is there a way to make the quad having the same aspect ratio as the original image? PS: I need the 3D world even though it looks like I'm using the image just as a background. So using a UI is out of the question. Also because the background will change and the images do not have the same aspect ratio.
If you're looking to draw on top of the skybox with a fixed texture, why not instead replace the skybox Material with one using a Shader that draws that texture after the rest of the scene? Then you could adjust the "tiling" and "offset" values on the material to be relative to the images' aspect ratios.
Your answer
Follow this Question
Related Questions
Background Image Distortion 2 Answers
Background on a Quad 1 Answer
2D - draw sprite only on one background color 0 Answers
Best way to repeatedly tile small sprite? Sprite Manager? 2 Answers