import * as tslib_1 from "tslib";
import { State as CoreState } from "@intelligentgraphics/ig.gfx.core";
import { WebGLRenderer } from "@intelligentgraphics/three";
export var createDefaultRenderer = function (_a) {
    var canvas = _a.canvas, _b = _a.clearColor, clearColor = _b === void 0 ? 0xffffff : _b;
    var renderer = new WebGLRenderer(tslib_1.__assign({ canvas: canvas, antialias: true, preserveDrawingBuffer: true }, CoreState.rendererOptions));
    renderer.shadowMap.enabled = false;
    renderer.setPixelRatio(window.devicePixelRatio);
    renderer.setClearColor(clearColor);
    return renderer;
};
