shadeAllSurfaces(nShades, sFogColor, sFilter, fBrightness) {
        const ymax = this._height;
        const xmax = this._width;
        for (let y = 0; y < ymax; ++y) {
            for (let x = 0; x < xmax; ++x) {
                for (let nSide = 0; nSide < 6; ++nSide) {
                    this.shadeSurface(x, y, nSide, nShades, sFogColor, sFilter, fBrightness);
                }
            }
        }
    }
/**
     * recompute all surfaces if the shading parameters have changed
     */
recompute all surfaces if the shading parameters have changed
recompute all surfaces if the shading parameters have changed
shadeAllSurfaces(nShades, sFogColor, sFilter, fBrightness) {
        const ymax = this._height;
        const xmax = this._width;
        for (let y = 0; y < ymax; ++y) {
            for (let x = 0; x < xmax; ++x) {
                for (let nSide = 0; nSide < 6; ++nSide) {
                    this.shadeSurface(x, y, nSide, nShades, sFogColor, sFilter, fBrightness);
                }
            }
        }
    }
shadeAllSurfaces ( nShades , sFogColor , sFilter , fBrightness ) { const ymax = this . _height ; const xmax = this . _width ; for ( let y = 0 ; y < ymax ; ++ y ) { for ( let x = 0 ; x < xmax ; ++ x ) { for ( let nSide = 0 ; nSide < 6 ; ++ nSide ) { this . shadeSurface ( x , y , nSide , nShades , sFogColor , sFilter , fBrightness ) ; } } } }
recompute all surfaces if the shading parameters have changed
recompute all surfaces if the shading parameters have changed