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
d64380e8aa074c323d58735d135fad199791f059.json
update xmove function Moved and modded as westLangley proposed
examples/webgl_geometry_text_shapes.html
@@ -65,6 +65,12 @@ side: THREE.DoubleSide } ); + var xMove = function( shape, shapeMid ) { + + return shape.translate( shapeMid, 0, 0 ); + + } + var message = " Three.js\nSimple text."; var shapes = font.generateShapes( message, 100, 2 ); @@ -126,12 +132,6 @@ } // end i...
false
Other
mrdoob
three.js
ae249e1bf75acb093a87d2ef32335968ad76e6cd.json
move texture.image order
src/loaders/TextureLoader.js
@@ -23,13 +23,12 @@ Object.assign( TextureLoader.prototype, { var loader = new ImageLoader( this.manager ); loader.setCrossOrigin( this.crossOrigin ); loader.setPath( this.path ); - loader.load( url, function ( image ) { + var image = loader.load( url, function ( image ) { // JPEGs can't have an alpha ...
false
Other
mrdoob
three.js
7ed394f1b33db49bcea386b11a3cbf566f2f328d.json
Remove MultiMaterial from MMDLoader
examples/js/loaders/MMDLoader.js
@@ -495,7 +495,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress var scope = this; var geometry = new THREE.BufferGeometry(); - var material = new THREE.MultiMaterial(); + var materials = []; var helper = new THREE.MMDLoader.DataCreationHelper(); var buffer = {}; @@ -1329...
true
Other
mrdoob
three.js
7ed394f1b33db49bcea386b11a3cbf566f2f328d.json
Remove MultiMaterial from MMDLoader
examples/webgl_loader_mmd.html
@@ -177,7 +177,7 @@ } - phongMaterials = new THREE.MultiMaterial( array ); + phongMaterials = array; } @@ -202,7 +202,7 @@ gui.add( api, 'gradient mapping' ).onChange( function () { if ( originalMaterials === undefined ) originalMaterials = mesh.material; - if ( phongMater...
true
Other
mrdoob
three.js
8f319e4a2c7af16435d0bbe6ae90f2a7e34af631.json
Remove MultiMaterial from OutlineEffect
examples/js/effects/OutlineEffect.js
@@ -13,11 +13,11 @@ * * // How to set outline parameters for each material * material.outlineParameters = { - * thickNess: 0.01, // this paremeter won't work for MultiMaterial - * color: new THREE.Color( 0x888888 ), // this paremeter won't work for MultiMaterial - * alpha: 0.8, ...
false
Other
mrdoob
three.js
6a3cdc83dc0f6c22666af749ecf3758a4b9b727d.json
Add files via upload
docs/api/loaders/FontLoader.html
@@ -21,6 +21,7 @@ <h1>[name]</h1> <h2>Examples</h2> <div> + [example:webgl_geometry_text_shapes geometry / text / shapes ]<br/> [example:webgl_geometry_text geometry / text ]<br /> [example:webgl_geometry_text_earcut geometry / text / earcut]<br /> [example:webgl_geometry_text_pnltri geometry / text /...
false
Other
mrdoob
three.js
3f055db652621f7679fa940d556f70ab4d06a9ee.json
Add files via upload
docs/api/extras/core/Font.html
@@ -16,6 +16,13 @@ <h1>[name]</h1> This is used internally by the [page:FontLoader]. </div> + <h2>Examples</h2> + + <div> + [example:webgl_geometry_text_shapes geometry / text / shapes ]<br/> + [example:webgl_shaders_vector vector / text ]<br/> + </div> + <h2>Constructor</h2> <h3>[name]( data )</h3...
false
Other
mrdoob
three.js
edb5771db148cb6f701bae3f8f84b81c4cfb1425.json
Create GLTF2Loader fork.
docs/examples/loaders/GLTFLoader.html
@@ -23,10 +23,6 @@ <h2>Notes</h2> When using custom shaders provided within a glTF file [page:THREE.GLTFLoader.Shaders] should be updated on each render loop. See [example:webgl_loader_gltf] demo source code for example usage. </div> - <div> - This class is often used with [page:THREE.GLTFLoader.Animations TH...
true
Other
mrdoob
three.js
edb5771db148cb6f701bae3f8f84b81c4cfb1425.json
Create GLTF2Loader fork.
examples/js/loaders/GLTF2Loader.js
@@ -0,0 +1,2183 @@ +/** + * @author Rich Tibbett / https://github.com/richtr + * @author mrdoob / http://mrdoob.com/ + * @author Tony Parisi / http://www.tonyparisi.com/ + * @author Takahiro / https://github.com/takahirox + * @author Don McCurdy / https://www.donmccurdy.com + */ + +THREE.GLTF2Loader = ( function () { +...
true
Other
mrdoob
three.js
edb5771db148cb6f701bae3f8f84b81c4cfb1425.json
Create GLTF2Loader fork.
examples/webgl_loader_gltf.html
@@ -95,7 +95,7 @@ </div> <script src="../build/three.js"></script> <script src="js/controls/OrbitControls.js"></script> - <script src="js/loaders/GLTFLoader.js"></script> + <script src="js/loaders/GLTF2Loader.js"></script> <script> var orbitControls = null; @@ -202,8 +202,8 @@ scene.add(ground)...
true
Other
mrdoob
three.js
9d72e97f9d5e1bcffd14cb9ed0763be1260731e4.json
Fix Sprite raycast intersection distance The existing code used the distance between the sprite and the closest point on the ray. However, this is inconsistent with both the documentation and other objects, which return the distance between the intersection and the ray origin. The new code is similar to the Point r...
src/objects/Sprite.js
@@ -25,25 +25,25 @@ Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), { raycast: ( function () { + var intersectPoint = new Vector3(); var matrixPosition = new Vector3(); return function raycast( raycaster, intersects ) { matrixPosition.setFromMatrixPosition( this.matrixWorld )...
false
Other
mrdoob
three.js
f9ea222f1daf8460bff0722b6ad4b6554a85dc2f.json
Fix syntax error on older builds of IE11 #11440
src/loaders/BufferGeometryLoader.js
@@ -93,7 +93,7 @@ Object.assign( BufferGeometryLoader.prototype, { var TYPED_ARRAYS = { Int8Array: Int8Array, Uint8Array: Uint8Array, - Uint8ClampedArray: Uint8ClampedArray, + Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array, Int16Array: Int16Array, Uint16Array: Uint...
false
Other
mrdoob
three.js
8743685a9556f13dbfdb7028f885ab844ce3b891.json
Optimize Ray.applyMatrix4 performance
src/math/Ray.js
@@ -515,10 +515,8 @@ Object.assign( Ray.prototype, { applyMatrix4: function ( matrix4 ) { - this.direction.add( this.origin ).applyMatrix4( matrix4 ); this.origin.applyMatrix4( matrix4 ); - this.direction.sub( this.origin ); - this.direction.normalize(); + this.direction.transformDirection( matrix4 ); ...
false
Other
mrdoob
three.js
8f1a4323de3b53700e6cd01d1e9aa25011ff8726.json
Fix renderer.render check camera bug
src/renderers/WebGLRenderer.js
@@ -1082,8 +1082,7 @@ function WebGLRenderer( parameters ) { // Rendering this.render = function ( scene, camera, renderTarget, forceClear ) { - - if ( camera !== undefined && camera.isCamera !== true ) { + if ( ! ( camera && camera.isCamera ) ) { console.error( 'THREE.WebGLRenderer.render: camera is not ...
false
Other
mrdoob
three.js
e0f84b07ac779bfb70227270532306d4296e9625.json
Fix geometry.mergeMesh determine mesh bug
src/core/Geometry.js
@@ -820,7 +820,7 @@ Object.assign( Geometry.prototype, EventDispatcher.prototype, { mergeMesh: function ( mesh ) { - if ( ( mesh && mesh.isMesh ) === false ) { + if ( !mesh || !mesh.isMesh ) { console.error( 'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.', mesh ); return;
false
Other
mrdoob
three.js
9de93ad036e544591c2747285c953d502dd33c36.json
remove debug code
src/renderers/WebGLRenderer.js
@@ -2677,7 +2677,7 @@ function WebGLRenderer( parameters ) { state.scissor( _currentScissor ); state.setScissorTest( _currentScissorTest ); - !window.xx && state.viewport( _currentViewport ); + state.viewport( _currentViewport ); if ( isCube ) {
false
Other
mrdoob
three.js
ee87cc5c239c4286f558d5be1c0b30871bec78a2.json
Update morph of GLTF2Loader
examples/js/loaders/GLTF2Loader.js
@@ -2161,16 +2161,19 @@ THREE.GLTF2Loader = ( function () { var targets = primitive.targets; var morphAttributes = geometry.morphAttributes; + morphAttributes.position = []; + morphAttributes.normal = []; + + material.morphTargets = true; + for ( var i = 0, il = targets.lengt...
false
Other
mrdoob
three.js
ebc6324710adc5657855b27a39beb9bbd89237fb.json
Remove unnecessary lines
examples/js/loaders/FBXLoader2.js
@@ -1516,31 +1516,13 @@ var PoseNode = BindPoseNode.subNodes.PoseNode; var worldMatrices = new Map(); - if ( Array.isArray( PoseNode ) ) { + for ( var PoseNodeIndex = 0, PoseNodeLength = PoseNode.length; PoseNodeIndex < PoseNodeLength; ++ PoseNodeIndex ) { - for ( var PoseNodeIndex = 0, PoseNodeLengt...
false
Other
mrdoob
three.js
322ff6444e7332bbdc35f7d506ebfa3688ff2f36.json
Support FBX Binary format
examples/js/loaders/FBXLoader2.js
@@ -1,8 +1,9 @@ /** * @author Kyle-Larson https://github.com/Kyle-Larson + * @author Takahiro https://github.com/takahirox * * Loader loads FBX file and generates Group representing FBX scene. - * Requires FBX file to be >= 7.0 and in ASCII format. + * Requires FBX file to be >= 7.0 and in ASCII or to be any ver...
false
Other
mrdoob
three.js
f5f68fcaf89e32c35844b28a5e1cace9a7060e40.json
Update docs on aoMap channel and UVs.
docs/api/materials/MeshBasicMaterial.html
@@ -63,7 +63,7 @@ <h3>[property:Texture alphaMap]</h3> </div> <h3>[property:Texture aoMap]</h3> - <div>The ambient occlusion map. Default is null.</div> + <div>The red channel of this texture is used as the ambient occlusion map. Default is null. The aoMap requires a second set of UVs.</div> <h3>[propert...
true
Other
mrdoob
three.js
f5f68fcaf89e32c35844b28a5e1cace9a7060e40.json
Update docs on aoMap channel and UVs.
docs/api/materials/MeshLambertMaterial.html
@@ -74,7 +74,7 @@ <h3>[property:Texture alphaMap]</h3> </div> <h3>[property:Texture aoMap]</h3> - <div>The ambient occlusion map. Default is null.</div> + <div>The red channel of this texture is used as the ambient occlusion map. Default is null. The aoMap requires a second set of UVs.</div> <h3>[propert...
true
Other
mrdoob
three.js
f5f68fcaf89e32c35844b28a5e1cace9a7060e40.json
Update docs on aoMap channel and UVs.
docs/api/materials/MeshPhongMaterial.html
@@ -73,7 +73,7 @@ <h3>[property:Texture alphaMap]</h3> </div> <h3>[property:Texture aoMap]</h3> - <div>The ambient occlusion map. Default is null.</div> + <div>The red channel of this texture is used as the ambient occlusion map. Default is null. The aoMap requires a second set of UVs.</div> <h3>[propert...
true
Other
mrdoob
three.js
f5f68fcaf89e32c35844b28a5e1cace9a7060e40.json
Update docs on aoMap channel and UVs.
docs/api/materials/MeshStandardMaterial.html
@@ -97,7 +97,7 @@ <h3>[property:Texture alphaMap]</h3> </div> <h3>[property:Texture aoMap]</h3> - <div>The red channel of this texture is used as the ambient occlusion map. Default is null.</div> + <div>The red channel of this texture is used as the ambient occlusion map. Default is null. The aoMap requires a...
true
Other
mrdoob
three.js
78b236bbef3c631800b9bfc209341360307b4c28.json
add missing newline
src/renderers/shaders/ShaderChunk/project_vertex.glsl
@@ -1,3 +1,3 @@ vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 ); -gl_Position = projectionMatrix * mvPosition; \ No newline at end of file +gl_Position = projectionMatrix * mvPosition;
false
Other
mrdoob
three.js
fb46e685fad9f3fd6b31ddfecfc0c09d753773c8.json
Use boombox as first example.
examples/webgl_loader_gltf2.html
@@ -415,15 +415,6 @@ } var sceneList = [ - { - name : 'Duck', url : './models/gltf/Duck/%s/duck.gltf', - cameraPos: new THREE.Vector3(0, 3, 5), - addLights:true, - addGround:true, - shadows:true, - // TODO: 'glTF-MaterialsCommon', 'glTF-techniqueWebGL' - extensions: ['glTF', 'gl...
false
Other
mrdoob
three.js
bbd838eed5bc0a3f027ee933924c27365bc7ff2a.json
Fix skinned animation for glTF2.0.
examples/js/loaders/GLTF2Loader.js
@@ -2380,7 +2380,7 @@ THREE.GLTF2Loader = ( function () { var _skin = { bindShapeMatrix: bindShapeMatrix, - jointNames: skin.jointNames, + joints: skin.joints, inverseBindMatrices: dependencies.accessors[ skin.inverseBindMatrices ] }; @@ -2665,24 +2665,8 @@ THREE.GLTF2Loader = ( functi...
false
Other
mrdoob
three.js
b21159859dc06e170d0590b919e08d2047755aae.json
Update demos for duck.
examples/webgl_loader_gltf.html
@@ -381,14 +381,6 @@ addGround:true, extensions: ["glTF", "glTF-MaterialsCommon", "glTF-Binary"] }, - { - name : "Duck", url : "./models/gltf/duck/%s/duck.gltf", - cameraPos: new THREE.Vector3(0, 3, 5), - addLights:true, - addGround:true, - shadows:true, - extensions: ["glTF"...
true
Other
mrdoob
three.js
b21159859dc06e170d0590b919e08d2047755aae.json
Update demos for duck.
examples/webgl_loader_gltf2.html
@@ -86,10 +86,12 @@ <div> Extension <select id="extensions_list" onchange="selectExtension();"> - <option value="glTF">None</option> - <option value="glTF-MaterialsCommon">Built-in shaders</option> - <option value="glTF-pbrSpecularGlossiness">Specular-Glossiness</option> - <option value="glTF-Bin...
true
Other
mrdoob
three.js
0fccdc2267e0b0c3793ef6c32eb9ca98e1e9e1bd.json
fix broken link
docs/api/lights/DirectionalLight.html
@@ -43,7 +43,7 @@ <h2>Example</h2> [example:canvas_morphtargets_horse morphtargets / horse ]<br /> [example:misc_controls_fly controls / fly ]<br /> [example:misc_lights_test lights / test ]<br /> - [example:vr_cubes cubes ]<br /> + [example:webvr_cubes cubes ]<br /> [example:webgl_effects_parallaxb...
false
Other
mrdoob
three.js
315e63685970967d7e1f5d5ddd226183b27a31a4.json
remove unused variables
examples/webgl_nearestneighbour.html
@@ -72,11 +72,8 @@ <script> var camera, scene, renderer; - var geometry, mesh; var controls; - var objects = []; - var amountOfParticles = 500000, maxDistance = Math.pow( 120, 2 ); var positions, alphas, particles, _particleGeom;
false
Other
mrdoob
three.js
7fbd12b5f4fc8b6d4228589ba671b87616d90ff7.json
Add color keyframe and clean up
examples/misc_animation_keys.html
@@ -70,36 +70,36 @@ // var geometry = new THREE.BoxBufferGeometry( 5, 5, 5 ); - var material = new THREE.MeshBasicMaterial( { color: 0xffff00 } ); + var material = new THREE.MeshBasicMaterial( { color: 0xffffff } ); var mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); /...
false
Other
mrdoob
three.js
951e67cd17f3b2591329ae500173da5425706253.json
remove excess colon
src/math/Matrix3.js
@@ -203,7 +203,7 @@ Object.assign( Matrix3.prototype, { if ( det === 0 ) { - var msg = "THREE.Matrix3: .getInverse(): can't invert matrix, determinant is 0"; + var msg = "THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"; if ( throwOnDegenerate === true ) {
true
Other
mrdoob
three.js
951e67cd17f3b2591329ae500173da5425706253.json
remove excess colon
src/math/Matrix4.js
@@ -555,7 +555,7 @@ Object.assign( Matrix4.prototype, { if ( det === 0 ) { - var msg = "THREE.Matrix4: .getInverse(): can't invert matrix, determinant is 0"; + var msg = "THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"; if ( throwOnDegenerate === true ) {
true
Other
mrdoob
three.js
58198fc113c9dc30c88b56dd8fc44a30a4c58fee.json
remove -o- prefix css
examples/js/renderers/CSS3DRenderer.js
@@ -59,7 +59,6 @@ THREE.CSS3DRenderer = function () { cameraElement.style.WebkitTransformStyle = 'preserve-3d'; cameraElement.style.MozTransformStyle = 'preserve-3d'; - cameraElement.style.oTransformStyle = 'preserve-3d'; cameraElement.style.transformStyle = 'preserve-3d'; domElement.appendChild( cameraElem...
false
Other
mrdoob
three.js
56cc2c5116cc53f597f3708eb5bbc438e1dfb445.json
remove unnecessary lines
examples/webgl_postprocessing_outline.html
@@ -41,13 +41,11 @@ <script src="js/Detector.js"></script> <script src="js/shaders/CopyShader.js"></script> - <script src="js/postprocessing/EffectComposer.js"></script> - <script src="js/postprocessing/MaskPass.js"></script> - <script src="js/shaders/CopyShader.js"></script> + <script src="js/shaders/F...
false
Other
mrdoob
three.js
ce190ebd7d6c16fcab98f305c4b811ae00a0d885.json
Convert primitive warning to error.
examples/js/loaders/GLTF2Loader.js
@@ -1809,7 +1809,7 @@ THREE.GLTF2Loader = ( function () { } else { - console.warn( "Only triangular and line primitives are supported" ); + throw new Error( "Only triangular and line primitives are supported" ); }
false
Other
mrdoob
three.js
d1e2a494d8d7426eec4805bd0eb4eeeb8de91543.json
Parse second UV channel
examples/js/loaders/GLTF2Loader.js
@@ -1719,6 +1719,10 @@ THREE.GLTF2Loader = ( function () { geometry.addAttribute( 'uv', bufferAttribute ); break; + case 'TEXCOORD_1': + geometry.addAttribute( 'uv2', bufferAttribute ); + break; + case 'COLOR_0': case 'COLOR0': case 'COLOR':
true
Other
mrdoob
three.js
d1e2a494d8d7426eec4805bd0eb4eeeb8de91543.json
Parse second UV channel
examples/js/loaders/GLTFLoader.js
@@ -1625,6 +1625,10 @@ THREE.GLTFLoader = ( function () { geometry.addAttribute( 'uv', bufferAttribute ); break; + case 'TEXCOORD_1': + geometry.addAttribute( 'uv2', bufferAttribute ); + break; + case 'COLOR_0': case 'COLOR0': case 'COLOR':
true
Other
mrdoob
three.js
beb9bf0e505c79852dcf080a9b26d926fc898dfd.json
Use TextDecoder for PCDLoader
examples/js/loaders/PCDLoader.js
@@ -35,9 +35,16 @@ THREE.PCDLoader.prototype = { binarryToStr: function ( data ) { - var text = ""; var charArray = new Uint8Array( data ); - for ( var i = 0; i < data.byteLength; i ++ ) { + + if ( window.TextDecoder !== undefined ) { + + return new TextDecoder().decode( charArray ); + + } + + var text ...
false
Other
mrdoob
three.js
754b94720b29e7589ae5432dc8f6512fd1580c4f.json
Fix an offset bug in BinaryLoader
examples/js/loaders/BinaryLoader.js
@@ -250,7 +250,7 @@ THREE.BinaryLoader.prototype = { for ( var i = 0; i < length; i ++ ) { - text += String.fromCharCode( charArray[ offset + i ] ); + text += String.fromCharCode( charArray[ i ] ); }
false
Other
mrdoob
three.js
c2e03ce8162036e5856448264e9687912e98ee3e.json
Accept animation.target.node=0 in GLTF2Loader
examples/js/loaders/GLTF2Loader.js
@@ -2309,7 +2309,7 @@ THREE.GLTF2Loader = ( function () { if ( sampler ) { var target = channel.target; - var name = target.node || target.id; // NOTE: target.id is deprecated. + var name = target.node !== undefined ? target.node : target.id; // NOTE: target.id is deprecated. var input =...
false
Other
mrdoob
three.js
5622169499f72768399f7430f6cd3ce0f0b50f72.json
Remove unnecessary lines in GLTF2Loader
examples/js/loaders/GLTF2Loader.js
@@ -2180,8 +2180,6 @@ THREE.GLTF2Loader = ( function () { // TODO: implement if ( target.TANGENT !== undefined ) { - console.log( dependencies.accessors[ target.NORMAL ] ); - } } @@ -2362,7 +2360,6 @@ THREE.GLTF2Loader = ( function () { var target = channel.target...
false
Other
mrdoob
three.js
0d40bfdac25e852acbae35306e8bda347dfb489b.json
Add comment about techniques to GLTF2Loader
examples/js/loaders/GLTF2Loader.js
@@ -1668,6 +1668,12 @@ THREE.GLTF2Loader = ( function () { materialType = DeferredShaderMaterial; + // I've left the existing json.techniques code as is so far though + // techniques is moved to extension in glTF 2.0 because + // it seems there still be many models which have techniques under json...
false
Other
mrdoob
three.js
7ffac6f5df245129f6841a5dfee01c015176c253.json
Add renderer.gammaOutput to program code
src/renderers/webgl/WebGLPrograms.js
@@ -239,6 +239,8 @@ function WebGLPrograms( renderer, capabilities ) { } + array.push( renderer.gammaOutput ); + return array.join(); };
false
Other
mrdoob
three.js
5c521f8da5e7972f7cc22729ffaa80efae2b70a3.json
Compute flat normals when detail is zero
src/geometries/PolyhedronGeometry.js
@@ -77,7 +77,7 @@ function PolyhedronBufferGeometry( vertices, indices, radius, detail ) { if ( detail === 0 ) { - BufferGeometry.prototype.computeVertexNormals.call( this ); // flat normals + this.computeVertexNormals(); // flat normals } else {
false
Other
mrdoob
three.js
cd71783f755a3c2f79e496a0a874a0c2cc522d0b.json
Compute flat normals when detail is zero
src/geometries/PolyhedronGeometry.js
@@ -74,7 +74,16 @@ function PolyhedronBufferGeometry( vertices, indices, radius, detail ) { this.addAttribute( 'position', new Float32BufferAttribute( vertexBuffer, 3 ) ); this.addAttribute( 'normal', new Float32BufferAttribute( vertexBuffer.slice(), 3 ) ); this.addAttribute( 'uv', new Float32BufferAttribute( uvB...
false
Other
mrdoob
three.js
488437c791f0f64e518ca7e796e9197c78598b94.json
Fix Markdown syntax typo in Testing-with-NPM.html
docs/manual/buildTools/Testing-with-NPM.html
@@ -187,7 +187,7 @@ <h2>Add your own code</h2> <ol> <li> Write a test for the expected behaviour of your code, and place it under test/. - [linkk:https://github.com/air/encounter/blob/master/test/Physics-test.js Here] is an example from a real project. + [link:https://github.com/air/encounter/blo...
false
Other
mrdoob
three.js
d96f03d9470321996cad163b61bac37e41c89d9a.json
add reference to Module
examples/js/loaders/DRACOLoader.js
@@ -18,6 +18,7 @@ THREE.DRACOLoader = function(manager) { this.materials = null; }; +const DracoModule = Module; THREE.DRACOLoader.prototype = { @@ -51,12 +52,12 @@ THREE.DRACOLoader.prototype = { */ const geometryType = wrapper.GetEncodedGeometryType(buffer); if (geometryType =...
false
Other
mrdoob
three.js
5d32ac4d8a1795f2d81f77afc00ebe675d842fa3.json
add .vscode directory to .gitignore
.gitignore
@@ -3,4 +3,6 @@ .project node_modules .idea/ +.vscode/ npm-debug.log +
false
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/AnimationAction.js
@@ -78,8 +78,6 @@ function AnimationAction( mixer, clip, localRoot ) { Object.assign( AnimationAction.prototype, { - constructor: AnimationAction, - // State & Scheduling play: function() {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/AnimationClip.js
@@ -310,8 +310,6 @@ Object.assign( AnimationClip, { Object.assign( AnimationClip.prototype, { - constructor: AnimationClip, - resetDuration: function() { var tracks = this.tracks,
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/AnimationMixer.js
@@ -29,8 +29,6 @@ function AnimationMixer( root ) { Object.assign( AnimationMixer.prototype, EventDispatcher.prototype, { - constructor: AnimationMixer, - _bindAction: function ( action, prototypeAction ) { var root = action._localRoot || this._root,
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/AnimationObjectGroup.js
@@ -73,8 +73,6 @@ function AnimationObjectGroup( var_args ) { Object.assign( AnimationObjectGroup.prototype, { - constructor: AnimationObjectGroup, - isAnimationObjectGroup: true, add: function( var_args ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/PropertyBinding.js
@@ -19,8 +19,6 @@ function Composite ( targetGroup, path, optionalParsedPath ) { Object.assign( Composite.prototype, { - constructor: Composite, - getValue: function( array, offset ) { this.bind(); // bind all binding @@ -226,8 +224,6 @@ Object.assign( PropertyBinding, { Object.assign( PropertyBinding.pr...
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/animation/PropertyMixer.js
@@ -58,8 +58,6 @@ function PropertyMixer( binding, typeName, valueSize ) { Object.assign( PropertyMixer.prototype, { - constructor: PropertyMixer, - // accumulate data in the 'incoming' region into 'accu<i>' accumulate: function( accuIndex, weight ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/BufferAttribute.js
@@ -44,8 +44,6 @@ Object.defineProperty( BufferAttribute.prototype, "needsUpdate", { Object.assign( BufferAttribute.prototype, { - constructor: BufferAttribute, - isBufferAttribute: true, setArray: function ( array ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/BufferGeometry.js
@@ -43,8 +43,6 @@ BufferGeometry.MaxIndex = 65535; Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, { - constructor: BufferGeometry, - isBufferGeometry: true, getIndex: function () {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Clock.js
@@ -16,8 +16,6 @@ function Clock( autoStart ) { Object.assign( Clock.prototype, { - constructor: Clock, - start: function () { this.startTime = ( performance || Date ).now();
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Face3.js
@@ -24,8 +24,6 @@ function Face3( a, b, c, normal, color, materialIndex ) { Object.assign( Face3.prototype, { - constructor: Face3, - clone: function () { return new this.constructor().copy( this );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Geometry.js
@@ -61,8 +61,6 @@ function Geometry() { Object.assign( Geometry.prototype, EventDispatcher.prototype, { - constructor: Geometry, - isGeometry: true, applyMatrix: function ( matrix ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/InterleavedBuffer.js
@@ -33,8 +33,6 @@ Object.defineProperty( InterleavedBuffer.prototype, "needsUpdate", { Object.assign( InterleavedBuffer.prototype, { - constructor: InterleavedBuffer, - isInterleavedBuffer: true, setArray: function ( array ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/InterleavedBufferAttribute.js
@@ -42,8 +42,6 @@ Object.defineProperties( InterleavedBufferAttribute.prototype, { Object.assign( InterleavedBufferAttribute.prototype, { - constructor: InterleavedBufferAttribute, - isInterleavedBufferAttribute: true, setX: function ( index, x ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Layers.js
@@ -10,8 +10,6 @@ function Layers() { Object.assign( Layers.prototype, { - constructor: Layers, - set: function ( channel ) { this.mask = 1 << channel;
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Object3D.js
@@ -103,8 +103,6 @@ Object3D.DefaultMatrixAutoUpdate = true; Object.assign( Object3D.prototype, EventDispatcher.prototype, { - constructor: Object3D, - isObject3D: true, applyMatrix: function ( matrix ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/core/Raycaster.js
@@ -61,8 +61,6 @@ function intersectObject( object, raycaster, intersects, recursive ) { Object.assign( Raycaster.prototype, { - constructor: Raycaster, - linePrecision: 1, set: function ( origin, direction ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/extras/core/Curve.js
@@ -41,8 +41,6 @@ function Curve() {} Object.assign( Curve.prototype, { - constructor: Curve, - // Virtual base class method to overwrite and implement in subclasses // - t [0 .. 1]
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/loaders/Loader.js
@@ -67,8 +67,6 @@ Loader.Handlers = { Object.assign( Loader.prototype, { - constructor: Loader, - crossOrigin: undefined, extractUrlBase: function ( url ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/materials/Material.js
@@ -82,8 +82,6 @@ Object.defineProperty( Material.prototype, "needsUpdate", { Object.assign( Material.prototype, EventDispatcher.prototype, { - constructor: Material, - isMaterial: true, setValues: function ( values ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/materials/MultiMaterial.js
@@ -18,8 +18,6 @@ function MultiMaterial( materials ) { Object.assign( MultiMaterial.prototype, { - constructor: MultiMaterial, - isMultiMaterial: true, toJSON: function ( meta ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Box2.js
@@ -13,8 +13,6 @@ function Box2( min, max ) { Object.assign( Box2.prototype, { - constructor: Box2, - set: function ( min, max ) { this.min.copy( min );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Box3.js
@@ -15,8 +15,6 @@ function Box3( min, max ) { Object.assign( Box3.prototype, { - constructor: Box3, - isBox3: true, set: function ( min, max ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Color.js
@@ -44,8 +44,6 @@ function Color( r, g, b ) { Object.assign( Color.prototype, { - constructor: Color, - isColor: true, r: 1, g: 1, b: 1,
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Cylindrical.js
@@ -17,8 +17,6 @@ function Cylindrical( radius, theta, y ) { Object.assign( Cylindrical.prototype, { - constructor: Cylindrical, - set: function ( radius, theta, y ) { this.radius = radius;
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Euler.js
@@ -96,8 +96,6 @@ Object.defineProperties( Euler.prototype, { Object.assign( Euler.prototype, { - constructor: Euler, - isEuler: true, set: function ( x, y, z, order ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Frustum.js
@@ -25,8 +25,6 @@ function Frustum( p0, p1, p2, p3, p4, p5 ) { Object.assign( Frustum.prototype, { - constructor: Frustum, - set: function ( p0, p1, p2, p3, p4, p5 ) { var planes = this.planes;
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Interpolant.js
@@ -34,8 +34,6 @@ function Interpolant( parameterPositions, sampleValues, sampleSize, resultBuffer Object.assign( Interpolant.prototype, { - constructor: Interpolant, - evaluate: function( t ) { var pp = this.parameterPositions,
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Line3.js
@@ -14,8 +14,6 @@ function Line3( start, end ) { Object.assign( Line3.prototype, { - constructor: Line3, - set: function ( start, end ) { this.start.copy( start );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Matrix3.js
@@ -27,8 +27,6 @@ function Matrix3() { Object.assign( Matrix3.prototype, { - constructor: Matrix3, - isMatrix3: true, set: function ( n11, n12, n13, n21, n22, n23, n31, n32, n33 ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Matrix4.js
@@ -35,8 +35,6 @@ function Matrix4() { Object.assign( Matrix4.prototype, { - constructor: Matrix4, - isMatrix4: true, set: function ( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Plane.js
@@ -14,8 +14,6 @@ function Plane( normal, constant ) { Object.assign( Plane.prototype, { - constructor: Plane, - set: function ( normal, constant ) { this.normal.copy( normal );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Quaternion.js
@@ -163,8 +163,6 @@ Object.defineProperties( Quaternion.prototype, { Object.assign( Quaternion.prototype, { - constructor: Quaternion, - set: function ( x, y, z, w ) { this._x = x;
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Ray.js
@@ -13,8 +13,6 @@ function Ray( origin, direction ) { Object.assign( Ray.prototype, { - constructor: Ray, - set: function ( origin, direction ) { this.origin.copy( origin );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Sphere.js
@@ -15,8 +15,6 @@ function Sphere( center, radius ) { Object.assign( Sphere.prototype, { - constructor: Sphere, - set: function ( center, radius ) { this.center.copy( center );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Spherical.js
@@ -22,8 +22,6 @@ function Spherical( radius, phi, theta ) { Object.assign( Spherical.prototype, { - constructor: Spherical, - set: function ( radius, phi, theta ) { this.radius = radius;
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Triangle.js
@@ -104,8 +104,6 @@ Object.assign( Triangle, { Object.assign( Triangle.prototype, { - constructor: Triangle, - set: function ( a, b, c ) { this.a.copy( a );
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Vector2.js
@@ -50,8 +50,6 @@ Object.defineProperties( Vector2.prototype, { Object.assign( Vector2.prototype, { - constructor: Vector2, - isVector2: true, set: function ( x, y ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Vector3.js
@@ -21,8 +21,6 @@ function Vector3( x, y, z ) { Object.assign( Vector3.prototype, { - constructor: Vector3, - isVector3: true, set: function ( x, y, z ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/math/Vector4.js
@@ -17,8 +17,6 @@ function Vector4( x, y, z, w ) { Object.assign( Vector4.prototype, { - constructor: Vector4, - isVector4: true, set: function ( x, y, z, w ) {
true
Other
mrdoob
three.js
08c40e22c7cec08cb4df7b3552392eff50a125c1.json
Remove unecessary constructor assignments
src/renderers/WebGLRenderTarget.js
@@ -41,8 +41,6 @@ function WebGLRenderTarget( width, height, options ) { Object.assign( WebGLRenderTarget.prototype, EventDispatcher.prototype, { - constructor: WebGLRenderTarget, - isWebGLRenderTarget: true, setSize: function ( width, height ) {
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
docs/api/objects/LineLoop.html
@@ -0,0 +1,55 @@ +<!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:Object3D] &rarr; [page:Line] &rarr; + + <h1>[...
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
docs/list.js
@@ -286,6 +286,7 @@ var list = { [ "Group", "api/objects/Group" ], [ "LensFlare", "api/objects/LensFlare" ], [ "Line", "api/objects/Line" ], + [ "LineLoop", "api/objects/LineLoop" ], [ "LineSegments", "api/objects/LineSegments" ], [ "LOD", "api/objects/LOD" ], [ "Mesh", "api/objects/Mesh" ],
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
examples/js/loaders/GLTFLoader.js
@@ -1940,6 +1940,10 @@ THREE.GLTFLoader = ( function () { child = new THREE.LineSegments( originalGeometry, material ); break; + case 'LineLoop': + child = new THREE.LineLoop( originalGeometry, material ); + break; + case 'Line': child = new THREE.L...
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
src/Three.js
@@ -19,6 +19,7 @@ export { Skeleton } from './objects/Skeleton.js'; export { Bone } from './objects/Bone.js'; export { Mesh } from './objects/Mesh.js'; export { LineSegments } from './objects/LineSegments.js'; +export { LineLoop } from './objects/LineLoop.js'; export { Line } from './objects/Line.js'; export { Poi...
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
src/loaders/ObjectLoader.js
@@ -666,6 +666,12 @@ Object.assign( ObjectLoader.prototype, { break; + case 'LineLoop': + + object = new LineLoop( getGeometry( data.geometry ), getMaterial( data.material ) ); + + break; + case 'LineSegments': object = new LineSegments( getGeometry( data.geometry ), getMaterial( data....
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
src/objects/LineLoop.js
@@ -0,0 +1,24 @@ +import { Line } from './Line'; + +/** + * @author mgreter / http://github.com/mgreter + */ + +function LineLoop( geometry, material ) { + + Line.call( this, geometry, material ); + + this.type = 'LineLoop'; + +} + +LineLoop.prototype = Object.assign( Object.create( Line.prototype ), { + + constructor:...
true
Other
mrdoob
three.js
246393ebf1af7a285886fd906287cc9a60423df8.json
Implement LineLoop using `LINE_LOOP` rendering
src/renderers/WebGLRenderer.js
@@ -855,6 +855,10 @@ function WebGLRenderer( parameters ) { renderer.setMode( _gl.LINES ); + } else if ( object.isLineLoop ) { + + renderer.setMode( _gl.LINE_LOOP ); + } else { renderer.setMode( _gl.LINE_STRIP );
true
Other
mrdoob
three.js
945c76723e98de898d90eebf3bbed8a841238395.json
add UI for size selection
examples/js/vr/PaintViveController.js
@@ -47,19 +47,53 @@ THREE.PaintViveController = function ( id ) { } + // COLOR UI + var geometry = new THREE.CircleGeometry( 1, 32 ); var material = new THREE.MeshBasicMaterial( { map: generateHueTexture() } ); - var mesh = new THREE.Mesh( geometry, material ); - mesh.position.set( 0, 0.005, 0.0495 ); - mesh....
false
Other
mrdoob
three.js
2254a241d084615ad5fe5fa35e515c6c2f556041.json
Fix Interpolant alias
src/math/Interpolant.js
@@ -36,12 +36,6 @@ Object.assign( Interpolant.prototype, { constructor: Interpolant, - beforeStart_: //( 0, t, t0 ), returns this.resultBuffer - Interpolant.prototype.copySampleValue_, - - afterEnd_: //( N-1, tN-1, t ), returns this.resultBuffer - Interpolant.prototype.copySampleValue_, - evaluate: function( ...
false
Other
mrdoob
three.js
9ee0f7dddb7b38f2706acb450d2539cd5dc615ee.json
Fix Texture accessors
src/textures/Texture.js
@@ -59,17 +59,17 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty Texture.DEFAULT_IMAGE = undefined; Texture.DEFAULT_MAPPING = UVMapping; -Object.assign( Texture.prototype, EventDispatcher.prototype, { +Object.defineProperty( Texture.prototype, "needsUpdate", { - constructor: Te...
false
Other
mrdoob
three.js
13f13397e9b59afb9e9c920f329e52309a2d7088.json
Fix Vector2 accessors
src/math/Vector2.js
@@ -12,37 +12,26 @@ function Vector2( x, y ) { } -Object.assign( Vector2.prototype, { - - constructor: Vector2, - - isVector2: true, - - get width() { - - return this.x; +Object.defineProperties( Vector2.prototype, { + "width" : { + get: function () { return this.x; }, + set: function ( value ) { this.x = val...
false