Skip to content

Commit ac9841f

Browse files
committed
EquirectangularToCubeGenerator: Clean up.
1 parent a3c1c73 commit ac9841f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/loaders/EquirectangularToCubeGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ THREE.CubemapGenerator = function ( renderer ) {
1111

1212
THREE.CubemapGenerator.prototype.fromEquirectangular = function ( texture, options ) {
1313

14+
options = options || {};
15+
1416
var scene = new THREE.Scene();
1517

1618
var shader = {
@@ -86,8 +88,6 @@ THREE.CubemapGenerator.prototype.fromEquirectangular = function ( texture, optio
8688

8789
scene.add( mesh );
8890

89-
options = options || {};
90-
9191
var resolution = options.resolution || 512;
9292

9393
var params = {

0 commit comments

Comments
 (0)