container_size is now global
This commit is contained in:
parent
4fd7716172
commit
b18ac88177
|
@ -400,7 +400,7 @@ function createBobombCameras(width, height) {
|
|||
|
||||
}
|
||||
|
||||
function initBobomb(camera, scene, static_path, container_size) {
|
||||
function initBobomb(camera, scene, static_path) {
|
||||
addLight(scene);
|
||||
var loader = new THREE.OBJMTLLoader();
|
||||
|
||||
|
@ -477,7 +477,7 @@ function resetWhompElements() {
|
|||
};
|
||||
}
|
||||
|
||||
function initWhomp(camera, scene, static_path, container_size) {
|
||||
function initWhomp(camera, scene, static_path) {
|
||||
addLight(scene);
|
||||
var loader = new THREE.OBJMTLLoader();
|
||||
|
||||
|
@ -559,7 +559,7 @@ function resetMountainElements() {
|
|||
}
|
||||
}
|
||||
|
||||
function initMountain(camera, scene, static_path, container_size) {
|
||||
function initMountain(camera, scene, static_path) {
|
||||
addLight(scene);
|
||||
var loader = new THREE.OBJMTLLoader();
|
||||
|
||||
|
|
|
@ -78,9 +78,9 @@ function init() {
|
|||
// Initialize pointer camera
|
||||
var camera1 = new PointerCamera(50, container_size.width() / container_size.height(), 0.01, 100000, renderer, container);
|
||||
|
||||
cameras = initBobomb(camera1, scene, static_path, container_size);
|
||||
// cameras = initWhomp(camera1, scene, static_path, container_size);
|
||||
// cameras = initMountain(camera1, scene, static_path, container_size);
|
||||
cameras = initBobomb(camera1, scene, static_path);
|
||||
// cameras = initWhomp(camera1, scene, static_path);
|
||||
// cameras = initMountain(camera1, scene, static_path);
|
||||
|
||||
// Add listeners
|
||||
initListeners();
|
||||
|
|
Loading…
Reference in New Issue