language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
mrdoob
three.js
edd804017ab5c7f4bf86c3283fb981563dfe1be1.json
Set animation context only if window is available
src/renderers/WebGLRenderer.js
@@ -1029,7 +1029,8 @@ function WebGLRenderer( parameters ) { var animation = new WebGLAnimation(); animation.setAnimationLoop( onAnimationFrame ); - animation.setContext( typeof window !== 'undefined' ? window : null ); + + if ( typeof window !== 'undefined' ) animation.setContext( window ); this.setAnimation...
false
Other
mrdoob
three.js
dc6dc5a1ab9fa598ba5e5f81789bedcd796aedd0.json
Add docs for Box3Helper and PlaneHelper
docs/api/helpers/Box3Helper.html
@@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + [page:LineSegments] &rarr; + + <h1>[name]</h1> + + ...
true
Other
mrdoob
three.js
dc6dc5a1ab9fa598ba5e5f81789bedcd796aedd0.json
Add docs for Box3Helper and PlaneHelper
docs/api/helpers/PlaneHelper.html
@@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + [page:LineSegments] &rarr; + + <h1>[name]</h1> + + ...
true
Other
mrdoob
three.js
20b800c303fe1b949971f4114730873c095816f9.json
Add viewOffset.enabled flag
src/cameras/OrthographicCamera.js
@@ -56,6 +56,7 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ), if ( this.view === null ) { this.view = { + enabled: true, fullWidth: 1, fullHeight: 1, offsetX: 0, @@ -66,6 +67,7 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototyp...
true
Other
mrdoob
three.js
20b800c303fe1b949971f4114730873c095816f9.json
Add viewOffset.enabled flag
src/cameras/PerspectiveCamera.js
@@ -151,6 +151,7 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ), if ( this.view === null ) { this.view = { + enabled: true, fullWidth: 1, fullHeight: 1, offsetX: 0, @@ -161,6 +162,7 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.protot...
true
Other
mrdoob
three.js
33ecb129e2193b9f56c93cacabe20dc01b00167d.json
Hold maxMipMapLevel in textureProperties
src/renderers/WebGLRenderer.js
@@ -1975,7 +1975,7 @@ function WebGLRenderer( parameters ) { uniforms.reflectivity.value = material.reflectivity; uniforms.refractionRatio.value = material.refractionRatio; - uniforms.maxMipLevel.value = material.envMap.maxMipLevel; + uniforms.maxMipLevel.value = properties.get( material.envMap ).__maxMip...
true
Other
mrdoob
three.js
33ecb129e2193b9f56c93cacabe20dc01b00167d.json
Hold maxMipMapLevel in textureProperties
src/renderers/webgl/WebGLTextures.js
@@ -86,7 +86,8 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, _gl.generateMipmap( target ); var image = Array.isArray( texture.image ) ? texture.image[ 0 ] : texture.image; - texture.maxMipLevel = Math.max( Math.log2( Math.max( image.width, image.height ) ), texture.maxMipL...
true
Other
mrdoob
three.js
447130ed160595cc72167db1ed1cd5f4da656b1b.json
Add a PLY Exporter
examples/js/exporters/PLYExporter.js
@@ -0,0 +1,233 @@ +/** + * @author Garrett Johnson / http://gkjohnson.github.io/ + * https://github.com/gkjohnson/ply-exporter-js + * + * Usage: + * var exporter = new THREE.PLYExporter(); + * + * // second argument is an array of attributes to + * // exclude from the format ('color', 'uv', 'normal') + * var data =...
false
Other
mrdoob
three.js
abf100836dfd4a8612fd28346f21264bb4d910b2.json
Update FileLoader doc
docs/api/loaders/FileLoader.html
@@ -24,7 +24,7 @@ <h2>Example</h2> <code> var loader = new THREE.FileLoader(); - //load a text file a output the result to the console + //load a text file and output the result to the console loader.load( // resource URL 'example.txt', @@ -47,27 +47,25 @@ <h2>Example</h2> ); </code> - <h2...
false
Other
mrdoob
three.js
e73f4549ecc3978099d8a29c62f8c168887248f2.json
Remove redundant code getWireframeAttribute is only called with a bufferGeometry.
src/renderers/webgl/WebGLGeometries.js
@@ -32,17 +32,6 @@ function WebGLGeometries( gl, attributes, info ) { delete geometries[ geometry.id ]; - // TODO Remove duplicate code - - var attribute = wireframeAttributes[ geometry.id ]; - - if ( attribute ) { - - attributes.remove( attribute ); - delete wireframeAttributes[ geometry.id ]; - - } - ...
false
Other
mrdoob
three.js
869cd160f56a46d1ae22b973c107bcc08f79ce0f.json
Add missing default 'binary' option to GLTFLoader
examples/js/exporters/GLTFExporter.js
@@ -66,6 +66,7 @@ THREE.GLTFExporter.prototype = { parse: function ( input, onDone, options ) { var DEFAULT_OPTIONS = { + binary: false, trs: false, onlyVisible: true, truncateDrawRange: true,
false
Other
mrdoob
three.js
c11662b22ffb2babba1754854f0449f956411188.json
Fix inaccurate comments in Matrix4 These weren't really correct, since Matrix4 elements are stored in column-major order.
src/math/Matrix4.js
@@ -263,12 +263,12 @@ Object.assign( Matrix4.prototype, { } - // last column + // bottom row te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = 0; - // bottom row + // last column te[ 12 ] = 0; te[ 13 ] = 0; te[ 14 ] = 0; @@ -752,12 +752,12 @@ Object.assign( Matrix4.prototype, { te[ 6 ] = ( yz + wx ...
false
Other
mrdoob
three.js
30f103f0044d881d0c00166e58c80b770514d224.json
Update error message
src/geometries/ParametricGeometry.js
@@ -65,7 +65,7 @@ function ParametricBufferGeometry( func, slices, stacks ) { if ( func.length < 3 ) { - console.error( 'THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.' ); + console.error( 'THREE.ParametricGeometry: "func" now has a third mandatory parameter, the result vector ...
false
Other
mrdoob
three.js
03cdce01084b325f2ed061d4fe027dd160dd48a5.json
Add error message
src/core/DirectGeometry.js
@@ -139,6 +139,12 @@ Object.assign( DirectGeometry.prototype, { var hasSkinWeights = skinWeights.length === vertices.length; // + + if ( faces.length === 0 ) { + + console.error( 'THREE.DirectGeometry: Faceless geometries are not supported.' ); + + } for ( var i = 0; i < faces.length; i ++ ) {
false
Other
mrdoob
three.js
b55743ebcde87751606933bdbd6d45b25eb3a8be.json
Update error message
examples/js/exporters/PLYBinaryExporter.js
@@ -94,9 +94,8 @@ THREE.PLYBinaryExporter.prototype = { // as triangles) console.error( - 'PLYExporter: Failed to generate a valid PLY file because the ' + - 'number of faces is not divisible by 3. This can be caused by ' + - 'exporting a mix of triangle and non-triangle mesh types.' + 'PLYBinaryE...
true
Other
mrdoob
three.js
b55743ebcde87751606933bdbd6d45b25eb3a8be.json
Update error message
examples/js/exporters/PLYExporter.js
@@ -240,9 +240,8 @@ THREE.PLYExporter.prototype = { // as triangles) console.error( - 'PLYExporter: Failed to generate a valid PLY file because the ' + - 'number of faces is not divisible by 3. This can be caused by ' + - 'exporting a mix of triangle and non-triangle mesh types.' + 'PLYExporter: F...
true
Other
mrdoob
three.js
707d575b446a38f4971238ad6a74bb597fb2046c.json
MMDLoader doc: Minor update
docs/examples/loaders/MMDLoader.html
@@ -13,7 +13,7 @@ <h1>[name]</h1> <p class="desc"> A loader for <a href="http://www.geocities.jp/higuchuu4/index_e.htm"><em>MMD</em></a> resources. <br /><br /> [name] creates Three.js Objects from MMD resources as PMD, PMX, VMD, and VPD files. - You can easily handle MMD special features, as IK, Grant, and Ph...
false
Other
mrdoob
three.js
2df38a25db138dad149ddf7e9c8dbae4f9c8e872.json
Remove unused shadowmap chunks
src/renderers/shaders/ShaderLib/points_frag.glsl
@@ -6,7 +6,6 @@ uniform float opacity; #include <color_pars_fragment> #include <map_particle_pars_fragment> #include <fog_pars_fragment> -#include <shadowmap_pars_fragment> #include <logdepthbuf_pars_fragment> #include <clipping_planes_pars_fragment>
true
Other
mrdoob
three.js
2df38a25db138dad149ddf7e9c8dbae4f9c8e872.json
Remove unused shadowmap chunks
src/renderers/shaders/ShaderLib/points_vert.glsl
@@ -4,7 +4,6 @@ uniform float scale; #include <common> #include <color_pars_vertex> #include <fog_pars_vertex> -#include <shadowmap_pars_vertex> #include <logdepthbuf_pars_vertex> #include <clipping_planes_pars_vertex> @@ -23,7 +22,6 @@ void main() { #include <logdepthbuf_vertex> #include <clipping_planes_ve...
true
Other
mrdoob
three.js
0b39b0995b3688bfbef088ce3c3df98d4f447a6f.json
Update error message
src/geometries/ParametricGeometry.js
@@ -65,7 +65,7 @@ function ParametricBufferGeometry( func, slices, stacks ) { if ( func.length < 3 ) { - console.error( 'Parametric geometries now require modification of a third THREE.Vector3 argument.' ); + console.error( 'THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.' ); ...
false
Other
mrdoob
three.js
7851e77cefefdb589b3f844b23a73366e3488f64.json
Add error for new behavior
src/geometries/ParametricGeometry.js
@@ -63,6 +63,12 @@ function ParametricBufferGeometry( func, slices, stacks ) { var i, j; + if ( func.length < 3 ) { + + console.error( 'Parametric geometries now require modification of a third THREE.Vector3 argument.' ); + + } + // generate vertices, normals and uvs var sliceCount = slices + 1;
false
Other
mrdoob
three.js
fe78029f10ea7f29e096863ceedd030b0fef16fa.json
Fix typo in documentation
docs/api/cameras/OrthographicCamera.html
@@ -59,7 +59,7 @@ <h3>[name]( [page:Number left], [page:Number right], [page:Number top], [page:Nu <h2>Properties</h2> <div> See the base [page:Camera] class for common properties.<br> - Note that after making changes to most of these poperties you will have to call + Note that after making changes to ...
false
Other
mrdoob
three.js
9ed629301d0200448f335ce38b95a95c6a5f7363.json
Check parent of poseObject instead of camera
src/renderers/webvr/WebVRManager.js
@@ -147,7 +147,7 @@ function WebVRManager( renderer ) { cameraL.matrixWorldInverse.fromArray( frameData.leftViewMatrix ); cameraR.matrixWorldInverse.fromArray( frameData.rightViewMatrix ); - var parent = camera.parent; + var parent = poseObject.parent; if ( parent !== null ) {
false
Other
mrdoob
three.js
6d9c22a3bc346f34ad779bada397db6f5c691760.json
Update uniforms only when onWindowResize
examples/webgl_raymarching_reflect.html
@@ -345,8 +345,6 @@ if ( camera.position.y < 0 ) camera.position.y = 0; - material.uniforms.resolution.value.set( canvas.width, canvas.height ); - material.uniforms.cameraProjectionMatrixInverse.value.getInverse( camera.projectionMatrix ); renderer.render( scene, camera ); @@ -377,6 +375,9 @@ ...
false
Other
mrdoob
three.js
881b25b58d0c07324f6fb182bca520d8ec60ffc7.json
Update ProjectionMatrix on change aspect
examples/webgl_raymarching_reflect.html
@@ -202,10 +202,13 @@ void main(void) { // screen position - vec2 screenPos = ( gl_FragCoord.xy * 2.0 - resolution ) / min( resolution.x, resolution.y ); + vec2 screenPos = ( gl_FragCoord.xy * 2.0 - resolution ) / resolution; - // convert ray direction from screen coordinate to world coordinate - ...
false
Other
mrdoob
three.js
5aea41dfaa236eaf74f95479f714e6ebbf648774.json
Use negative scale to mirror model
examples/webgl_loader_x.html
@@ -163,17 +163,22 @@ //download Model file - loader.load( [ 'models/xfile/SSR06_model.x', { zflag: true } ], function ( object ) { + loader.load( [ 'models/xfile/SSR06_model.x', { zflag: false } ], function ( object ) { for ( var i = 0; i < object.models.length...
false
Other
mrdoob
three.js
fd01184c9415a3f2f54dec29adf918ac53ec0ade.json
Rename some glsl variables and functions
examples/webgl_raymarching_reflect.html
@@ -58,7 +58,7 @@ const vec3 lightDir = vec3( -0.48666426339228763, 0.8111071056538127, -0.3244428422615251 ); // distance functions - vec3 onRep( vec3 p, float interval ) { + vec3 opRep( vec3 p, float interval ) { vec2 q = mod( p.xz, interval ) - interval * 0.5; return vec3( q.x, p.y, q.y ); ...
false
Other
mrdoob
three.js
29b1e20fa36ff70da3d121f2b16d6b616b02ae2c.json
Get ray by decomposing the camera matrix
examples/webgl_raymarching_reflect.html
@@ -46,8 +46,12 @@ precision highp float; uniform vec2 resolution; - uniform vec3 cameraPos; - uniform vec3 cameraDir; + + uniform mat4 viewMatrix; + uniform vec3 cameraPosition; + + uniform mat4 cameraWorldMatrix; + uniform mat4 cameraProjectionMatrixInverse; const float EPS = 0.01; con...
false
Other
mrdoob
three.js
0ed66f033eb830d1bce2ddd460842aa6b2b5a615.json
Fix import spacing as requested in #12781
test/unit/src/geometries/ShapeGeometry.tests.js
@@ -8,7 +8,7 @@ import { ShapeBufferGeometry } from '../../../../src/geometries/ShapeGeometry'; -import {Shape} from '../../../../src/extras/core/Shape'; +import { Shape } from '../../../../src/extras/core/Shape'; export default QUnit.module( 'Geometries', () => {
true
Other
mrdoob
three.js
0ed66f033eb830d1bce2ddd460842aa6b2b5a615.json
Fix import spacing as requested in #12781
test/unit/src/geometries/TubeGeometry.tests.js
@@ -8,8 +8,8 @@ import { TubeBufferGeometry } from '../../../../src/geometries/TubeGeometry'; -import {LineCurve3} from '../../../../src/extras/curves/LineCurve3' -import {Vector3} from '../../../../src/math/Vector3' +import { LineCurve3 } from '../../../../src/extras/curves/LineCurve3' +import { Vector3 } from '....
true
Other
mrdoob
three.js
f5417fac65c89ee5ef52ebbea21e38dbbc782fe0.json
Apply the review comment
examples/js/loaders/GLTFLoader.js
@@ -1083,7 +1083,7 @@ THREE.GLTFLoader = ( function () { * @param {THREE.Mesh} mesh * @param {GLTF.Mesh} meshDef * @param {GLTF.Primitive} primitiveDef - * @param {Array} accessors + * @param {Array<THREE.BufferAttribute>} accessors */ function addMorphTargets( mesh, meshDef, primitiveDef, accessors ) {...
false
Other
mrdoob
three.js
1ef8062877113d4e2c7b473368d2f93536e49359.json
Fix intersect test parameters to translate.
src/math/Box3.js
@@ -468,6 +468,12 @@ Object.assign( Box3.prototype, { translate: function ( offset ) { + if ( ! offset.isVector3 ) { + + throw new Error( 'THREE.Box3: .translate() expects a Vector3.' ); + + } + this.min.add( offset ); this.max.add( offset );
true
Other
mrdoob
three.js
1ef8062877113d4e2c7b473368d2f93536e49359.json
Fix intersect test parameters to translate.
test/unit/src/math/Frustum.tests.js
@@ -13,7 +13,7 @@ import { Matrix4 } from '../../../../src/math/Matrix4'; import { Box3 } from '../../../../src/math/Box3'; import { Mesh } from '../../../../src/objects/Mesh'; import { BoxGeometry } from '../../../../src/geometries/BoxGeometry'; -import { zero3, one3 } from './Constants.tests'; +import { zero3, one...
true
Other
mrdoob
three.js
e1174d34fae5eaf3a6429698e53416f946972db2.json
Provide shape necessary for ShapeGeometry.
test/unit/src/geometries/ShapeGeometry.tests.js
@@ -8,17 +8,22 @@ import { ShapeBufferGeometry } from '../../../../src/geometries/ShapeGeometry'; +import {Shape} from '../../../../src/extras/core/Shape'; + export default QUnit.module( 'Geometries', () => { QUnit.module( 'ShapeGeometry', ( hooks ) => { var geometries = undefined; hooks.beforeEach( f...
false
Other
mrdoob
three.js
58f9d1b8dc6e1c2536828a1540e173f472c72780.json
Provide path necessary for TubeGeometry tests.
test/unit/src/geometries/TubeGeometry.tests.js
@@ -8,17 +8,20 @@ import { TubeBufferGeometry } from '../../../../src/geometries/TubeGeometry'; +import {LineCurve3} from '../../../../src/extras/curves/LineCurve3' +import {Vector3} from '../../../../src/math/Vector3' + export default QUnit.module( 'Geometries', () => { QUnit.module( 'TubeGeometry', ( hooks ...
false
Other
mrdoob
three.js
f9cfac468aefcc815a41fa0a4f619d42431cbd9f.json
separate the logic of touchevent and mouse event
examples/js/controls/DragControls.js
@@ -30,15 +30,23 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) { _domElement.addEventListener( 'mousemove', onDocumentMouseMove, false ); _domElement.addEventListener( 'mousedown', onDocumentMouseDown, false ); - _domElement.addEventListener( 'mouseup', onDocumentMouseUp, false ); + _dom...
false
Other
mrdoob
three.js
35b6ee854445852ed80c1b7dc16768fc49f8a16e.json
Add material attributes and maps
examples/gltf_exporter.html
@@ -52,7 +52,7 @@ var container, stats; - var camera, scene, renderer; + var camera, scene1, renderer; init(); animate(); @@ -65,16 +65,16 @@ camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 2000 ); camera.position.y = 400; - scene = new THREE.Sce...
true
Other
mrdoob
three.js
35b6ee854445852ed80c1b7dc16768fc49f8a16e.json
Add material attributes and maps
examples/js/exporters/GLTFExporter.js
@@ -40,7 +40,7 @@ THREE.GLTFExporter.prototype = { /** * Compare two arrays */ - function sameArray ( array1, array2 ) { + function equalArray ( array1, array2 ) { return ( array1.length === array2.length ) && array1.every( function( element, index ) { return element === array2[ index ]; });...
true
Other
mrdoob
three.js
1f2c1d86a956bb494c63e27853f34fc55333ee59.json
Add support for cameras
examples/gltf_exporter.html
@@ -142,12 +142,15 @@ object2.position.set( 0, 0, 50 ); object2.rotation.set( 0, 45, 0 ); object2.name = "SubCube"; - object.add(object2); + object.add( object2 ); scene.add( object ); scene.add( camera ); + var cameraOrtho = new THREE.OrthographicCamera( window.innerWidth / - 2,...
true
Other
mrdoob
three.js
1f2c1d86a956bb494c63e27853f34fc55333ee59.json
Add support for cameras
examples/js/exporters/GLTFExporter.js
@@ -403,6 +403,55 @@ THREE.GLTFExporter.prototype = { return outputJSON.meshes.length - 1; } + /** + * Process camera + * @param {THREE.Camera} camera Camera to process + * @return {Integer} Index of the processed mesh in the "camera" array + */ + function processCamera( camera ) { + if ( !ou...
true
Other
mrdoob
three.js
c71735635ce996c42446bc48024efa4a211e2c1d.json
Fix usage in the editor
editor/js/Menubar.File.js
@@ -204,9 +204,11 @@ Menubar.File = function ( editor ) { var exporter = new THREE.GLTFExporter(); - exporter.parse(editor.scene, function(result){ - saveString( JSON.stringify(result,null, 2), 'scene.gltf' ); - }); + exporter.parse( editor.scene, function ( result ) { + + saveString( JSON.stringify( resu...
true
Other
mrdoob
three.js
c71735635ce996c42446bc48024efa4a211e2c1d.json
Fix usage in the editor
examples/gltf_exporter.html
@@ -187,12 +187,11 @@ object.position.set( 400, 0, -200 ); scene.add( object ); */ + var gltfExporter = new THREE.GLTFExporter(); - // gltfExporter.parse(scene); - //console.log(JSON.stringify(gltfExporter.parse(scene), null, 2)); - gltfExporter.parse(scene, function(result){ - saveString( ...
true
Other
mrdoob
three.js
c71735635ce996c42446bc48024efa4a211e2c1d.json
Fix usage in the editor
examples/js/exporters/GLTFExporter.js
@@ -2,7 +2,6 @@ * @author fernandojsg / http://fernandojsg.com */ - // @TODO Should be accessible from the renderer itself instead of duplicating it here function paramThreeToGL( p ) { @@ -56,20 +55,20 @@ THREE.GLTFExporter.prototype = { constructor: THREE.GLTFExporter, - parse: function ( input, option...
true
Other
mrdoob
three.js
2d115090ce2bbfb04303fcce59206d40872f6bd0.json
Update innerRadius defaults in RingGeometry docs
docs/api/geometries/RingBufferGeometry.html
@@ -44,7 +44,7 @@ <h2>Constructor</h2> <h3>[name]([page:Float innerRadius], [page:Float outerRadius], [page:Integer thetaSegments], [page:Integer phiSegments], [page:Float thetaStart], [page:Float thetaLength])</h3> <div> - innerRadius β€” Default is 0, but it doesn't work right when innerRadius is set to 0.<br ...
true
Other
mrdoob
three.js
2d115090ce2bbfb04303fcce59206d40872f6bd0.json
Update innerRadius defaults in RingGeometry docs
docs/api/geometries/RingGeometry.html
@@ -44,7 +44,7 @@ <h2>Constructor</h2> <h3>[name]([page:Float innerRadius], [page:Float outerRadius], [page:Integer thetaSegments], [page:Integer phiSegments], [page:Float thetaStart], [page:Float thetaLength])</h3> <div> - innerRadius β€” Default is 0, but it doesn't work right when innerRadius is set to 0.<br ...
true
Other
mrdoob
three.js
842cd215710551ffa753340fdf27475fc16d5ab8.json
remove unused variables
examples/js/controls/TransformControls.js
@@ -439,13 +439,6 @@ THREE.TransformGizmo.prototype.update.apply( this, arguments ); - var group = { - - handles: this[ "handles" ], - pickers: this[ "pickers" ] - - }; - var tempMatrix = new THREE.Matrix4(); var worldRotation = new THREE.Euler( 0, 0, 1 ); var tempQuaternion = new THREE.Qu...
false
Other
mrdoob
three.js
370b0e859821621b890b12bc8016b073d7a29789.json
convert preRotations with builtin function
examples/js/loaders/FBXLoader.js
@@ -1821,7 +1821,7 @@ if ( 'PreRotation' in node.properties ) { - var preRotations = new THREE.Euler().setFromVector3( parseVector3( node.properties.PreRotation ).multiplyScalar( Math.PI / 180 ), 'ZYX' ); + var preRotations = new THREE.Euler().fromArray( node.properties.PreRotation.value.map( THREE.Math.d...
false
Other
mrdoob
three.js
524f3f91b03e6ed853c31903513107133501a683.json
reset example more
examples/webgl_loader_fbx.html
@@ -182,4 +182,4 @@ </script> </body> -</html> \ No newline at end of file +</html>
false
Other
mrdoob
three.js
7f79277e62ed6acd3f1feb640481f35280803de2.json
update the doc
docs/examples/renderers/CSS3DRenderer.html
@@ -16,7 +16,6 @@ <h1>[name]</h1> <ul> <li>It's not possible to use the material system of *three.js*.</li> <li>It's also not possible to use geometries.</li> - <li>Only [page:PerspectiveCamera] is supported right now.</li> </ul> So [name] is just focused on ordinary DOM elements. These element...
false
Other
mrdoob
three.js
dc11dedc4b06760b3046191e1c5e079a3404837e.json
Revert the change of WebGLRenderer.setRenderTarget
src/renderers/WebGLRenderer.js
@@ -2436,7 +2436,7 @@ function WebGLRenderer( parameters ) { }; - this.setRenderTarget = function ( renderTarget, optType ) { + this.setRenderTarget = function ( renderTarget ) { _currentRenderTarget = renderTarget; @@ -2478,7 +2478,7 @@ function WebGLRenderer( parameters ) { if ( _currentFramebuffer ...
false
Other
mrdoob
three.js
325d8e9c371332f5695e56318f0098655f38e619.json
Add webgl2 option to WebGLRenderer
src/renderers/WebGLRenderer.js
@@ -66,6 +66,7 @@ function WebGLRenderer( parameters ) { _premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true, _preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefined ? parameters.preserveDrawingBuffer : false, _powerPreference = parameters.po...
false
Other
mrdoob
three.js
9145b2a3411377fecef33ef2311730cfcc709a88.json
Fix a broken link in WebGLRenderer
docs/api/renderers/WebGLRenderer.html
@@ -245,7 +245,7 @@ <h3>[property:Boolean shadowMap.needsUpdate]</h3> <h3>[property:Integer shadowMap.type]</h3> <div>Defines shadow map type (unfiltered, percentage close filtering, percentage close filtering with bilinear filtering in shader)</div> - <div>Options are THREE.BasicShadowMap, THREE.PCFShadowMap ...
false
Other
mrdoob
three.js
d4f3a388f79123f7221e6ff08d2454c73f5d4e8e.json
Reduce memory usage
examples/js/pmrem/PMREMCubeUVPacker.js
@@ -40,13 +40,14 @@ THREE.PMREMCubeUVPacker = function ( cubeTextureLods, numLods ) { this.CubeUVRenderTarget = new THREE.WebGLRenderTarget( size, size, params ); this.CubeUVRenderTarget.texture.name = "PMREMCubeUVPacker.cubeUv"; this.CubeUVRenderTarget.texture.mapping = THREE.CubeUVReflectionMapping; - this.came...
false
Other
mrdoob
three.js
3f0dfd9f1f78af1f3be23c61cd3d4ec8574560dd.json
Add webgl2 to Detector
examples/js/Detector.js
@@ -18,6 +18,19 @@ var Detector = { } + } )(), + webgl2: ( function () { + + try { + + var canvas = document.createElement( 'canvas' ); return !! ( window.WebGL2RenderingContext && ( canvas.getContext( 'webgl2' ) ) ); + + } catch ( e ) { + + return false; + + } + } )(), workers: !! window.Worker, fi...
false
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/WebGLRenderer.js
@@ -211,6 +211,8 @@ function WebGLRenderer( parameters ) { } + _gl.isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof WebGL2RenderingContext; + // Some experimental-webgl implementations do not have getShaderPrecisionFormat if ( _gl.getShaderPrecisionFormat === undefined ) {
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLBufferRenderer.js
@@ -4,8 +4,6 @@ function WebGLBufferRenderer( gl, extensions, info ) { - var isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext; - var mode; function setMode( value ) { @@ -39,11 +37,11 @@ function WebGLBufferRenderer( gl, extensions, info ) { count = posit...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLExtensions.js
@@ -6,8 +6,6 @@ function WebGLExtensions( gl ) { var extensions = {}; - var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ); - return { get: function ( name ) { @@ -24,7 +22,7 @@ function WebGLExtensions( gl ) { case 'WEBGL_depth_texture': - ...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLIndexedBufferRenderer.js
@@ -4,8 +4,6 @@ function WebGLIndexedBufferRenderer( gl, extensions, info ) { - var isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext; - var mode; function setMode( value ) { @@ -42,7 +40,7 @@ function WebGLIndexedBufferRenderer( gl, extensions, info ) { } ...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLProgram.js
@@ -206,8 +206,6 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters var gl = renderer.context; - var isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext; - var defines = material.defines; var vertexShader = shader.vertexShader; @@ ...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLState.js
@@ -7,8 +7,6 @@ import { Vector4 } from '../../math/Vector4.js'; function WebGLState( gl, extensions, utils ) { - var isWebGL2 = typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext; - function ColorBuffer() { var locked = false; @@ -432,7 +430,7 @@ function WebGLState( gl, ...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLTextures.js
@@ -7,7 +7,6 @@ import { _Math } from '../../math/Math.js'; function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info ) { - var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof WebGL2RenderingContext ); /* global WebGL2RenderingContext */ var _videoTexture...
true
Other
mrdoob
three.js
5219c0f1207c67495c146fe36f90c9b224801f85.json
Save isWebGL2 to WebGL context object
src/renderers/webgl/WebGLUtils.js
@@ -6,8 +6,6 @@ import { MaxEquation, MinEquation, RGBA_ASTC_4x4_Format, RGBA_ASTC_5x4_Format, R function WebGLUtils( gl, extensions ) { - var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ); - function convert( p ) { var extension; @@ -38,7 +36,7 @@ func...
true
Other
mrdoob
three.js
4ec384f36981a9e5e4b4104f5e3e729be9123a60.json
Remove trailing space
src/renderers/webgl/WebGLExtensions.js
@@ -54,7 +54,7 @@ function WebGLExtensions( gl ) { default: - if ( isWebGL2 && + if ( isWebGL2 && [ 'ANGLE_instanced_arrays', 'OES_texture_float', 'OES_texture_half_float',
false
Other
mrdoob
three.js
ddc4893e3951c91f0120158bd44079fbacb92d56.json
Enable webgl2_sandbox example
examples/files.js
@@ -303,11 +303,9 @@ var files = { "webgl deferred": [ "webgldeferred_animation" ], - /* "webgl2": [ "webgl2_sandbox" ], - */ "webaudio": [ "webaudio_sandbox", "webaudio_timing",
true
Other
mrdoob
three.js
ddc4893e3951c91f0120158bd44079fbacb92d56.json
Enable webgl2_sandbox example
examples/webgl2_sandbox.html
@@ -34,17 +34,8 @@ <body> <div id="info"><a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - webgl2 sandbox.</div> - <script type="module"> - - import { PerspectiveCamera } from '../src/cameras/PerspectiveCamera.js'; - import { SphereBufferGeometry } from '../src/geometries/SphereGeom...
true
Other
mrdoob
three.js
f069efb0d79b7b9adadc30005d7c832543a68db5.json
Fix cinematic camera example
examples/js/cameras/CinematicCamera.js
@@ -151,7 +151,8 @@ THREE.CinematicCamera.prototype.initPostProcessing = function () { fragmentShader: bokeh_shader.fragmentShader, defines: { RINGS: this.shaderSettings.rings, - SAMPLES: this.shaderSettings.samples + SAMPLES: this.shaderSettings.samples, + DEPTH_PACKING: this.material_depth.depth...
false
Other
mrdoob
three.js
51dad3fe3899b3d463b3d6f765a4412833c618f3.json
Fix HalfFloatType bug in WebGLUtils
src/renderers/webgl/WebGLUtils.js
@@ -38,9 +38,11 @@ function WebGLUtils( gl, extensions ) { if ( p === HalfFloatType ) { + if ( isWebGL2 ) return gl.HALF_FLOAT; + extension = extensions.get( 'OES_texture_half_float' ); - return isWebGL2 ? gl.HALF_FLOAT : extension.HALF_FLOAT_OES; + if ( extension !== null ) return extension.HALF_FLO...
false
Other
mrdoob
three.js
89c1738ac98a96bfdfdb299c5ec85f464a6a8889.json
Update WebGLTextures for gl.RGB
src/renderers/webgl/WebGLTextures.js
@@ -101,8 +101,12 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, if ( ! _isWebGL2 ) return glFormat; - if ( glFormat === _gl.RGBA && glType === _gl.FLOAT ) return _gl.RGBA32F; - if ( glFormat === _gl.RGBA && glType === _gl.HALF_FLOAT ) return _gl.RGBA16F; + if ( glFormat =...
false
Other
mrdoob
three.js
cda93373717896d805eaceffb277a0c8d7357cb5.json
Add test/unit/three.*.unit.js to .gitignore
.gitignore
@@ -7,3 +7,4 @@ node_modules npm-debug.log .jshintrc .vs/ +test/unit/three.*.unit.js
false
Other
mrdoob
three.js
667bd407af6b7b1142137f8098b9e99eb8e35964.json
move empty callbacks to prototype
src/core/InterleavedBuffer.js
@@ -12,8 +12,6 @@ function InterleavedBuffer( array, stride ) { this.dynamic = false; this.updateRange = { offset: 0, count: - 1 }; - this.onUploadCallback = function () {}; - this.version = 0; } @@ -32,6 +30,8 @@ Object.assign( InterleavedBuffer.prototype, { isInterleavedBuffer: true, + onUploadCallba...
true
Other
mrdoob
three.js
667bd407af6b7b1142137f8098b9e99eb8e35964.json
move empty callbacks to prototype
src/loaders/Loader.js
@@ -24,13 +24,7 @@ import { Color } from '../math/Color.js'; * @author alteredq / http://alteredqualia.com/ */ -function Loader() { - - this.onLoadStart = function () {}; - this.onLoadProgress = function () {}; - this.onLoadComplete = function () {}; - -} +function Loader() {} Loader.Handlers = { @@ -69,6 +6...
true
Other
mrdoob
three.js
366450a2e98642a1bb8362eee4dcc9ae9743b27c.json
remove uuid from BufferAttribute etc.
src/core/BufferAttribute.js
@@ -2,7 +2,6 @@ import { Vector4 } from '../math/Vector4.js'; import { Vector3 } from '../math/Vector3.js'; import { Vector2 } from '../math/Vector2.js'; import { Color } from '../math/Color.js'; -import { _Math } from '../math/Math.js'; /** * @author mrdoob / http://mrdoob.com/ @@ -16,7 +15,6 @@ function Buffe...
true
Other
mrdoob
three.js
366450a2e98642a1bb8362eee4dcc9ae9743b27c.json
remove uuid from BufferAttribute etc.
src/core/InterleavedBuffer.js
@@ -1,13 +1,10 @@ -import { _Math } from '../math/Math.js'; /** * @author benaadams / https://twitter.com/ben_a_adams */ function InterleavedBuffer( array, stride ) { - this.uuid = _Math.generateUUID(); - this.array = array; this.stride = stride; this.count = array !== undefined ? array.length / strid...
true
Other
mrdoob
three.js
366450a2e98642a1bb8362eee4dcc9ae9743b27c.json
remove uuid from BufferAttribute etc.
src/core/InterleavedBufferAttribute.js
@@ -1,13 +1,10 @@ -import { _Math } from '../math/Math.js'; /** * @author benaadams / https://twitter.com/ben_a_adams */ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) { - this.uuid = _Math.generateUUID(); - this.data = interleavedBuffer; this.itemSize = itemSize;...
true
Other
mrdoob
three.js
01cae4ee609016d45e2842595502fa28331fd5d0.json
remove uuid from WebGLRenderTarget
src/renderers/WebGLRenderTarget.js
@@ -2,7 +2,6 @@ import { EventDispatcher } from '../core/EventDispatcher.js'; import { Texture } from '../textures/Texture.js'; import { LinearFilter } from '../constants.js'; import { Vector4 } from '../math/Vector4.js'; -import { _Math } from '../math/Math.js'; /** * @author szimek / https://github.com/szimek...
false
Other
mrdoob
three.js
775c192b588bb4c6a3cd5b5b127346135af34c8f.json
Update Vector3.html to be in alphabetical order. "N" comes after "M"
docs/api/math/Vector3.html
@@ -273,15 +273,6 @@ <h3>[method:Vector3 lerpVectors]( [param:Vector3 v1], [param:Vector3 v2], [param - alpha = 0 will be [page:Vector3 v1], and alpha = 1 will be [page:Vector3 v2]. </div> - <h3>[method:Vector3 negate]()</h3> - <div>Inverts this vector - i.e. sets x = -x, y = -y and z = -z.</div> - - <h3>[me...
false
Other
mrdoob
three.js
b9d316dfe8bec5f0a009f4a0b4a63d312082b523.json
Add physicallyCorrectLights = true
examples/webgl_loader_gltf_extensions.html
@@ -174,6 +174,7 @@ renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); renderer.gammaOutput = true; + renderer.physicallyCorrectLights = true; if (sceneInfo.shadows) { renderer.shadowMap.enabled = true;
false
Other
mrdoob
three.js
090ce2f6d60d66efd947f371b6ac239d6ca1dc76.json
add special case for uInt8Array for extra speed
examples/js/loaders/EXRLoader.js
@@ -134,9 +134,9 @@ THREE.EXRLoader.prototype._parser = function ( buffer ) { } } - function getBits(nBits, c, lc, inDataView, inOffset) { + function getBits(nBits, c, lc, uInt8Array, inOffset) { while (lc < nBits) { - c = (c << 8) | parseUint8(inDataView, inOffset); + c = (c << 8) | parseUint8Array(uInt8...
false
Other
mrdoob
three.js
552d0ed3ffcb75d639ac334d95b19da4058babc1.json
cache new DataView to increase performance
examples/js/loaders/EXRLoader.js
@@ -262,17 +262,17 @@ THREE.EXRLoader.prototype._parser = function ( buffer ) { return true; } - function getChar(c, lc, inBuffer, inOffset) { - c = (c << 8) | parseUint8(inBuffer, inOffset); + function getChar(c, lc, inDataView, inOffset) { + c = (c << 8) | parseUint8DataView(inDataView, inOffset); lc += 8...
false
Other
mrdoob
three.js
a4b8c30be485b4ff661c60151f84ecb57e441227.json
add renderer prop in onBeforeCompile
src/renderers/WebGLRenderer.js
@@ -1522,7 +1522,8 @@ function WebGLRenderer( parameters ) { name: material.type, uniforms: UniformsUtils.clone( shader.uniforms ), vertexShader: shader.vertexShader, - fragmentShader: shader.fragmentShader + fragmentShader: shader.fragmentShader, + renderer: _this }; } else { @...
false
Other
mrdoob
three.js
e03835d1f2ad4eedeada071fd57aa2ce6e9e487d.json
fix normal_fragment_* examples
examples/js/nodes/materials/PhongNode.js
@@ -152,7 +152,7 @@ THREE.PhongNode.prototype.build = function ( builder ) { var output = [ // prevent undeclared normal - "#include <normal_fragment>", + "#include <normal_fragment_begin>", // prevent undeclared material " BlinnPhongMaterial material;",
true
Other
mrdoob
three.js
e03835d1f2ad4eedeada071fd57aa2ce6e9e487d.json
fix normal_fragment_* examples
examples/js/nodes/materials/StandardNode.js
@@ -191,7 +191,7 @@ THREE.StandardNode.prototype.build = function ( builder ) { var output = [ // prevent undeclared normal - " #include <normal_fragment>", + " #include <normal_fragment_begin>", // prevent undeclared material " PhysicalMaterial material;",
true
Other
mrdoob
three.js
e9c7f2d74d66e785337b72e95ad90b485b68231f.json
Update GLTFLoader doc for Draco
docs/examples/loaders/GLTFLoader.html
@@ -49,7 +49,7 @@ <h2>Example</h2> var loader = new THREE.GLTFLoader(); // Optional: Provide a DRACOLoader instance to decode compressed mesh data - THREE.DRACOLoader.setDecoderPath( '/examples/js/loaders/draco' ); + THREE.DRACOLoader.setDecoderPath( '/examples/js/libs/draco' ); loader.setDRACOLoader(...
false
Other
mrdoob
three.js
19456c6b7e939b32f2953efe9687bdd98dbc6f74.json
Add description of .asset into GLTFLoader doc
docs/examples/loaders/GLTFLoader.html
@@ -65,6 +65,7 @@ <h2>Example</h2> gltf.scene; // THREE.Scene gltf.scenes; // Array&lt;THREE.Scene&gt; gltf.cameras; // Array&lt;THREE.Camera&gt; + gltf.asset; // Object }, // called when loading is in progresses @@ -146,7 +147,7 @@ <h3>[method:null parse]( [param:ArrayBuffer data], [p...
false
Other
mrdoob
three.js
05437e236ed552fc42fef12cea69bb35ce2dd818.json
Update Lensflare.js to properly dispose textures Update Lensflare.js so to be able to properly dispose the textures otherwise we have memory issues... In order to properly dispose the textures added into the Lensflare ( new THREE.Lensflare() ) by the ( new THREE.LensflareElement() ) we must place them into the obj...
examples/js/objects/Lensflare.js
@@ -127,7 +127,7 @@ THREE.Lensflare = function () { // - var elements = []; + this.elements = []; var shader = THREE.LensflareElement.Shader; @@ -150,7 +150,7 @@ THREE.Lensflare = function () { this.addElement = function ( element ) { - elements.push( element ); + this.elements.push( element ); ...
false
Other
mrdoob
three.js
1f6eaf8b1c2d50e60bb2c4c7dff2164a5d310d1f.json
Fix first empty line on RawShaderMaterial shaders
src/renderers/webgl/WebGLProgram.js
@@ -291,21 +291,29 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters prefixVertex = [ - customDefines, - - '\n' + customDefines ].filter( filterEmptyLine ).join( '\n' ); + if ( prefixVertex.length > 0 ) { + + prefixVertex += '\n'; + + } + prefixFragment = [ ...
false
Other
mrdoob
three.js
698cab2bc7a7e5957188583f4924ce6e404c4ba4.json
Fix remaining text examples
examples/webgl_geometry_text.html
@@ -363,7 +363,7 @@ function createText() { - textGeo = new THREE.TextBufferGeometry( text, { + textGeo = new THREE.TextGeometry( text, { font: font,
true
Other
mrdoob
three.js
698cab2bc7a7e5957188583f4924ce6e404c4ba4.json
Fix remaining text examples
examples/webgl_geometry_text_pnltri.html
@@ -393,7 +393,7 @@ function createText() { - textGeo = new THREE.TextBufferGeometry( text, { + textGeo = new THREE.TextGeometry( text, { font: font,
true
Other
mrdoob
three.js
2b60027164865774024c2070179aecd33fb08bc3.json
Fix earcut example
examples/webgl_geometry_text_earcut.html
@@ -97,7 +97,7 @@ return grouped; }; - + </script> <script> @@ -421,7 +421,7 @@ function createText() { - textGeo = new THREE.TextBufferGeometry( text, { + textGeo = new THREE.TextGeometry( text, { font: font,
false
Other
mrdoob
three.js
d5e3cb3fab32b07d7f369e80fe67c4019b1ea4d3.json
Use un-minified three.js in fiddles
.github/CONTRIBUTING.md
@@ -14,7 +14,7 @@ 1. Specify the revision number of the three.js library where the bug occurred. 2. Specify your browser version, operating system, and graphics card. (for example, Chrome 23.0.1271.95, Windows 7, Nvidia Quadro 2000M) 3. Describe the problem in detail. Explain what happened, and what you expected wou...
true
Other
mrdoob
three.js
d5e3cb3fab32b07d7f369e80fe67c4019b1ea4d3.json
Use un-minified three.js in fiddles
.github/ISSUE_TEMPLATE.md
@@ -11,8 +11,8 @@ Always include a code snippet, screenshots, and any relevant models or textures Please also include a live example if possible. You can start from these templates: -* [jsfiddle](https://jsfiddle.net/s3rjfcc3/) (latest release branch) -* [jsfiddle](https://jsfiddle.net/ptgwhemb/) (dev branch) +* [...
true
Other
mrdoob
three.js
1d192327f1a032dd022e1314386adfee777caad5.json
Remove unnecessary instantiations
examples/js/controls/EditorControls.js
@@ -21,6 +21,8 @@ THREE.EditorControls = function ( object, domElement ) { var scope = this; var vector = new THREE.Vector3(); + var delta = new THREE.Vector3(); + var box = new THREE.Box3(); var STATE = { NONE: - 1, ROTATE: 0, ZOOM: 1, PAN: 2 }; var state = STATE.NONE; @@ -37,10 +39,10 @@ THREE.EditorContr...
false
Other
mrdoob
three.js
ac1c328b8769f7dcf462219b9f1ed0147081b70f.json
simplify morph target parsing
examples/js/loaders/FBXLoader.js
@@ -733,35 +733,7 @@ targetRelationships.children.forEach( function ( child ) { - - if ( child.relationship === 'DeformPercent' ) { // animation info for morph target - - var animConnections = connections.get( child.ID ); - // parent relationship 'DeformPercent' === morphTargetNode /2605340465664 - ...
false
Other
mrdoob
three.js
2eb9a128e2aded663f3b68f89bf3666cc317dad2.json
Fix a tiny typo
test/benchmark/core/TriangleClosestPoint.js
@@ -52,7 +52,7 @@ s.add('9^3 points, 20 triangles', function() { var target = new THREE.Vector3(); for (var tidx = 0; tidx < triangles.length; tidx++) { - triangle = triangles[tidx]; + var triangle = triangles[tidx]; for (var pidx = 0; pidx < testPoints.length; pidx++) { triangle....
false
Other
mrdoob
three.js
14a57e4c8588189480f74e040130ca6b14695e68.json
Fix typo and markup Fix typo that crept in while the div -> p cleanup was being done in https://github.com/mrdoob/three.js/commit/0992e6b30f3f3b2814bb094e73c3fbe00744dcdf#diff-9afe4f32e3fc42b230a087b60624fca6
docs/manual/introduction/Creating-a-scene.html
@@ -113,8 +113,7 @@ <h2>Animating the cube</h2> cube.rotation.y += 0.01; </code> - <p>This will be run every frame (normally 60 times per second), and give the cube a nice rotation animation. Basically, anything you want to move or change while the app is running has to go through the animate loop. You can of ...
false
Other
mrdoob
three.js
b3c37c589fc81781babc4d576ff512de5b97c8f8.json
add BufferGeometry de-duplication to GLTF parser
examples/js/loaders/GLTFLoader.js
@@ -1298,6 +1298,60 @@ THREE.GLTFLoader = ( function () { } + function isPrimitiveEqual ( a, b ) { + + if ( a.indices !== b.indices ) { + + return false; + + } + + var attribA = a.attributes || {}; + var attribB = b.attributes || {}; + var keysA = Object.keys(attribA); + var keysB = Object.keys(attribB); ...
false
Other
mrdoob
three.js
a400150ede2af942095d33eeb4243fc1c00a49a5.json
Update VectorKeyframeTrack inheritance
src/animation/tracks/VectorKeyframeTrack.js
@@ -1,5 +1,4 @@ -import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js'; -import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js'; +import { KeyframeTrack } from '../KeyframeTrack.js'; /** * @@ -13,11 +12,11 @@ import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.j...
false
Other
mrdoob
three.js
26d773c88cc1f40acd638dcf787346d83b36ae87.json
Update StringKeyframeTrack inheritance
src/animation/tracks/StringKeyframeTrack.js
@@ -1,6 +1,5 @@ import { InterpolateDiscrete } from '../../constants.js'; -import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js'; -import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js'; +import { KeyframeTrack } from '../KeyframeTrack.js'; /** * @@ -14,11 +13,11 @@ import { Key...
false
Other
mrdoob
three.js
319f2156a699f3bde9d70ebb6b2cff3b74639971.json
Update QuaternionKeyframeTrack inheritance
src/animation/tracks/QuaternionKeyframeTrack.js
@@ -1,7 +1,6 @@ import { InterpolateLinear } from '../../constants.js'; -import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js'; +import { KeyframeTrack } from '../KeyframeTrack.js'; import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant.js'; -import { Keyframe...
false
Other
mrdoob
three.js
aaf9f49525dd42599b8729564691923749fc6d55.json
Update NumberKeyframeTrack inheritance
src/animation/tracks/NumberKeyframeTrack.js
@@ -1,5 +1,4 @@ -import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js'; -import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js'; +import { KeyframeTrack } from '../KeyframeTrack.js'; /** * @@ -12,11 +11,11 @@ import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.j...
false