Change CameraGizmo frustum color

Hey community

I’m setting up the CameraGizmo for my project and I’ve been wondering if there’s the option to change the frustum color ?

I have a scene setup with a white background, which makes the frustum non visible.
here’s a playground describing the situation.

Hello! This wasn’t possible, but it was quick to add: Add optional color option to camera gizmo by carolhmj · Pull Request #14502 · BabylonJS/Babylon.js (github.com)

5 Likes

Awesome ! :grin:

Thanks a lot @carolhmj :raised_hands:

Hey @carolhmj, I noticed that the optional color is applied on both the mesh and the frustum
maybe we can split the param to

options: {
    frustumColor: BABYLON.Color3,
    gizmoColor: BABYLON.Color3
 }