babylon-runtime/_r

scene fog seems not supported

Closed this issue · 1 comments

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");
        }
        /******/
});

may be the same problem as #20