BlackMojito Posted March 21, 2018 Share Posted March 21, 2018 I haven't found any options in the source code so far. Maybe I missed something? Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 21, 2018 Share Posted March 21, 2018 Such an option can make my interest too, but I'm not sure if it's possible due to the fact the environment texture is a cubemap, therefore mapped to the global world axys. So for now I use the trick to map the visual environment texture on a (big) cube or a (big) sphere. But maybe their is a tips that I'm not aware of. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2018 Share Posted March 21, 2018 Something like that? https://www.babylonjs-playground.com/#YMF2AX Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 21, 2018 Share Posted March 21, 2018 But what if the environmentTexture you want to rotate is the environmentBRDFTexture generated for PBR scene? (so not applied to a mesh) Quote Link to comment Share on other sites More sharing options...
BlackMojito Posted March 22, 2018 Author Share Posted March 22, 2018 8 hours ago, V!nc3r said: But what if the environmentTexture you want to rotate is the environmentBRDFTexture generated for PBR scene? (so not applied to a mesh) Yeah right. In my case the environment texture is actually used only for IBL, too. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2018 Share Posted March 22, 2018 So you can play with the environment texture reflection matrix (reflectionMatrix property). You can apply a rotation matrix this way V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 23, 2018 Share Posted March 23, 2018 So... I tried to enter the matrix... but have absolutly not idea of what I'm doing here Can someone explain how to play with this thing? line 18 is all what I was able to code ahah https://www.babylonjs-playground.com/#J5E230#34 How can I apply a 15° Y angle on this environmentBRDFtexture for example? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2018 Share Posted March 23, 2018 like that: https://www.babylonjs-playground.com/#XRU9BA V!nc3r and jps0611 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.