heyzxz Posted August 9, 2017 Share Posted August 9, 2017 Hi there, I found the '_environmentBRDFTexture' used in BJS is something different compare with the one shows in this tutorial . Please see the comparison image below: which you can tell that one is 'Y-flipped' than the other. (ignore the difference of the color cause by the blue channel, which is irrelevant. The shading relevant difference is only the Y flip) As I didn't see any place in BJS that flipping it back (maybe I should say 'to flip it back' here, bad English.. ) , and I also found both BJS and the tutorial do the exact same logic when sampling this texture, which means that one of you (BJS and the tutorial) used the wrong texture... I'm just learning some basic PBR principles from beginning these days , so for now I can't tell which one is right and which one is wrong... I hope someone can confirm this for me, thank you! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 9, 2017 Share Posted August 9, 2017 Hey they are certainly using gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, 1) heyzxz 1 Quote Link to comment Share on other sites More sharing options...
heyzxz Posted August 10, 2017 Author Share Posted August 10, 2017 Oh yes, I got it, my mistake, thank you! 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.