I’m not quite sure how to explain this but I’ve implemented the equivalent of the object-fit css property for a CanvasTexture and a plane geometry “container” with a certain width and height
https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
I would like to get an image from the resulting transformed texture. This image will have the aspect ratio of the plane. So basically, a projection of the what the plane face has.
Here is a picture of a “object-fit: contain” on a square plane.
Is there an easy way to obtain this? I haven’t been able to figure it out.