Dad72 Posted February 19, 2017 Share Posted February 19, 2017 @NasimiAsl, Shadows and spot lights do not work on the ground. I gave you an example on the playground. http://www.babylonjs-playground.com/#E6OZX#87 terrain.material.specularColor = new BABYLON.Color3(0.5, 0.5, 0.5); terrain.material.specularPower = 64; do not work also And In fact the lighting has no effect on the ground, so the textures are pale. Thanks Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 20, 2017 Share Posted February 20, 2017 dear @Dad72 normaly all standard material options dose not work in customShader (and shaderBuilder too ) but for use this options in any custom shader 2 option is recomended 1. make new repository from StandardShader and mix that with ShaderBuilder is easy way to get that i remember one time i start mix that and that work finally but need time for make PR that may be toke 2 or 3 day 2. overwrite all option you need in your shader that is possible now but it is hard too retype all you need so if you have time for wait solution number 1 i can fix that cab be helpful a lot i wanna call that CustomMaterial Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted February 20, 2017 Share Posted February 20, 2017 I think directional light shadows does not work with any material now! Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 20, 2017 Author Share Posted February 20, 2017 I go to wait for your solution 1 Nasimi. Solution 2 will indeed be complicated to rewrite. Thanks again. NasimiAsl 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.