Rotate ground texture on mouse move

Hi there!

I managed to rotate the terrain object when you move the mouse around the canvas. Although, the ground texture doesn’t follow the terrain object at all.

Here’s the playground: https://www.babylonjs-playground.com/#VHWT1E

I’m new to Babylon JS so I assume there’s something I’ve missed but I can figure out what

Thanks

https://www.babylonjs-playground.com/#VHWT1E#1
<3
#Line-104

2 Likes

That did the trick @Pryme8 Thanks a lot!! I would have never guessed that one :wink: