Skip to content

Commit

Permalink
Merge pull request #3 from mrdoob/dev
Browse files Browse the repository at this point in the history
Update THREE JS fork
  • Loading branch information
Temdog007 authored Mar 5, 2019
2 parents 27403a0 + 9b72e6c commit 97f90bb
Show file tree
Hide file tree
Showing 101 changed files with 2,029 additions and 2,175 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Please also include a live example if possible. You can start from these templat
##### Three.js version

- [ ] Dev
- [ ] r101
- [ ] r102
- [ ] ...

##### Browser
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ three.js

#### JavaScript 3D library ####

The aim of the project is to create an easy to use, lightweight, 3D library. The library provides Canvas 2D, SVG, CSS3D and WebGL renderers.
The aim of the project is to create an easy to use, lightweight, 3D library with a default WebGL renderer. The library also provides Canvas 2D, SVG and CSS3D renderers in the examples.

[Examples](http://threejs.org/examples/) —
[Documentation](http://threejs.org/docs/) —
Expand Down
122 changes: 74 additions & 48 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

} );

var REVISION = '102dev';
var REVISION = '103dev';
var MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };
var CullFaceNone = 0;
var CullFaceBack = 1;
Expand Down Expand Up @@ -16351,7 +16351,7 @@
case 0x8b5c: return setValue4fm; // _MAT4

case 0x8b5e: case 0x8d66: return setValueT1; // SAMPLER_2D, SAMPLER_EXTERNAL_OES
case 0x8B5F: return setValueT3D1; // SAMPLER_3D
case 0x8b5f: return setValueT3D1; // SAMPLER_3D
case 0x8b60: return setValueT6; // SAMPLER_CUBE

case 0x1404: case 0x8b56: return setValue1i; // INT, BOOL
Expand Down Expand Up @@ -17693,7 +17693,7 @@

combine: material.combine,

vertexTangents: material.vertexTangents,
vertexTangents: ( material.normalMap && material.vertexTangents ),
vertexColors: material.vertexColors,

fog: !! fog,
Expand Down Expand Up @@ -20138,7 +20138,9 @@

// only perform resize for certain image types

if ( image instanceof ImageBitmap || image instanceof HTMLImageElement || image instanceof HTMLCanvasElement ) {
if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ||
( typeof ImageBitmap !== 'undefined' && image instanceof ImageBitmap ) ) {

var floor = needsPowerOfTwo ? _Math.floorPowerOfTwo : Math.floor;

Expand Down Expand Up @@ -21540,17 +21542,17 @@
* var fullHeight = h * 2;
*
* --A--
* camera.setOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
* --B--
* camera.setOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
* --C--
* camera.setOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
* --D--
* camera.setOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
* --E--
* camera.setOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
* --F--
* camera.setOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
* camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
*
* Note there is no reason monitors have to be the same size or in a grid.
*/
Expand Down Expand Up @@ -21958,9 +21960,11 @@

var userHeight = frameOfReferenceType === 'stage' ? 1.6 : 0;

if ( device === null ) {
if ( isPresenting() === false ) {

camera.position.set( 0, userHeight, 0 );
camera.rotation.set( 0, 0, 0 );

return camera;

}
Expand Down Expand Up @@ -22014,8 +22018,6 @@

poseObject.updateMatrixWorld();

if ( device.isPresenting === false ) return camera;

//

cameraL.near = camera.near;
Expand Down Expand Up @@ -22211,6 +22213,7 @@
function onSessionEnd() {

renderer.setFramebuffer( null );
renderer.setRenderTarget( renderer.getRenderTarget() ); // Hack #15830
animation.stop();

}
Expand Down Expand Up @@ -22420,7 +22423,7 @@
this.getStandingMatrix = function () {

console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new THREE.Matrix4();
return new Matrix4();

};

Expand Down Expand Up @@ -23090,7 +23093,7 @@

this.renderBufferDirect = function ( camera, fog, geometry, material, object, group ) {

var frontFaceCW = ( object.isMesh && object.normalMatrix.determinant() < 0 );
var frontFaceCW = ( object.isMesh && object.matrixWorld.determinant() < 0 );

state.setMaterial( material, frontFaceCW );

Expand Down Expand Up @@ -24846,16 +24849,11 @@

}() );

this.setTexture3D = ( function () {

// backwards compatibility: peel texture.texture
return function setTexture3D( texture, slot ) {

textures.setTexture3D( texture, slot );
this.setTexture3D = function ( texture, slot ) {

};
textures.setTexture3D( texture, slot );

}() );
};

this.setTexture = ( function () {

Expand Down Expand Up @@ -25120,23 +25118,27 @@

}

FogExp2.prototype.isFogExp2 = true;
Object.assign( FogExp2.prototype, {

FogExp2.prototype.clone = function () {
isFogExp2: true,

return new FogExp2( this.color, this.density );
clone: function () {

};
return new FogExp2( this.color, this.density );

FogExp2.prototype.toJSON = function ( /* meta */ ) {
},

return {
type: 'FogExp2',
color: this.color.getHex(),
density: this.density
};
toJSON: function ( /* meta */ ) {

};
return {
type: 'FogExp2',
color: this.color.getHex(),
density: this.density
};

}

} );

/**
* @author mrdoob / http://mrdoob.com/
Expand All @@ -25154,24 +25156,28 @@

}

Fog.prototype.isFog = true;
Object.assign( Fog.prototype, {

Fog.prototype.clone = function () {
isFog: true,

return new Fog( this.color, this.near, this.far );
clone: function () {

};
return new Fog( this.color, this.near, this.far );

Fog.prototype.toJSON = function ( /* meta */ ) {
},

return {
type: 'Fog',
color: this.color.getHex(),
near: this.near,
far: this.far
};
toJSON: function ( /* meta */ ) {

};
return {
type: 'Fog',
color: this.color.getHex(),
near: this.near,
far: this.far
};

}

} );

/**
* @author mrdoob / http://mrdoob.com/
Expand Down Expand Up @@ -40181,8 +40187,7 @@

for ( var i = 0; i < 6; i ++ ) {

renderTarget.activeCubeFace = i;
renderer.setRenderTarget( renderTarget );
renderer.setRenderTarget( renderTarget, i );

renderer.clear( color, depth, stencil );

Expand Down Expand Up @@ -47567,6 +47572,27 @@

//

Object.defineProperties( WebGLRenderTargetCube.prototype, {

activeCubeFace: {
set: function ( /* value */ ) {

console.warn( 'THREE.WebGLRenderTargetCube: .activeCubeFace has been removed. It is now the second parameter of WebGLRenderer.setRenderTarget().' );

}
},
activeMipMapLevel: {
set: function ( /* value */ ) {

console.warn( 'THREE.WebGLRenderTargetCube: .activeMipMapLevel has been removed. It is now the third parameter of WebGLRenderer.setRenderTarget().' );

}
}

} );

//

Object.defineProperties( WebGLRenderTarget.prototype, {

wrapS: {
Expand Down
Loading

0 comments on commit 97f90bb

Please sign in to comment.