I have 3D rectangles representing walls in a room but only a part of these walls is seen inside the photo that I want to use as a texture for the rectangles.
To map the texture, camera projections of the vertices of the rectangle are used as the uv coordinates. Some of the projections, however, fall outside the boundary of the image, creating negative uv values. For example, the projections of top left and bottom left coordinates of the left wall in the attached image below lie outside of the image.
In threejs, the mapped texture with those uv values doesn't look correct. See attached images.
So is the problem entirely due to negative uv values or the texture constants need to set correctly?