I'm trying to position a 3D object in either corner of my canvas automatically, regardless of its size.
https://i.sstatic.net/IWgr1.png
After finding a solution on stackoverflow:
I implemented the following code for my object:
mesh.position.set(-(window.innerWidth), (window.innerHeight), 0)
This resulted in only part of the object being visible, like this:
https://i.sstatic.net/jKrJM.png
I want the object to be fully visible and positioned consistently across different canvas sizes, especially for mobile use, like this:
https://i.sstatic.net/vv8lT.png
I have also included an example of my setup here: https://jsfiddle.net/w9914420/dez9k31m/
If anyone can provide some guidance on how to achieve this, I would greatly appreciate it. Thank you.