cx20 Posted March 24, 2016 Share Posted March 24, 2016 Hello I would like to try a sample of the below. Where is the sample to display the duck.gltf? https://www.khronos.org/blog/gltf-ecosystem-takeoff I have tried the below. http://jsdo.it/cx20/0EIT However... - the shadow of the duck did not display. - I want to turn off the shade (Shader) of the duck. Please tell me how can do it. Thanks. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted March 25, 2016 Share Posted March 25, 2016 Hi ! You can find the sample here (including water material) : http://babylonjs-extras.azurewebsites.net/GDC/ The code to generate shadows is also included, the debug layer can be drawn using "scene.debugLayer.show()" cx20 1 Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted March 25, 2016 Share Posted March 25, 2016 Sorry, the shadows were removed. To add shadows, you can simple use the Shadow Generator of Babylon.js : http://doc.babylonjs.com/tutorials/Shadows To get the duck mesh reference, just type "scene.getMeshByName("LOD3sp");" 2 cx20 1 Quote Link to comment Share on other sites More sharing options...
cx20 Posted March 25, 2016 Author Share Posted March 25, 2016 Luaacro san Thank you for a great sample. I tried the code below. var duck = scene.getMeshByName("LOD3sp"); waterMaterial.reflectionTexture.renderList.push(duck); http://jsdo.it/cx20/UoJd It became very good. However, I must learn about light and a shadow more. I'll do my best. Thanks. 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.