alexoy Posted May 8, 2018 Share Posted May 8, 2018 Hello! I've got a strange behavior of a layerMask parameter. If I understand it right: 1. mesh.alwaysSelectAsActiveMesh = true - this is about mesh visibility and related calculations only. When we load a scene and this mesh is behind a player - it is not active, but becomes active when you turn around, and some things are calculated only when the mesh is active, right? 2. mesh.layerMask - this is about multiple cameras only, right? When you want some meshes be visible on specific camera only - you put needed layerMask for that. What I have here - https://www.babylonjs-playground.com/index.html#2GXKNW#30 - here are 2 cameras, 1'st normal standard, 2'nd takes the right half of the canvas and is in front of the first one. Why all meshes are visible on both cameras? If you comment out lines with alwaysSelectAsActiveMesh - 2'nd camera will show a sphere only, that is an expected result for me. That means alwaysSelectAsActiveMesh makes layerMask useless. Quote Link to comment Share on other sites More sharing options...
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.