How can I rotate the reflectionTexture?

Hello dear colleagues!

I’m trying to rotate the environment texture set by reflectionTexture in the PBR material (without rotating the object). I’m using the .reflectionTexture attribute like in this playground:

https://www.babylonjs-playground.com/#2FDQT5#14

However, I can’t seem to find a rotation or orientation that I can set?

Related to my setup, would it be possible to get the HDR source image of this environment:

https://www.babylonjs-playground.com/textures/environment.dds

I tried https://www.babylonjs-playground.com/textures/environment.hdr but that is a grass field :smile:

Thank you for any feedback!
Fred

Here we are: https://www.babylonjs-playground.com/#2FDQT5#177

For the env.dds as HDR I do not even remember what was the source :wink: But you can create your own hdr (or evenbetter .env) by following this guide: Use a HDR environment (for PBR) - Babylon.js Documentation

2 Likes

Wow that was fast! And it’s really easy! Thank you so much!

1 Like