efxlab Posted February 11, 2018 Share Posted February 11, 2018 (edited) Hey I'd would like know when the texture is loaded on PBR glTF workflow, I did this code : assetsManager = new BABYLON.AssetsManager(scene); var textureTask = assetsManager.addTextureTask("albedoTexture texture", "assets/test/lambert1_baseColor.jpg", true, false); albedoTextureTask.onSuccess = function(task) { console.log(task.texture); meshes.material.albedoTexture = task.texture; } assetsManager.load(); The material assignation does nothing here thanks Edited February 12, 2018 by efxlab Along doc addTextureTask work like Texture Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 12, 2018 Author Share Posted February 12, 2018 Hey I did a playground : https://www.babylonjs-playground.com/indexstable#10D6YT#80 Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 12, 2018 Author Share Posted February 12, 2018 I solved here: https://www.babylonjs-playground.com/indexstable#10D6YT#81 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2018 Share Posted February 12, 2018 Excellent! Thank you for reporting back to us efxlab 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.