2019-04-15 19:06:21 +08:00

30 lines
774 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 配置选项
* @author tengge / https://github.com/tengge1
* @param {*} options 配置选项
*/
function Options(options = {}) {
// 服务端配置
this.server = options.server === undefined ? location.origin : options.server; // 服务端地址
this.sceneType = options.sceneType === undefined ? 'Empty' : options.sceneType; // 场景类型Empty, GIS
// 阴影配置
this.shadowMapType = THREE.PCFSoftShadowMap;
// gamma校正
this.gammaInput = false;
this.gammaOutput = false;
this.gammaFactor = 2.0;
// 滤镜
this.hueRotate = 0;
this.saturate = 1;
this.brightness = 1;
this.blur = 0;
this.contrast = 1;
this.grayscale = 0;
this.invert = 0;
this.sepia = 0;
}
export default Options;