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 | a6c3193465f533048d1608fbce30d3bbaf9e5d74.json | Translate some page in the object,and little fix. | docs/api/zh/objects/Group.html | @@ -10,15 +10,14 @@
<body>
[page:Object3D] →
- <h1>[name]</h1>
+ <h1>组([name])</h1>
<p class="desc">
- This is almost identical to an [page:Object3D Object3D]. Its purpose is to make working
- with groups of objects syntactically clearer.
+ 它几乎和[page:Object3D Object3D]是相同的,其目的是使得组中对象在语法上的结构更加清晰... | true |
Other | mrdoob | three.js | a6c3193465f533048d1608fbce30d3bbaf9e5d74.json | Translate some page in the object,and little fix. | docs/api/zh/objects/Skeleton.html | @@ -9,14 +9,13 @@
</head>
<body>
- <h1>[name]</h1>
+ <h1>骨架([name])</h1>
<p class="desc">
- Use an array of [page:Bone bones] to create a skeleton that can be used by a
- [page:SkinnedMesh].
+ 使用一个[page:Bone bones]数组来创建一个可以由[page:SkinnedMesh]使用的骨架。
</p>
- <h2>Example</h2>
+ <h2>实例</h2>
<code>
... | true |
Other | mrdoob | three.js | a6c3193465f533048d1608fbce30d3bbaf9e5d74.json | Translate some page in the object,and little fix. | docs/api/zh/objects/SkinnedMesh.html | @@ -10,11 +10,11 @@
<body>
[page:Object3D] → [page:Mesh] →
- <h1>[name]</h1>
+ <h1>蒙皮网格([name])</h1>
<p class="desc">
- A mesh that has a [page:Skeleton] with [page:Bone bones] that can then be used to animate the vertices of the geometry.
- The material must support skinning and have skinni... | true |
Other | mrdoob | three.js | a6c3193465f533048d1608fbce30d3bbaf9e5d74.json | Translate some page in the object,and little fix. | docs/api/zh/objects/Sprite.html | @@ -10,16 +10,14 @@
<body>
[page:Object3D] →
- <h1>[name]</h1>
+ <h1>精灵([name])</h1>
<p class="desc">
- A sprite is a plane that always faces towards the camera, generally with a
- partially transparent texture applied.<br /><br />
-
- Sprites do not cast shadows, setting <code>castShadow = tru... | true |
Other | mrdoob | three.js | b4c85224bd0113cbe24b87e9cd9e5cfb527f32c4.json | Fix morph multimaterial | examples/js/loaders/FBXLoader.js | @@ -1407,31 +1407,26 @@ THREE.FBXLoader = ( function () {
setupMorphMaterials: function () {
+ var self = this;
sceneGraph.traverse( function ( child ) {
if ( child.isMesh ) {
- if ( child.geometry.morphAttributes.position || child.geometry.morphAttributes.normal ) {
-
- var uuid = child.... | false |
Other | mrdoob | three.js | 83c3c06947120e771e010c886bcaca88c0ea6e1c.json | Add 3D Texture example | examples/webgl_materials_texture_3d.html | @@ -0,0 +1,213 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - 3D texture</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <style>
+ body {
+ background:#000;
+ padding:0;
+ margin:0;
... | false |
Other | mrdoob | three.js | f72d822eb2945dd07c719aa3133b0a0bff2b5b2f.json | Correct Vector3 to Vector2 | docs/api/extras/curves/SplineCurve.html | @@ -1,72 +1,72 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
+<!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>
- ... | false |
Other | mrdoob | three.js | b5032dd15b1860640180f60cf9c2bf5438ac08f6.json | Update definitions of torus radii | docs/api/geometries/TorusBufferGeometry.html | @@ -44,7 +44,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer radialSegments], [page:Integer tubularSegments], [page:Float arc])</h3>
<div>
- radius — Default is 1. <br />
+ radius - Radius of the torus, from the center of the torus to the center of the tube. Default ... | true |
Other | mrdoob | three.js | b5032dd15b1860640180f60cf9c2bf5438ac08f6.json | Update definitions of torus radii | docs/api/geometries/TorusGeometry.html | @@ -44,7 +44,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer radialSegments], [page:Integer tubularSegments], [page:Float arc])</h3>
<div>
- radius — Default is 1. <br />
+ radius - Radius of the torus, from the center of the torus to the center of the tube. Default ... | true |
Other | mrdoob | three.js | b5032dd15b1860640180f60cf9c2bf5438ac08f6.json | Update definitions of torus radii | docs/api/geometries/TorusKnotBufferGeometry.html | @@ -45,7 +45,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer tubularSegments], [page:Integer radialSegments], [page:Integer p], [page:Integer q])</h3>
<div>
<ul>
- <li>radius — Default is 1.</li>
+ <li>radius - Radius of the torus. Default is 1.</li>
<li>t... | true |
Other | mrdoob | three.js | b5032dd15b1860640180f60cf9c2bf5438ac08f6.json | Update definitions of torus radii | docs/api/geometries/TorusKnotGeometry.html | @@ -45,7 +45,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer tubularSegments], [page:Integer radialSegments], [page:Integer p], [page:Integer q])</h3>
<div>
<ul>
- <li>radius — Default is 1.</li>
+ <li>radius - Radius of the torus. Default is 1.</li>
<li>t... | true |
Other | mrdoob | three.js | 1d89bd105dc7956a9427daf09c8cb7a12d1aab44.json | Change incorrect references in Torus docs
The tube parameter is actually a radius, not a diameter | docs/api/geometries/TorusBufferGeometry.html | @@ -45,7 +45,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer radialSegments], [page:Integer tubularSegments], [page:Float arc])</h3>
<div>
radius — Default is 1. <br />
- tube — Diameter of the tube. Default is 0.4. <br />
+ tube — Radius of the tube. Default is 0... | true |
Other | mrdoob | three.js | 1d89bd105dc7956a9427daf09c8cb7a12d1aab44.json | Change incorrect references in Torus docs
The tube parameter is actually a radius, not a diameter | docs/api/geometries/TorusGeometry.html | @@ -45,7 +45,7 @@ <h2>Constructor</h2>
<h3>[name]([page:Float radius], [page:Float tube], [page:Integer radialSegments], [page:Integer tubularSegments], [page:Float arc])</h3>
<div>
radius — Default is 1. <br />
- tube — Diameter of the tube. Default is 0.4. <br />
+ tube — Radius of the tube. Default is 0... | true |
Other | mrdoob | three.js | 1d89bd105dc7956a9427daf09c8cb7a12d1aab44.json | Change incorrect references in Torus docs
The tube parameter is actually a radius, not a diameter | docs/api/geometries/TorusKnotBufferGeometry.html | @@ -46,7 +46,7 @@ <h3>[name]([page:Float radius], [page:Float tube], [page:Integer tubularSegments
<div>
<ul>
<li>radius — Default is 1.</li>
- <li>tube — Diameter of the tube. Default is 0.4.</li>
+ <li>tube — Radius of the tube. Default is 0.4.</li>
<li>tubularSegments — Default is 64.</li>
... | true |
Other | mrdoob | three.js | 1d89bd105dc7956a9427daf09c8cb7a12d1aab44.json | Change incorrect references in Torus docs
The tube parameter is actually a radius, not a diameter | docs/api/geometries/TorusKnotGeometry.html | @@ -46,7 +46,7 @@ <h3>[name]([page:Float radius], [page:Float tube], [page:Integer tubularSegments
<div>
<ul>
<li>radius — Default is 1.</li>
- <li>tube — Diameter of the tube. Default is 0.4.</li>
+ <li>tube — Radius of the tube. Default is 0.4.</li>
<li>tubularSegments — Default is 64.</li>
... | true |
Other | mrdoob | three.js | 764fb013869a7ba8db8f97dfee2b9ec6a1df54a2.json | Add initial doc for ply exporter | docs/examples/exporters/PLYExporter.html | @@ -0,0 +1,65 @@
+<!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>
+ <h1>[name]</h1>
+
+ <p class="desc">
+ An exporter... | false |
Other | mrdoob | three.js | 94743d102bc4f63604b75d5f7f2d87aa834dfa36.json | use options hash | examples/js/loaders/EquiangularToCubeGenerator.js | @@ -2,10 +2,10 @@
* @author Richard M. / https://github.com/richardmonette
*/
-THREE.EquiangularToCubeGenerator = function ( sourceTexture, resolution, type, format ) {
+THREE.EquiangularToCubeGenerator = function ( sourceTexture, options ) {
this.sourceTexture = sourceTexture;
- this.resolution = resolution;
+... | true |
Other | mrdoob | three.js | 94743d102bc4f63604b75d5f7f2d87aa834dfa36.json | use options hash | examples/webgl_materials_envmaps_exr.html | @@ -106,7 +106,7 @@
texture.magFilter = THREE.NearestFilter;
texture.encoding = THREE.LinearEncoding;
- var cubemapGenerator = new THREE.EquiangularToCubeGenerator( texture, 512, THREE.HalfFloatType );
+ var cubemapGenerator = new THREE.EquiangularToCubeGenerator( texture, { resolution: 512, type:... | true |
Other | mrdoob | three.js | ad597c55d61bb0d46d8ec1286672fd828527d311.json | add params for cubemap params (to support mobile) | examples/js/loaders/EquiangularToCubeGenerator.js | @@ -2,7 +2,7 @@
* @author Richard M. / https://github.com/richardmonette
*/
-THREE.EquiangularToCubeGenerator = function ( sourceTexture, resolution ) {
+THREE.EquiangularToCubeGenerator = function ( sourceTexture, resolution, type, format ) {
this.sourceTexture = sourceTexture;
this.resolution = resolution;
... | true |
Other | mrdoob | three.js | ad597c55d61bb0d46d8ec1286672fd828527d311.json | add params for cubemap params (to support mobile) | examples/webgl_materials_envmaps_exr.html | @@ -106,7 +106,7 @@
texture.magFilter = THREE.NearestFilter;
texture.encoding = THREE.LinearEncoding;
- var cubemapGenerator = new THREE.EquiangularToCubeGenerator( texture, 512 );
+ var cubemapGenerator = new THREE.EquiangularToCubeGenerator( texture, 512, THREE.HalfFloatType );
var cubeMap... | true |
Other | mrdoob | three.js | 908fa7354d9f5b9aa0fdd83a391360e058b51552.json | Add some utility functions to BufferGeometryUtils | examples/js/BufferGeometryUtils.js | @@ -391,6 +391,90 @@ THREE.BufferGeometryUtils = {
return new THREE.BufferAttribute( array, itemSize, normalized );
+ },
+
+ /**
+ * @param {Array<THREE.BufferAttribute>} attributes
+ * @return {Array<THREE.InterleavedBufferAttribute>}
+ */
+ interleaveAttributes: function ( attributes ) {
+
+ // Interleaves... | false |
Other | mrdoob | three.js | 836e363c07cf59b759b907d4fbf4b4529bc2dcaf.json | fix bypassnode without .value | examples/js/nodes/core/BypassNode.js | @@ -17,27 +17,39 @@ THREE.BypassNode.prototype.nodeType = "Bypass";
THREE.BypassNode.prototype.getType = function ( builder ) {
- return this.value ? this.value.getType( builder ) : 'void';
+ if ( this.value ) {
+
+ return this.value.getType( builder );
+
+ } else if (builder.isShader( 'fragment' )) {
+
+ ... | false |
Other | mrdoob | three.js | 9bea0556fe15ecc68651e51bad34dd916b20022b.json | Address PR feedback. | examples/js/controls/OrbitControls.js | @@ -75,7 +75,7 @@ THREE.OrbitControls = function ( object, domElement ) {
this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };
// Mouse buttons
- this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };
+ this.mouseButtons = { LEFT: THREE.MOUSE.LEFT, MIDDLE: THREE.MOU... | false |
Other | mrdoob | three.js | 88c17cd1cb75e92dbc052b13c93d054410062d03.json | Add Lorenz attractor | examples/files.js | @@ -322,6 +322,7 @@ var files = {
"webvr_cubes",
"webvr_daydream",
"webvr_gearvr",
+ "webvr_lorenz_attractor",
"webvr_oculus-go",
"webvr_panorama",
"webvr_rollercoaster", | false |
Other | mrdoob | three.js | a904d8808c6fa4aa4e6568d419c1ae6ea2c2e22a.json | Fix example in SknnedMesh.html
Fixes #14314 | docs/api/objects/SkinnedMesh.html | @@ -38,7 +38,7 @@ <h1>[name]</h1>
<h2>Example</h2>
<code>
- var geometry = new THREE.CylinderBufferGeometry( 5, 5, 5, 5, 15, 5, 30 );
+ var geometry = new THREE.CylinderGeometry( 5, 5, 5, 5, 15, 5, 30 );
//Create the skin indices and skin weights
for ( var i = 0; i < geometry.vertices.length; i ++ ) { | false |
Other | mrdoob | three.js | c9a4cd8e5c568b7a95439908f782dcc7ee7fd66b.json | Reduce size and reposition | examples/webvr_lorenz_attractor.html | @@ -27,14 +27,14 @@
var camera, scene, renderer, x, y, z, c, geometry;
- var scale = 30;
+ var scale = .015; // for reducing overall displayed size
var multiplier = 5; // integer, increase for faster visualization
var steps = 100000;
var current = 1;
var shown = 10000;
- var beta = 8/3... | false |
Other | mrdoob | three.js | 006a90682c49065e81aa2138029680d5530ba0e0.json | Fix Error message in GLTFLoader | examples/js/loaders/GLTFLoader.js | @@ -1421,7 +1421,7 @@ THREE.GLTFLoader = ( function () {
if ( bufferDef.type && bufferDef.type !== 'arraybuffer' ) {
- throw new Error( 'THREE.GLTFLoader: %s buffer type is not supported.', bufferDef.type );
+ throw new Error( 'THREE.GLTFLoader: ' + bufferDef.type + ' buffer type is not supported.' );
}... | false |
Other | mrdoob | three.js | c1d8e09ebfedbf69fdb6f2e70725e14435dc2143.json | Add ';' and better indent | docs/api/lights/shadows/DirectionalLightShadow.html | @@ -37,8 +37,8 @@ <h2>Example</h2>
//Set up shadow properties for the light
light.shadow.mapSize.width = 512; // default
light.shadow.mapSize.height = 512; // default
-light.shadow.camera.near = 0.5; // default
-light.shadow.camera.far = 500 // default
+light.shadow.camera.near = 0.5; // default
+ligh... | false |
Other | mrdoob | three.js | 47e792705d29e547660d4a5ef9fd1bff6a41e443.json | Fix GLTFLoader uncaught exception | examples/js/loaders/GLTFLoader.js | @@ -1025,11 +1025,9 @@ THREE.GLTFLoader = ( function () {
if ( value ) {
- fns.push( value );
-
if ( value instanceof Promise ) {
- value.then( function ( key, value ) {
+ value = value.then( function ( key, value ) {
results[ key ] = value;
@@ -1041,6 +1039,8 @@ THREE.GLTFLoa... | false |
Other | mrdoob | three.js | cdbd039552d9f26a3db91d6c9582e18159f31558.json | add name to object just once | examples/js/loaders/ColladaLoader.js | @@ -2751,7 +2751,7 @@ THREE.ColladaLoader.prototype = {
function parseNode( xml ) {
var data = {
- name: xml.getAttribute( 'name' ),
+ name: xml.getAttribute( 'name' ) || '',
type: xml.getAttribute( 'type' ),
id: xml.getAttribute( 'id' ),
sid: xml.getAttribute( 'sid' ),
@@ -3111,7 +3111,6 ... | false |
Other | mrdoob | three.js | cbafcbec083fcc06a46fdfd6619a9270efd37ccb.json | switch push style | examples/js/loaders/FBXLoader.js | @@ -50,8 +50,9 @@
try {
+ console.time( 'parse: ' );
var scene = self.parse( buffer, resourceDirectory );
-
+ console.timeEnd( 'parse: ' );
onLoad( scene );
} catch ( error ) {
@@ -898,59 +899,53 @@
for ( var i = 2; i < faceLength; i ++ ) {
- vertexB.push(
- vertexP... | false |
Other | mrdoob | three.js | 3268df1029fb9a88c98f32757bc6c48004d0c487.json | Update BufferGeometry doc | docs/api/core/BufferGeometry.html | @@ -195,7 +195,7 @@ <h2>Methods</h2>
<h3>[page:EventDispatcher EventDispatcher] methods are available on this class.</h3>
- <h3>[method:null addAttribute]( [param:String name], [param:BufferAttribute attribute] )</h3>
+ <h3>[method:BufferGeometry addAttribute]( [param:String name], [param:BufferAttribute attri... | false |
Other | mrdoob | three.js | fe4b89a167b69037305d55c7b5b310e10daf993a.json | Fix style bugs | src/math/Matrix4.js | @@ -288,6 +288,7 @@ Object.assign( Matrix4.prototype, {
return this.compose( zero, q, one );
};
+
}(),
lookAt: function () {
@@ -732,24 +733,24 @@ Object.assign( Matrix4.prototype, {
var te = this.elements;
var x = quaternion._x, y = quaternion._y, z = quaternion._z, w = quaternion._w;
- var x2 ... | false |
Other | mrdoob | three.js | 7058bf8ea3a9f9c11bf76ef158e7b9a22757a74d.json | Fix variable name.
Change the variable name 'cube' to 'klein'. | docs/api/geometries/ParametricBufferGeometry.html | @@ -37,8 +37,8 @@ <h2>Example</h2>
<code>
var geometry = new THREE.ParametricBufferGeometry( THREE.ParametricGeometries.klein, 25, 25 );
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
- var cube = new THREE.Mesh( geometry, material );
- scene.add( cube );
+ var klein = new THREE.Mesh( ge... | false |
Other | mrdoob | three.js | 03681b7bd6e1a3910a667a03ba99f79d396289ac.json | Add updateMatrixWorld benchmark | test/benchmark/benchmarks.html | @@ -15,6 +15,7 @@
<script src="core/Vector3Storage.js"></script>
<script src="core/Vector3Length.js"></script>
<script src="core/Float32Array.js"></script>
+ <script src="core/UpdateMatrixWorld.js"></script>
</head>
<body>
<header> | true |
Other | mrdoob | three.js | 03681b7bd6e1a3910a667a03ba99f79d396289ac.json | Add updateMatrixWorld benchmark | test/benchmark/core/UpdateMatrixWorld.js | @@ -0,0 +1,48 @@
+(function() {
+
+ THREE = Bench.THREE;
+
+ var position = new THREE.Vector3(1, 1, 1);
+ var scale = new THREE.Vector3(2, 1, 0.5);
+ var rotation = new THREE.Quaternion();
+ rotation.setFromAxisAngle(new THREE.Vector3(0, 1, 0), Math.PI / 8);
+ var createLocallyOffsetChild = function() {
+ var ... | true |
Other | mrdoob | three.js | fd1ad09fb8cf5d1af0c8f94ed107b035bafb90f3.json | Improve collision handling | examples/webvr_gearvr.html | @@ -231,6 +231,10 @@
if ( normal.length() < 2 * radius ) {
+ normal.multiplyScalar( 0.5 * normal.length() - radius );
+ cube.position.sub( normal );
+ cube2.position.add( normal );
+
normal.normalize();
relativeVelocity.copy( cube.userData.velocity ).sub( cube... | false |
Other | mrdoob | three.js | 63f7f8b0bc17795364fa72d34cd6ac7d71203cbe.json | Add collision handling | examples/webvr_gearvr.html | @@ -42,6 +42,10 @@
var controller;
var room;
+
+ var radius = 0.08;
+ var normal = new THREE.Vector3();
+ var relativeVelocity = new THREE.Vector3();
init();
animate();
@@ -77,7 +81,7 @@
light.position.set( 1, 1, 1 ).normalize();
scene.add( light );
- var geometry = new THREE... | false |
Other | mrdoob | three.js | 158fc6ca70d4afebff5d323f62ef87b3efb6b48d.json | Update webgl2_sandbox example | examples/webgl2_sandbox.html | @@ -44,7 +44,7 @@
import { Mesh } from '../src/objects/Mesh.js';
import { Fog } from '../src/scenes/Fog.js';
import { Scene } from '../src/scenes/Scene.js';
- import { WebGL2Renderer } from '../src/renderers/WebGL2Renderer.js';
+ import { WebGLRenderer } from '../src/renderers/WebGLRenderer.js';
/... | false |
Other | mrdoob | three.js | 1f2b11a169f9f536ed62424bf9a1ae66b812d175.json | Remove unneccessary argument
https://lgtm.com/projects/g/mrdoob/three.js/snapshot/60c5764c63fa3841f02dcf91cf7dceeeef66889c/files/build/three.module.js?#x16404adc80fd6243:1 | src/geometries/ExtrudeGeometry.js | @@ -72,7 +72,7 @@ function ExtrudeBufferGeometry( shapes, options ) {
for ( var i = 0, l = shapes.length; i < l; i ++ ) {
var shape = shapes[ i ];
- addShape( shape, options );
+ addShape( shape );
}
| false |
Other | mrdoob | three.js | a89ed40a1e72a9179844fad9db3ad93bc1ba9374.json | Remove mipmaps serialization | src/loaders/ObjectLoader.js | @@ -570,7 +570,6 @@ Object.assign( ObjectLoader.prototype, {
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, TEXTURE_FILTER );
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, TEXTURE_FILTER );
if ( data.anisotropy !== undefined... | true |
Other | mrdoob | three.js | a89ed40a1e72a9179844fad9db3ad93bc1ba9374.json | Remove mipmaps serialization | src/textures/Texture.js | @@ -197,7 +197,6 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
minFilter: this.minFilter,
magFilter: this.magFilter,
anisotropy: this.anisotropy,
- mipmaps: this.mipmaps.slice(),
flipY: this.flipY,
| true |
Other | mrdoob | three.js | 99a7cb9fdff3c4968ccd4c78d00bc7f5cac5f333.json | Remove an unnecessary space | src/textures/Texture.js | @@ -240,7 +240,7 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
width: mipmap.width,
height: mipmap.height,
type: mipmap.data.constructor.name,
- array: Array.prototype.slice.call( mipmap.data )
+ array: Array.prototype.slice.call( mipmap.data )
} );
... | false |
Other | mrdoob | three.js | 22e44073bc8eb99790b7c86f456c6ace36f04bd4.json | Remove .userData from Geometry doc | docs/api/core/Geometry.html | @@ -174,12 +174,6 @@ <h3>[property:Array skinIndices]</h3>
</code>
</p>
- <h3>[property:Object userData]</h3>
- <p>
- An object that can be used to store custom data about the Geometry. It should not hold
- references to functions as these will not be cloned.
- </p>
-
<h3>[property:String uuid]</h3>
... | false |
Other | mrdoob | three.js | d512381bd72edde8238ad5f2edff66a70600c001.json | Fix Texture.mapping type in Texture doc | docs/api/textures/Texture.html | @@ -60,7 +60,7 @@ <h3>[property:array mipmaps]</h3>
Array of user-specified mipmaps (optional).
</p>
- <h3>[property:object mapping]</h3>
+ <h3>[property:number mapping]</h3>
<p>
How the image is applied to the object. An object type of [page:Textures THREE.UVMapping] is the default,
where the U,V co... | false |
Other | mrdoob | three.js | 01ff9bd73b1441107caf6fae239cd1ead4537a05.json | Keep front of helper facing direction of normal | src/helpers/PlaneHelper.js | @@ -9,6 +9,7 @@ import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
import { Float32BufferAttribute } from '../core/BufferAttribute.js';
import { BufferGeometry } from '../core/BufferGeometry.js';
import { Object3D } from '../core/Object3D.js';
+import { FrontSide, BackSide } from '../constants.js... | false |
Other | mrdoob | three.js | f949a2c4c31978ef42c37cf5d22c301c70d3a8cd.json | fix some mistakes and approve the effect | examples/js/shaders/AfterimageShader.js | @@ -51,12 +51,19 @@ THREE.AfterimageShader = {
"texelOld *= damp;",
- "texelOld.r *= when_gt( texelOld.r, 0.2 );",
- "texelOld.g *= when_gt( texelOld.g, 0.2 );",
- "texelOld.b *= when_gt( texelOld.b, 0.2 );",
- "texelOld.a *= when_gt( texelOld.a, 0.2 );",
+ "texelOld.r *= when_gt( texelOld.r, 0.... | true |
Other | mrdoob | three.js | f949a2c4c31978ef42c37cf5d22c301c70d3a8cd.json | fix some mistakes and approve the effect | examples/webgl_postprocessing_afterimage.html | @@ -55,7 +55,7 @@
scene.add( object );
var geometry = new THREE.BoxBufferGeometry( 150, 150, 150, 2, 2, 2);
- var material = new THREE.MeshNormalMaterial( { wireframe: true } );
+ var material = new THREE.MeshNormalMaterial();
mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
| true |
Other | mrdoob | three.js | 54fdf6304b789b575b341f2008adcf31b96ab468.json | Add missing isCanvasTexture property | src/textures/CanvasTexture.js | @@ -14,6 +14,6 @@ function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, for
CanvasTexture.prototype = Object.create( Texture.prototype );
CanvasTexture.prototype.constructor = CanvasTexture;
-
+CanvasTexture.prototype.isCanvasTexture = true;
export { CanvasTexture }; | false |
Other | mrdoob | three.js | 2928e097a2050675791e449345a7826a9ccaa20b.json | Add userData to Geometry | src/core/Geometry.js | @@ -46,6 +46,8 @@ function Geometry() {
this.boundingBox = null;
this.boundingSphere = null;
+ this.userData = {};
+
// update flags
this.elementsNeedUpdate = false;
@@ -987,6 +989,7 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
data.uuid = this.uuid;
data.type = t... | false |
Other | mrdoob | three.js | 0e489d543b20f4406bbc95a2dae45bcfe67f4c2b.json | Add userData to BufferGeometry | src/core/BufferGeometry.js | @@ -38,6 +38,8 @@ function BufferGeometry() {
this.drawRange = { start: 0, count: Infinity };
+ this.userData = {};
+
}
BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
@@ -930,6 +932,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
... | false |
Other | mrdoob | three.js | 10df2978ab18a9e187ac16e6e458961b0d7aef69.json | add afterimage effect
a postprocessing of afterimage effect. Looks pretty cool. | examples/js/postprocessing/AfterimagePass.js | @@ -0,0 +1,88 @@
+/**
+ * @author HypnosNova / https://www.threejs.org.cn/gallery/
+ */
+
+THREE.AfterimagePass = function ( damp ) {
+
+ THREE.Pass.call( this );
+
+ if ( THREE.AfterimageShader === undefined )
+ console.error( "THREE.AfterimagePass relies on THREE.AfterimageShader" );
+
+ this.shader = THREE.Afterima... | true |
Other | mrdoob | three.js | 10df2978ab18a9e187ac16e6e458961b0d7aef69.json | add afterimage effect
a postprocessing of afterimage effect. Looks pretty cool. | examples/js/shaders/AfterimageShader.js | @@ -0,0 +1,65 @@
+/**
+ * @author HypnosNova / https://www.threejs.org.cn/gallery/
+ * I'm lucky to get this domain name.(threejs.org.cn)
+ *
+ * Afterimage shader
+ * I created this effect inspired by a demo on codepen. (Unfortunately, I forgot the url)
+ */
+
+THREE.AfterimageShader = {
+
+ uniforms: {
+
+ "damp": {... | true |
Other | mrdoob | three.js | 10df2978ab18a9e187ac16e6e458961b0d7aef69.json | add afterimage effect
a postprocessing of afterimage effect. Looks pretty cool. | examples/webgl_postprocessing_afterimage.html | @@ -0,0 +1,116 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - postprocessing - afterimage</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <style>
+ body {
+ margin: 0px;
+ background-co... | true |
Other | mrdoob | three.js | 1f3207f15754e5af8df480b8cd5a5fe6b54f1ee9.json | Add missing properties to Texture.toJSON() | src/textures/Texture.js | @@ -191,11 +191,18 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
wrap: [ this.wrapS, this.wrapT ],
format: this.format,
+ type: this.type,
+ encoding: this.encoding,
+
minFilter: this.minFilter,
magFilter: this.magFilter,
anisotropy: this.anisotropy,
+ m... | false |
Other | mrdoob | three.js | 473c861ee144620772877dde7a4dbb1265257b45.json | Remove unnecessary code
/ping @takahirox | examples/js/loaders/GLTFLoader.js | @@ -572,7 +572,6 @@ THREE.GLTFLoader = ( function () {
].join( '\n' );
var fragmentShader = shader.fragmentShader
- .replace( '#include <specularmap_fragment>', '' )
.replace( 'uniform float roughness;', 'uniform vec3 specular;' )
.replace( 'uniform float metalness;', 'uniform float glossine... | false |
Other | mrdoob | three.js | 8ef140ad6de5c338d0410bf1078536056840553d.json | fix mosaic mask | examples/webgl_postprocessing_nodes.html | @@ -465,9 +465,9 @@
}, false, 0, 1 );
- addGui( 'mask', true, function ( val ) {
+ addGui( 'mask', false, function ( val ) {
- fadeCoord.c = val ? maskAlpha : fade;
+ fadeScreen.c = val ? new THREE.TextureNode( lensflare2 ) : fade;
nodepass.needsUpdate = true;
| false |
Other | mrdoob | three.js | 648a85d025925d3a57738887607454c6cde1758f.json | add uuid for shader and uniforms | examples/js/nodes/NodeMaterial.js | @@ -6,6 +6,8 @@ THREE.NodeMaterial = function ( vertex, fragment ) {
THREE.ShaderMaterial.call( this );
+ this.defines.UUID = THREE.Math.generateUUID();
+
this.vertex = vertex || new THREE.RawNode( new THREE.PositionNode( THREE.PositionNode.PROJECTION ) );
this.fragment = fragment || new THREE.RawNode( new TH... | false |
Other | mrdoob | three.js | 94e5122f8327974a153fa1dfbb74c19df2daf961.json | Remove unnecessary shader chunk | examples/webgl_buffergeometry_instancing_lambert.html | @@ -144,7 +144,6 @@
#include <envmap_pars_vertex>
#include <bsdfs>
#include <lights_pars_begin>
- #include <lights_pars_maps>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex> | true |
Other | mrdoob | three.js | 94e5122f8327974a153fa1dfbb74c19df2daf961.json | Remove unnecessary shader chunk | examples/webgl_shaders_tonemapping.html | @@ -161,7 +161,6 @@
THREE.ShaderChunk[ "common" ],
THREE.ShaderChunk[ "bsdfs" ],
THREE.ShaderChunk[ "lights_pars_begin" ],
- THREE.ShaderChunk[ "lights_pars_maps" ],
THREE.ShaderChunk[ "lights_phong_pars_fragment" ],
"void main() {", | true |
Other | mrdoob | three.js | 94e5122f8327974a153fa1dfbb74c19df2daf961.json | Remove unnecessary shader chunk | src/renderers/shaders/ShaderLib/meshlambert_frag.glsl | @@ -24,7 +24,6 @@ varying vec3 vLightFront;
#include <envmap_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
-#include <lights_pars_maps>
#include <fog_pars_fragment>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment> | true |
Other | mrdoob | three.js | 94e5122f8327974a153fa1dfbb74c19df2daf961.json | Remove unnecessary shader chunk | src/renderers/shaders/ShaderLib/meshlambert_vert.glsl | @@ -14,7 +14,6 @@ varying vec3 vLightFront;
#include <envmap_pars_vertex>
#include <bsdfs>
#include <lights_pars_begin>
-#include <lights_pars_maps>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex> | true |
Other | mrdoob | three.js | 94e5122f8327974a153fa1dfbb74c19df2daf961.json | Remove unnecessary shader chunk | src/renderers/shaders/ShaderLib/meshphong_frag.glsl | @@ -22,7 +22,6 @@ uniform float opacity;
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
-#include <lights_pars_maps>
#include <lights_phong_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment> | true |
Other | mrdoob | three.js | 76fb60ae361880bed5b62c268667677077c3ab9a.json | use auto build | examples/js/loaders/NodeMaterialLoader.js | @@ -581,8 +581,6 @@ Object.assign( THREE.NodeMaterialLoader.prototype, {
object.value = this.getNode( node.value );
- object.build();
-
}
return this.material || this.pass || this; | true |
Other | mrdoob | three.js | 76fb60ae361880bed5b62c268667677077c3ab9a.json | use auto build | examples/js/nodes/postprocessing/NodePass.js | @@ -54,14 +54,6 @@ THREE.NodePass.prototype.render = function () {
};
-THREE.NodePass.prototype.build = function () {
-
- this.node.build();
-
- this.needsUpdate = false;
-
-};
-
THREE.NodePass.prototype.toJSON = function ( meta ) {
var isRootObject = ( meta === undefined || typeof meta === 'string' ); | true |
Other | mrdoob | three.js | ec05fcdb9fd8894b33e1a5dad921467ddeef9694.json | fix dead link | examples/webgl_postprocessing_advanced.html | @@ -35,7 +35,7 @@
<div id="info">
<a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - webgl postprocessing example -
- <a href="http://graphics.cs.williams.edu/data/meshes.xml#14" target="_blank" rel="noopener">Lee Perry-Smith</a> head
+ <a href="http://g3d.cs.williams.edu/g3d/data10... | false |
Other | mrdoob | three.js | 4963e37c83da93dcd377c3c4c5b6b05bfffdccb2.json | resolve more conflicts | examples/js/loaders/FBXLoader.js | @@ -732,10 +732,10 @@
var uvInfo = [];
var i = 0;
- while ( subNodes.LayerElementUV[ i ] ) {
+ while ( subNodes.LayerElementUV[ i ] ){
- uvInfo.push( getUVs( subNodes.LayerElementUV[ i ] ) );
- i ++;
+ uvInfo.push(getUVs( subNodes.LayerElementUV[ i ] ));
+ i++;
}
| false |
Other | mrdoob | three.js | efa028e2fe1f7c16d1e465d4bc8dcae774472018.json | Fix unpack bug | examples/js/shaders/SAOShader.js | @@ -102,7 +102,7 @@ THREE.SAOShader = {
"vec3 getViewNormal( const in vec3 viewPosition, const in vec2 screenPosition ) {",
" #if NORMAL_TEXTURE == 1",
- " return -unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz );",
+ " return unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz );",
" ... | true |
Other | mrdoob | three.js | efa028e2fe1f7c16d1e465d4bc8dcae774472018.json | Fix unpack bug | src/renderers/shaders/ShaderChunk/packing.glsl | @@ -3,7 +3,7 @@ vec3 packNormalToRGB( const in vec3 normal ) {
}
vec3 unpackRGBToNormal( const in vec3 rgb ) {
- return 1.0 - 2.0 * rgb.xyz;
+ return 2.0 * rgb.xyz - 1.0;
}
const float PackUpscale = 256. / 255.; // fraction -> 0..1 (including 1) | true |
Other | mrdoob | three.js | ae581776a6ca749e4a274e43e4487220e4bdba5f.json | add new lines and spaces for code style | examples/webgl_tonemapping.html | @@ -221,7 +221,7 @@
gui.add( params, 'exposure', 0, 10 );
gui.add( params, 'whitePoint', 0, 10 );
gui.add( params, 'opacity', 0, 1 );
- gui.add( params, 'renderMode', [ 'Renderer', 'Composer'] );
+ gui.add( params, 'renderMode', [ 'Renderer', 'Composer' ] );
gui.open();
}
@@ -258,10 +258... | false |
Other | mrdoob | three.js | a86afe1858f9b4adaa57e8b0f791c207df311a9e.json | remove redundant test and clean up | examples/webgl_tonemapping.html | @@ -253,18 +253,14 @@
function render() {
- if ( standardMaterial !== undefined ) {
+ standardMaterial.roughness = params.roughness;
+ standardMaterial.bumpScale = - 0.05 * params.bumpScale;
+ standardMaterial.opacity = params.opacity;
-
- standardMaterial.roughness = params.roughness;
- s... | false |
Other | mrdoob | three.js | fd5934e6577ff6153bd33d746cf359f45a779764.json | fix alphabetical order of loader examples | examples/files.js | @@ -101,13 +101,13 @@ var files = {
"webgl_loader_mmd_pose",
"webgl_loader_mmd_audio",
"webgl_loader_nodes",
+ "webgl_loader_nrrd",
"webgl_loader_obj",
"webgl_loader_obj_mtl",
"webgl_loader_obj2",
"webgl_loader_obj2_meshspray",
"webgl_loader_obj2_options",
"webgl_loader_obj2_run_director",
-... | false |
Other | mrdoob | three.js | c48d55fc3a11004edb2a8837373f77661cc838b8.json | rename Triangle.uvIntersection to getUV | src/math/Triangle.js | @@ -1,4 +1,3 @@
-import { Vector2 } from './Vector2.js';
import { Vector3 } from './Vector3.js';
/**
@@ -109,24 +108,20 @@ Object.assign( Triangle, {
}(),
- uvIntersection: function () {
+ getUV: function () {
var barycoord = new Vector3();
- var v1 = new Vector2();
- var v2 = new Vector2();
- var v3 ... | true |
Other | mrdoob | three.js | c48d55fc3a11004edb2a8837373f77661cc838b8.json | rename Triangle.uvIntersection to getUV | src/objects/Mesh.js | @@ -190,7 +190,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
uvB.fromBufferAttribute( uv, b );
uvC.fromBufferAttribute( uv, c );
- intersection.uv = Triangle.uvIntersection( intersectionPoint, vA, vB, vC, uvA, uvB, uvC, new Vector2() );
+ intersection.uv = Triangle.ge... | true |
Other | mrdoob | three.js | c48d55fc3a11004edb2a8837373f77661cc838b8.json | rename Triangle.uvIntersection to getUV | src/objects/Sprite.js | @@ -149,7 +149,7 @@ Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
distance: distance,
point: intersectPoint.clone(),
- uv: Triangle.uvIntersection( intersectPoint, vA, vB, vC, uvA, uvB, uvC, new Vector2() ),
+ uv: Triangle.getUV( intersectPoint, vA, vB, vC, uvA, uvB, uvC, ne... | true |
Other | mrdoob | three.js | bf9b0d4dd4b46c89b08637142f2c61f0ee91ba75.json | Fix error handling for PCDLoader parsing #14776 | examples/js/loaders/PCDLoader.js | @@ -28,7 +28,23 @@ THREE.PCDLoader.prototype = {
loader.setResponseType( 'arraybuffer' );
loader.load( url, function ( data ) {
- onLoad( scope.parse( data, url ) );
+ try {
+
+ onLoad( scope.parse( data, url ) );
+
+ } catch ( e ) {
+
+ if ( onError ) {
+
+ onError( e );
+
+ } else {
+
+ ... | false |
Other | mrdoob | three.js | 7f57a46b1ad5c9b7e83e9a19b116baf17a442b89.json | Remove unneeded parameter | examples/webgl_physics_terrain.html | @@ -204,7 +204,7 @@
// Create the terrain body
- var groundShape = createTerrainShape( heightData );
+ var groundShape = createTerrainShape();
var groundTransform = new Ammo.btTransform();
groundTransform.setIdentity();
// Shifts the terrain, since bullet re-centers it on its b... | false |
Other | mrdoob | three.js | c6639997ecd356648294eac619e917c315af97a1.json | add sprite raycast demo | examples/files.js | @@ -242,6 +242,7 @@ var files = {
"webgl_postprocessing_taa",
"webgl_postprocessing_unreal_bloom",
"webgl_raycast_texture",
+ "webgl_raycast_sprite",
"webgl_read_float_buffer",
"webgl_refraction",
"webgl_rtt", | true |
Other | mrdoob | three.js | c6639997ecd356648294eac619e917c315af97a1.json | add sprite raycast demo | examples/webgl_raycast_sprite.html | @@ -0,0 +1,177 @@
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - raycast - sprite</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <style>
+ body {
+ ... | true |
Other | mrdoob | three.js | 0cbee093ae2f969646d7b0cc7187d30bc7defae4.json | Keep the cursor as pointer after dragging | examples/js/controls/DragControls.js | @@ -154,7 +154,7 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
}
- _domElement.style.cursor = 'auto';
+ _domElement.style.cursor = _hovered ? 'pointer' : 'auto';
}
| false |
Other | mrdoob | three.js | 3a5bcfcef0528b46547a0b4fb6388bfb07da9470.json | Add the onDone callback | examples/js/exporters/ColladaExporter.js | @@ -17,7 +17,7 @@ THREE.ColladaExporter.prototype = {
constructor: THREE.ColladaExporter,
- parse: function ( object, options = {} ) {
+ parse: function ( object, onDone, options = {} ) {
options = Object.assign( {
version: '1.4.1',
@@ -549,7 +549,7 @@ THREE.ColladaExporter.prototype = {
var libraryVi... | false |
Other | mrdoob | three.js | 7095292fdefe6a92ea14867619d73ca0c48222cb.json | Use THREE.Matrix3 instead of native SVG matrices. | examples/js/loaders/SVGLoader.js | @@ -1,6 +1,7 @@
/**
* @author mrdoob / http://mrdoob.com/
* @author zz85 / http://joshuakoo.com/
+ * @author yomboprime / https://yombo.org
*/
THREE.SVGLoader = function ( manager ) {
@@ -103,7 +104,7 @@ THREE.SVGLoader.prototype = {
if ( transform ) {
- copyTransform( transformStack.pop(), current... | false |
Other | mrdoob | three.js | 2641cd08cea2f1ed372566975c9f1380996188c8.json | fix copy and serialize | examples/js/nodes/postprocessing/NodePass.js | @@ -47,7 +47,7 @@ NodePass.prototype.render = function () {
NodePass.prototype.copy = function ( source ) {
- this.material = source.material;
+ this.input = source.input;
};
@@ -78,7 +78,7 @@ NodePass.prototype.toJSON = function ( meta ) {
if ( JSON.stringify( this.userData ) !== '{}' ) data.userData ... | true |
Other | mrdoob | three.js | 2641cd08cea2f1ed372566975c9f1380996188c8.json | fix copy and serialize | examples/js/nodes/postprocessing/NodePostProcessing.js | @@ -82,7 +82,7 @@ NodePostProcessing.prototype = {
copy: function ( source ) {
- this.material = source.material;
+ this.output = source.output;
},
@@ -113,7 +113,7 @@ NodePostProcessing.prototype = {
if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
- data.mat... | true |
Other | mrdoob | three.js | 18317890f5cef98f0c7be068d2e0fd064f93de01.json | Improve collada "duplicate node warning". | examples/js/loaders/ColladaLoader.js | @@ -3183,10 +3183,14 @@ THREE.ColladaLoader.prototype = {
}
- if (hasNode(data.id)) {
- console.warn("Duplicate id ", data.id, "ignoring")
+ if ( hasNode( data.id ) ) {
+
+ console.warn( 'THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.', data.id )... | false |
Other | mrdoob | three.js | 73bb970ee30bd80745d09db2fe4775a420ed374f.json | Add a warning and ignore duplicate node IDs.
Addresses the "too much recursion" error in issue #14453 | examples/js/loaders/ColladaLoader.js | @@ -3183,7 +3183,11 @@ THREE.ColladaLoader.prototype = {
}
- library.nodes[ data.id ] = data;
+ if (hasNode(data.id)) {
+ console.warn("Duplicate id ", data.id, "ignoring")
+ } else {
+ library.nodes[ data.id ] = data;
+ }
return data;
| false |
Other | mrdoob | three.js | 63d7b66eef27de7e1c1002090dbeeb895e9f05f4.json | Fix syntax error from by #13172 merge. | examples/js/loaders/ColladaLoader.js | @@ -3519,7 +3519,7 @@ THREE.ColladaLoader.prototype = {
}
- var fallbackMaterial = new THREE.MeshBasicMaterial( { color: 0xff00ff ) };
+ var fallbackMaterial = new THREE.MeshBasicMaterial( { color: 0xff00ff } );
function resolveMaterialBinding( keys, instanceMaterials ) {
| false |
Other | mrdoob | three.js | 608a543cd66df6518a4c3bc353d59a91e42216f3.json | fix gltf KHR_lights_punctual no color bug | examples/js/loaders/GLTFLoader.js | @@ -282,7 +282,11 @@ THREE.GLTFLoader = ( function () {
var light = lights[ lightId ];
var lightNode;
- var color = new THREE.Color().fromArray( light.color );
+ // the color default value is [1, 1, 1]
+ var color = new THREE.Color(1, 1, 1);
+ if ( light.color !== undefined ) {
+ color.fromArray( l... | false |
Other | mrdoob | three.js | 8578b58bd820f4194e15c5de3245585e3852883e.json | Add tags to adjust whitespace issues | docs/api/lights/DirectionalLight.html | @@ -52,10 +52,10 @@ <h2>Example</h2>
</p>
<code>
-// White directional light at half intensity shining from the top.
-var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
-scene.add( directionalLight );
- </code>
+ // White directional light at half intensity shining from the top.
+ var directi... | false |
Other | mrdoob | three.js | 96d5134090427f72004627e96c4a96cc96f99445.json | allow parsing of empty geometry nodes | examples/js/loaders/FBXLoader.js | @@ -747,8 +747,8 @@
// Generate a THREE.BufferGeometry from a node in FBXTree.Objects.Geometry
function genGeometry( FBXTree, relationships, geometryNode, skeleton, preTransform ) {
- var vertexPositions = geometryNode.Vertices.a;
- var vertexIndices = geometryNode.PolygonVertexIndex.a;
+ var vertexPositions =... | false |
Other | mrdoob | three.js | e7f47527b6e4a013eac3befa541fd1c31b76ecf6.json | Remove unnecessary ExplodeModifier | examples/webgl_modifier_tessellation.html | @@ -36,7 +36,6 @@
<script src="js/controls/TrackballControls.js"></script>
- <script src="js/modifiers/ExplodeModifier.js"></script>
<script src="js/modifiers/TessellateModifier.js"></script>
<script src="js/Detector.js"></script>
@@ -140,15 +139,12 @@
}
- var explodeModifier = new THREE.Explo... | false |
Other | mrdoob | three.js | 03f74c4dca672a6d413138f70b4a971997379edf.json | Fix missing name copy in BufferAttribute.copy | src/core/BufferAttribute.js | @@ -68,6 +68,7 @@ Object.assign( BufferAttribute.prototype, {
copy: function ( source ) {
+ this.name = source.name;
this.array = new source.array.constructor( source.array );
this.itemSize = source.itemSize;
this.count = source.count; | false |
Other | mrdoob | three.js | 53838a297a104e02faf38aa252ce3240e3122357.json | Add support for chaining | examples/js/loaders/MTLLoader.js | @@ -47,6 +47,7 @@ THREE.MTLLoader.prototype = {
*
* @see setTexturePath
* @param {String} path
+ * @return {THREE.MTLLoader}
*
* @example
* mtlLoader.setPath( 'assets/obj/' );
@@ -55,6 +56,7 @@ THREE.MTLLoader.prototype = {
setPath: function ( path ) {
this.path = path;
+ return this;
... | true |
Other | mrdoob | three.js | 53838a297a104e02faf38aa252ce3240e3122357.json | Add support for chaining | examples/js/loaders/OBJLoader.js | @@ -392,6 +392,8 @@ THREE.OBJLoader = ( function () {
this.path = value;
+ return this;
+
},
setMaterials: function ( materials ) { | true |
Other | mrdoob | three.js | 53838a297a104e02faf38aa252ce3240e3122357.json | Add support for chaining | examples/webgl_loader_obj_mtl.html | @@ -77,33 +77,37 @@
// model
var onProgress = function ( xhr ) {
+
if ( xhr.lengthComputable ) {
+
var percentComplete = xhr.loaded / xhr.total * 100;
- console.log( Math.round(percentComplete, 2) + '% downloaded' );
+ console.log( Math.round( percentComplete, 2 ) + '% downloaded' );
... | true |
Other | mrdoob | three.js | 54551f17730eaf164416fc6019211194085bd628.json | Add missing semicolon | examples/js/BufferGeometryUtils.js | @@ -250,7 +250,7 @@ THREE.BufferGeometryUtils = {
if ( isIndexed ) {
- count = geometry.index.count
+ count = geometry.index.count;
} else if ( geometry.attributes.position !== undefined ) {
| false |
Other | mrdoob | three.js | 39ddddb2a5b9e9d115ad39cdf72eecf90a5cb5ed.json | update the doc for CSS2D renderer as well | docs/examples/renderers/CSS2DRenderer.html | @@ -12,7 +12,6 @@ <h1>[name]</h1>
<div class="desc">[name] is a simplified version of [page:CSS3DRenderer]. The only transformation that is supported is translation.<br />
The renderer is very useful if you want to combine HTML based labels with 3D objects. Here too, the respective DOM elements are wrapped int... | false |
Other | mrdoob | three.js | 063515b2ed2f6b1cd71b122d25b12a622deb0e59.json | use camera.is*** for its type detection | examples/files.js | @@ -348,11 +348,11 @@ var files = {
],
"css3d": [
"css3d_molecules",
+ "css3d_orthographic",
"css3d_panorama",
"css3d_panorama_deviceorientation",
"css3d_periodictable",
"css3d_sandbox",
- "css3d_orthographic",
"css3d_sprites",
"css3d_youtube"
], | true |
Other | mrdoob | three.js | 063515b2ed2f6b1cd71b122d25b12a622deb0e59.json | use camera.is*** for its type detection | examples/js/renderers/CSS3DRenderer.js | @@ -262,7 +262,7 @@ THREE.CSS3DRenderer = function () {
if ( cache.camera.fov !== fov ) {
- if ( camera.type === 'PerspectiveCamera' ) {
+ if ( camera.isPerspectiveCamera ) {
domElement.style.WebkitPerspective = fov + 'px';
domElement.style.perspective = fov + 'px';
@@ -277,7 +277,7 @@ THREE.CSS3... | true |
Other | mrdoob | three.js | 131212ae616a5664870d2e7a8a787683e1cbf197.json | remove params from createTexture | examples/js/GPUComputationRenderer.js | @@ -306,13 +306,10 @@ function GPUComputationRenderer( sizeX, sizeY, renderer ) {
};
- this.createTexture = function( sizeXTexture, sizeYTexture ) {
+ this.createTexture = function() {
- sizeXTexture = sizeXTexture || sizeX;
- sizeYTexture = sizeYTexture || sizeY;
-
- var a = new Float32Array( sizeXTexture *... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.