inteja Posted March 31, 2018 Share Posted March 31, 2018 See PG http://www.babylonjs-playground.com/#VFQCJR and take a look at console errors. Unable to compile effect: What I'm trying to do here is have the diffuse texture apply to the first set of UVs and the emissive texture apply to the second set of UVs (using emissiveTexture.coordinatesIndex = 2). I'm not sure if I'm doing this right (I couldn't find much documentation) or if it's a bug. Quote Link to comment Share on other sites More sharing options...
inteja Posted April 1, 2018 Author Share Posted April 1, 2018 Sorry I realised my mistake. VertexData.uvs2 corresponds to texture.coordinatesIndex = 1 and not 2. I should have picked that up. My bad. Here's the updated, working PG http://www.babylonjs-playground.com/#VFQCJR#2 Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2018 Share Posted April 2, 2018 Cool! 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.