Hello everyone, I am trying to create a Button3D that works as a billboard in a way that is not affected by Lights.
When I try to add it to the excluded meshes, the playgrounds throw the error:
s[a]._resyncLightSource is not a function
Playground: https://playground.babylonjs.com/#2YZFA0#390
Is it the right way to do it?
RaananW
November 16, 2023, 9:11am
2
Button is not a mesh, so it doesnât have the required functionality to work. You can do this:
Billboard Button3D Bug | Babylon.js Playground (babylonjs.com)
and remove button.mesh, which is the underlying mesh of the 3d button
3 Likes
mawa
November 16, 2023, 10:03am
3
I suppose another solution would be to change it to a holo button, then you can work it through the material by setting the âbackMaterialâ to âdisableLightingâ. Something like this:
2 Likes
Thank you for the answers @RaananW and @mawa ! I end up creating a custom 3d button.
1 Like