Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Commit

Permalink
Bugfix. Now all of the examples work fine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaro-sama committed Jun 19, 2018
1 parent dcff132 commit 4b8ca02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions js/raw_box.js
Expand Up @@ -22,10 +22,10 @@ Game.init = function () {
this.sphere = new THREE.Mesh(
new THREE.SphereGeometry(1), this.materials.solid);
this.sphere.position.set(2, 2, 0);
// No need to call this:
// this.sphere.geometry.computeBoundingSphere();
// because it is done automatically by Three.js since it is needed for
// frustrum culling
// We now need to call this:
this.sphere.geometry.computeBoundingSphere();
// because while in the past it was done automatically by Three.js since it was needed for
// frustrum culling, now it seems to not work anymore like that.
this.sphereBBox = new THREE.Sphere(
this.sphere.position,
this.sphere.geometry.boundingSphere.radius);
Expand Down
8 changes: 4 additions & 4 deletions js/raw_point.js
Expand Up @@ -9,10 +9,10 @@ Game.init = function () {
this.sphere = new THREE.Mesh(
new THREE.SphereGeometry(1), this.materials.solid);
this.sphere.position.set(2, 2, 0);
// No need to call this:
// this.sphere.geometry.computeBoundingSphere();
// because it is done automatically by Three.js since it is needed for
// frustrum culling
// We now need to call this:
this.sphere.geometry.computeBoundingSphere();
// because while in the past it was done automatically by Three.js since it was needed for
// frustrum culling, now it seems to not work anymore like that.
this.sphereBBox = new THREE.Sphere(
this.sphere.position,
this.sphere.geometry.boundingSphere.radius);
Expand Down
8 changes: 4 additions & 4 deletions js/raw_sphere.js
Expand Up @@ -22,10 +22,10 @@ Game.init = function () {
this.sphere = new THREE.Mesh(
new THREE.SphereGeometry(1), this.materials.solid);
this.sphere.position.set(2, 2, 0);
// No need to call this:
// this.sphere.geometry.computeBoundingSphere();
// because it is done automatically by Three.js since it is needed for
// frustrum culling
// We now need to call this:
this.sphere.geometry.computeBoundingSphere();
// because while in the past it was done automatically by Three.js since it was needed for
// frustrum culling, now it seems to not work anymore like that.
this.sphereBBox = new THREE.Sphere(
this.sphere.position,
this.sphere.geometry.boundingSphere.radius);
Expand Down

0 comments on commit 4b8ca02

Please sign in to comment.