I’m trying to make the textures of adjacent objects align.
One object is an imported gltf model, and the other is a programmatically created BoxGeometry.
I tried to match the textures using the material repeat and offset values using a grid debug texture. And this worked but when I resize one of the objects the textures are no longer aligned.
Is there a material or setting that could fix this, something like projecting the material onto the objects in world space?
Example of the issue,
This example has three separate objects. When I change the height of the objects by moving the vertices up, the texture no longer aligns.
Second example,
Same setup as before, but now before resizing objects with a debug texture (material repeat and offset values adjusted)
I’ve been testing around with TSL triplanar texture. And it works partially, the texture is being displayed. But its position seems to stick to the object instead of world space. Am I missing something here?