function previewLightmaps(faceCount, lightmap, uvmap, tw, th, uvInfo) {

        var canvas, ctx;
        var ny = Math.ceil(Math.sqrt(faceCount));
        var offset = th / ny;

        canvas = getCanvas(tw, th, lightmap);
        ctx = canvas.getContext("2d");

        uvFun.previewLightmapsExtension(ctx, tw, th, uvmap, offset, ny, uvInfo);
        window.open(canvas.toDataURL("image/png"));

    }
/**
     * Opens a window with the current lightmap texture.
     * @param that
     * @param faceCount face count
     * @param lightmap lightmap texture - type: canvasArray type
     * @param uvmap uv coords
     * @param tw Texture width
     * @param th Texture height
     */
Opens a window with the current lightmap texture.
Opens a window with the current lightmap texture .
function previewLightmaps(faceCount, lightmap, uvmap, tw, th, uvInfo) {
        var canvas, ctx;
        var ny = Math.ceil(Math.sqrt(faceCount));
        var offset = th / ny;
        canvas = getCanvas(tw, th, lightmap);
        ctx = canvas.getContext("2d");
        uvFun.previewLightmapsExtension(ctx, tw, th, uvmap, offset, ny, uvInfo);
        window.open(canvas.toDataURL("image/png"));
    }
function previewLightmaps ( faceCount , lightmap , uvmap , tw , th , uvInfo ) { var canvas , ctx ; var ny = Math . ceil ( Math . sqrt ( faceCount ) ) ; var offset = th / ny ; canvas = getCanvas ( tw , th , lightmap ) ; ctx = canvas . getContext ( "2d" ) ; uvFun . previewLightmapsExtension ( ctx , tw , th , uvmap , offset , ny , uvInfo ) ; window . open ( canvas . toDataURL ( "image/png" ) ) ; }
Opens a window with the current lightmap texture.
Opens a window with the current lightmap texture .