yokewang Posted September 14, 2017 Share Posted September 14, 2017 I am following this example "http://www.babylonjs.com/demos/customrendertarget/" , but I want to keep the plane(with the texture) in the center but hide the outer balls. How can I archived this? I have try to set the balls visibility to false, but the texture in plane will clear too. Quote Link to comment Share on other sites More sharing options...
yokewang Posted September 14, 2017 Author Share Posted September 14, 2017 I worked it out after some research. //set camera layer mask camera.layerMask = 1; ... //set the sphere layer mask sphere.layerMask = 2; and then I got this: But I am not sure if it is the best way? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2017 Share Posted September 14, 2017 It is the way I would have suggested 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.