Ingo Chou Posted November 5, 2015 Share Posted November 5, 2015 Hi, I want to use a mirror texture in fragment.fx for rendering water. I created mirror texture and set it to the uniform sampler, but it's black. However, it works well if I set an other texture. It is ok if I use the same mirror texture for a plane without using shader. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 5, 2015 Share Posted November 5, 2015 The mirror texture has to be read using a projection:https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/default.fragment.fx#L243 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.