How to use scene.clearColor parameters with Babylon Viewer?

In other words, how to properly translate, for example,
scene.clearColor = new BABYLON.Color3(0.5, 0.8, 0.5);
into DOM configuration (or JSON) for Viewer?

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>BabylonJS Viewer - DOM usage</title>
    <style>
        babylon {
            width: 800px;
            height: 500px;
        }
    </style>
</head>

<body>
    <babylon extends="minimal">
        <model url="https://playground.babylonjs.com/scenes/BoomBox.glb">
            <scaling x="10" y="10" z="10"></scaling>
        </model>
        <camera>
            <behaviors>
                <auto-rotate type="0"></auto-rotate>
            </behaviors>
        </camera>
        <scene>
		<clear-color r="1" g="0", b="0"></clear-color>
	</scene>
    </babylon>
    <script src="https://cdn.babylonjs.com/viewer/babylon.viewer.js"></script>
</body>
2 Likes

Thank you very much!

1 Like