inxs Posted May 19, 2017 Share Posted May 19, 2017 Hello Guys, Im looking for a way to have the ground of my scene to be in the same color as the background. It is important that you cannot see where the plane/ground ends and it should receive shadows. I played around with the ambient and clear color but I could not find a way how to solve it. Thanks for your help! Jonny Quote Link to comment Share on other sites More sharing options...
brianzinn Posted May 19, 2017 Share Posted May 19, 2017 I think you'll want a skybox and plane to match. This isn't quite there, but how about something like this (if you pan around it stops working - the skybox needs to be fixed)? https://playground.babylonjs.com/#GWK0TQ#2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted May 19, 2017 Share Posted May 19, 2017 https://playground.babylonjs.com/#GWK0TQ#3 This, is close... Quote Link to comment Share on other sites More sharing options...
Sebavan Posted May 19, 2017 Share Posted May 19, 2017 We have a shadowOnly material in the materials library https://github.com/BabylonJS/Babylon.js/tree/master/materialsLibrary/src/shadowOnly It should enable you to do this. Pryme8 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted May 19, 2017 Share Posted May 19, 2017 Thanks @Sebavan didn't know about that one! The docs (https://doc.babylonjs.com/extensions/shadowonly) have a PG:http://www.babylonjs-playground.com/#1KF7V1 Quote Link to comment Share on other sites More sharing options...
inxs Posted May 29, 2017 Author Share Posted May 29, 2017 Hello guys, sorry for the late answer but I was on holidays Thank you all for the answer, this is exactly what I was looking for! GameMonetize 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.