babylon-runtime / _r

Code Less, Babylon More
https://babylon-runtime.github.io/
Apache License 2.0
8 stars 1 forks source link

scene fog seems not supported #19

Closed Vinc3r closed 4 years ago

Vinc3r commented 4 years ago

you can test using this code:

  _r.ready(function(){
        /* DEBUG FOG */

        var usePatch = false;
        if (usePatch) {
            _r.patch([{
                "scene": {
                    "fogMode": BABYLON.Scene.FOGMODE_LINEAR,
                    "fogStart": 1,
                    "fogEnd": 5,
                    "fogColor": "red"
                }
            }]);
        } else {

            _r.scene.fogMode = BABYLON.Scene.FOGMODE_LINEAR;
            _r.scene.fogStart = 1;
            _r.scene.fogEnd = 5;
            _r.scene.fogColor = _r.color("red");
        }
        /******/
});
fabsharp commented 4 years ago

may be the same problem as #20