Quellcode durchsuchen

Switched to stripped down version of Three.js.

tags/1.0
Matthew Petroff vor 12 Jahren
Ursprung
Commit
91c07252d0
2 geänderte Dateien mit 12216 neuen und 552 gelöschten Zeilen
  1. +12197
    -533
      src/js/Three.js
  2. +19
    -19
      src/js/pannellum.js

+ 12197
- 533
src/js/Three.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 19
- 19
src/js/pannellum.js Datei anzeigen

@@ -90,28 +90,28 @@ function init()
panotexture.needsUpdate = true;
mesh = new THREE.Mesh(new THREE.Sphere(500,60,40), new THREE.MeshBasicMaterial({map:panotexture}));
mesh.scale.x = -1;
try
{
//try
//{
scene.addObject(mesh);
}
catch (event)
{
// show error message if canvas is not supported
document.getElementById('nocanvas').style.display = 'table';
}
//}
//catch (event)
//{
// // show error message if canvas is not supported
// document.getElementById('nocanvas').style.display = 'table';
//}
// try to use WebGL, else fallback to 2D canvas
try
{
//try
//{
renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth,window.innerHeight);
renderer.initWebGLObjects(scene);
}
catch (event)
//}
/*catch (event)
{
renderer = new THREE.CanvasRenderer();
renderer.setSize(window.innerWidth,window.innerHeight);
}
}*/
container.appendChild(renderer.domElement);
@@ -307,8 +307,8 @@ function render()

function renderinit()
{
try
{
//try
//{
camera.target.x = 0;
camera.target.y = 0;
camera.target.z = 0;
@@ -324,11 +324,11 @@ function renderinit()
// hide loading display
document.getElementById('load_box').style.display = 'none';
}
}
catch(event)
{
//}
//catch(event)
//{
// panorama not loaded
}
//}
}

function getURLParameter(name)


Laden…
Abbrechen
Speichern