-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon_web_ar.js
34 lines (28 loc) · 1.02 KB
/
common_web_ar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//////////////////////////////////////////////////////////////////////////////////
// Init
//////////////////////////////////////////////////////////////////////////////////
// init webgl_renderer
var webgl_renderer_parameters = {
antialias: false,
alpha: true
};
var webgl_renderer = new THREE.WebGLRenderer(webgl_renderer_parameters);
var common; //AI/Thought of machine learning
//Used to setup a default value for now
function common_set_webgl_renderer_paramters( common ) {
return common["webgl_renderer_parameters"] = {
antialias: false,
alpha: true
};
}
//Should be flat before you use this function
function common_get_webgl_renderer_parameters( common ) {
return common["webgl_renderer_paramters"]
}
function common_webgl_renderer_set_clear_color ( common ) {
return common["webgl_renderer"].setClearColor(new THREE.Color('lightgrey'), 0);
}
function init_webgl_renderer( common ) {
return common_get_webgl_renderer_paramters(
common_set_webgl_renderer_parameters ( common ) );
}