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 | 796539369ef1a808ccd6b250ec2b2a327cf7bd37.json | Simplify regex a bit, update comments. | test/unit/src/animation/PropertyBinding.js | @@ -2,7 +2,7 @@
* @author TristanVALCKE / https://github.com/TristanVALCKE
*/
-QUnit.module( 'BufferAttribute' );
+QUnit.module( 'PropertyBinding' );
QUnit.test( 'parseTrackName' , function( assert ) {
| true |
Other | mrdoob | three.js | eb71b74d47cd3d6605d1069d38f708aa01e80735.json | Set camera to 0,0,0 in webvr_shadow. | examples/webvr_shadow.html | @@ -43,18 +43,14 @@
scene = new THREE.Scene();
- var dummy = new THREE.Camera();
- dummy.position.set( 0, 0.5, 3 );
- dummy.lookAt( new THREE.Vector3( 0, 0.5, 0 ) );
- scene.add( dummy );
-
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.1, 10 );
- dummy.... | false |
Other | mrdoob | three.js | bf1efc61c7c48f119c405b1cb3d19f80d0b9f4cf.json | Improve documentation of TextGeometry usage | docs/api/geometries/TextGeometry.html | @@ -12,7 +12,11 @@
<h1>[name]</h1>
- <div class="desc">This object creates a 3D object of text as a single object.</div>
+ <div class="desc">
+ A class for generating text as a single geometry. It is constructed by providing a string of text, and a hash of
+ parameters consisting of a loaded [page:F... | true |
Other | mrdoob | three.js | bf1efc61c7c48f119c405b1cb3d19f80d0b9f4cf.json | Improve documentation of TextGeometry usage | docs/manual/introduction/Creating-text.html | @@ -61,13 +61,19 @@ <h2>3. Create a model in your favourite 3D application and export to three.js</h
<h2>4. Procedural Text Geometry</h2>
<div>
<p>
- Use this method if you prefer to work purely in three.js or create procedural and dynamic 3d
- text geometries. However, font data files in THREE.js JSON ... | true |
Other | mrdoob | three.js | 2944a3f061ddec5350cc941fe5afe15a0f4b4803.json | add support for Lightimport in VRML
for import PointLight and SpotLight. An AmbientLight is emitted when in the name "AmbientLight" occurs.
exampel: vrml-Code:
DEF Licht_AmbientLight Transform {
translation 0 4.274257 0
children [
DEF LIGHT_Licht_AmbientLight PointLight {
location 0 0 0
rad... | examples/js/loaders/VRMLLoader.js | @@ -415,7 +415,9 @@ THREE.VRMLLoader.prototype = {
};
break;
-
+
++ case 'location':
++ case 'direction':
case 'translation':
case 'scale':
case 'size':
@@ -434,6 +436,8 @@ THREE.VRMLLoader.prototype = {
break;
+ case 'intensity':
+ case ... | false |
Other | mrdoob | three.js | 15544dface5b05cc7ec14f39e211b5fcbda17d24.json | Add missing Toon Material and shader files | src/materials/MeshToonMaterial.js | @@ -0,0 +1,171 @@
+import { Material } from './Material';
+import { MultiplyOperation } from '../constants';
+import { Vector2 } from '../math/Vector2';
+import { Color } from '../math/Color';
+
+/**
+ * @author takahirox / http://github.com/takahirox
+ *
+ * parameters = {
+ * color: <hex>,
+ * specular: <hex>,
+ * ... | true |
Other | mrdoob | three.js | 15544dface5b05cc7ec14f39e211b5fcbda17d24.json | Add missing Toon Material and shader files | src/renderers/shaders/ShaderLib/meshtoon_frag.glsl | @@ -0,0 +1,68 @@
+#define TOON
+
+uniform vec3 diffuse;
+uniform vec3 emissive;
+uniform vec3 specular;
+uniform float shininess;
+uniform float opacity;
+
+#include <common>
+#include <packing>
+#include <color_pars_fragment>
+#include <uv_pars_fragment>
+#include <uv2_pars_fragment>
+#include <map_pars_fragment>
+#in... | true |
Other | mrdoob | three.js | 15544dface5b05cc7ec14f39e211b5fcbda17d24.json | Add missing Toon Material and shader files | src/renderers/shaders/ShaderLib/meshtoon_vert.glsl | @@ -0,0 +1,55 @@
+#define TOON
+
+varying vec3 vViewPosition;
+
+#ifndef FLAT_SHADED
+
+ varying vec3 vNormal;
+
+#endif
+
+#include <common>
+#include <uv_pars_vertex>
+#include <uv2_pars_vertex>
+#include <displacementmap_pars_vertex>
+#include <envmap_pars_vertex>
+#include <color_pars_vertex>
+#include <morphtarget... | true |
Other | mrdoob | three.js | 0c5e84eac5d07aec1de6ae5f0f4286a7dd7f68ee.json | Update shared MMDPhysics | examples/js/animation/MMDPhysics.js | @@ -131,6 +131,14 @@ THREE.MMDPhysics.prototype = {
update: function ( delta ) {
+ this.updateRigidBodies();
+ this.stepSimulation( delta );
+ this.updateBones();
+
+ },
+
+ stepSimulation: function ( delta ) {
+
var unitStep = this.unitStep;
var stepTime = delta;
var maxStepNum = ( ( delta / unitStep... | true |
Other | mrdoob | three.js | 0c5e84eac5d07aec1de6ae5f0f4286a7dd7f68ee.json | Update shared MMDPhysics | examples/js/loaders/MMDLoader.js | @@ -2223,6 +2223,9 @@ THREE.MMDHelper = function ( renderer ) {
this.doOutlineDrawing = true;
this.doCameraAnimation = true;
+ this.sharedPhysics = false;
+ this.masterPhysics = null;
+
this.audioManager = null;
this.camera = null;
@@ -2296,31 +2299,31 @@ THREE.MMDHelper.prototype = {
setPhysicses: func... | true |
Other | mrdoob | three.js | 0c82ecf8a5b7878ac0dff9e94c621692315d1b6f.json | Remove side effect of MMDLoader.loadVmds() | examples/js/loaders/MMDLoader.js | @@ -123,6 +123,7 @@ THREE.MMDLoader.prototype.loadVmds = function ( urls, callback, onProgress, onEr
var scope = this;
var vmds = [];
+ urls = urls.slice();
function run () {
| false |
Other | mrdoob | three.js | f1db204e2d7ebdec7db6cc4b4e8ae7d9d6562c75.json | remove obsolete uniform type properties | examples/js/renderers/WebGLDeferredRenderer.js | @@ -1623,13 +1623,13 @@ THREE.ShaderDeferred = {
uniforms: {
- map: { type: "t", value: null },
- offsetRepeat: { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) },
+ map: { value: null },
+ offsetRepeat: { value: new THREE.Vector4( 0, 0, 1, 1 ) },
- diffuse: { type: "c", value: new THREE.Color( 0... | false |
Other | mrdoob | three.js | 61efe3aad888d3c17ee761664ca7edfa59af5f18.json | update outdated devdependencies | package.json | @@ -51,8 +51,8 @@
"eslint": "^3.10.1",
"eslint-config-mdcs": "^4.2.2",
"qunitjs": "^2.1.1",
- "rollup": "^0.36.3",
- "rollup-watch": "^2.5.0",
+ "rollup": "^0.41.4",
+ "rollup-watch": "^3.2.2",
"uglify-js": "^2.6.0"
}
} | false |
Other | mrdoob | three.js | df1be793fd36a31b94931265d7c756a274985a94.json | Add Normals + groups | src/geometries/ExtrudeGeometry.js | @@ -69,7 +69,7 @@ function ExtrudeBufferGeometry( shapes, options ) {
this.addShapeList( shapes, options );
- this.computeFaceNormals();
+ this.computeVertexNormals();
// can't really use automatic vertex normals
// as then front and back sides get smoothed too
@@ -567,6 +567,8 @@ ExtrudeBufferGeometry.prot... | false |
Other | mrdoob | three.js | c720cc8c0bcd94d5e989474d637bedc4d3bc2c11.json | Change extrudegeometry to buffergeometry | src/geometries/ExtrudeGeometry.js | @@ -1,4 +1,6 @@
-import { Geometry } from '../core/Geometry';
+//import { Geometry } from '../core/Geometry';
+import { BufferGeometry } from '../core/BufferGeometry';
+import { Float32BufferAttribute } from '../core/BufferAttribute';
import { Vector2 } from '../math/Vector2';
import { Face3 } from '../core/Face3';
... | false |
Other | mrdoob | three.js | 17cc0b08bd357d8cff144bcf2d066f8bf1ee7028.json | Use quatEquals on quaternions
eulerEquals was being used to compare quaternions. The fix should have no effects on behaviour. | test/unit/src/math/Euler.js | @@ -80,7 +80,7 @@ QUnit.test( "Quaternion.setFromEuler/Euler.fromQuaternion", function( assert ) {
var v2 = new THREE.Euler().setFromQuaternion( q, v.order );
var q2 = new THREE.Quaternion().setFromEuler( v2 );
- assert.ok( eulerEquals( q, q2 ), "Passed!" );
+ assert.ok( quatEquals( q, q2 ), "Passed!" );
}
... | false |
Other | mrdoob | three.js | 241247c85262d6af884e7f0973a04448376008e3.json | Add channel note to aoMap. | docs/api/materials/MeshStandardMaterial.html | @@ -97,7 +97,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.</div>
<h3>[property:Float aoMapIntensity]</h3>
<div>Int... | false |
Other | mrdoob | three.js | 06b27286cbb551ae0711ec0df71a5900e94aae48.json | remove MultiMaterial from canvas examples | examples/canvas_geometry_panorama.html | @@ -81,7 +81,7 @@
];
- mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MultiMaterial( materials ) );
+ mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), materials );
mesh.scale.x = - 1;
scene.add( mesh );
| true |
Other | mrdoob | three.js | 06b27286cbb551ae0711ec0df71a5900e94aae48.json | remove MultiMaterial from canvas examples | examples/canvas_geometry_panorama_fisheye.html | @@ -81,7 +81,7 @@
];
- mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), new THREE.MultiMaterial( materials ) );
+ mesh = new THREE.Mesh( new THREE.BoxGeometry( 300, 300, 300, 7, 7, 7 ), materials );
mesh.scale.x = - 1;
scene.add( mesh );
| true |
Other | mrdoob | three.js | 06b27286cbb551ae0711ec0df71a5900e94aae48.json | remove MultiMaterial from canvas examples | examples/canvas_geometry_text.html | @@ -92,12 +92,12 @@
var centerOffset = -0.5 * ( geometry.boundingBox.max.x - geometry.boundingBox.min.x );
- var material = new THREE.MultiMaterial( [
+ var materials = [
new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff, overdraw: 0.5 } ),
new THREE.MeshBasicMaterial( { color: 0... | true |
Other | mrdoob | three.js | 06b27286cbb551ae0711ec0df71a5900e94aae48.json | remove MultiMaterial from canvas examples | examples/canvas_materials.html | @@ -93,7 +93,7 @@
}
- materials.push( new THREE.MultiMaterial( materials ) );
+ materials.push( materials );
objects = [];
| true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/js/Car.js | @@ -299,8 +299,8 @@ THREE.Car = function () {
var s = scope.modelScale,
delta = new THREE.Vector3();
- var bodyFaceMaterial = new THREE.MultiMaterial( scope.bodyMaterials );
- var wheelFaceMaterial = new THREE.MultiMaterial( scope.wheelMaterials );
+ var bodyFaceMaterial = scope.bodyMaterials;
+ var ... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/js/UCSCharacter.js | @@ -44,7 +44,7 @@ THREE.UCSCharacter = function() {
geometry.computeBoundingBox();
geometry.computeVertexNormals();
- mesh = new THREE.SkinnedMesh( geometry, new THREE.MultiMaterial() );
+ mesh = new THREE.SkinnedMesh( geometry, [] );
mesh.name = config.character;
scope.root.add( mesh );
| true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_animation_skinning_morph.html | @@ -215,7 +215,7 @@
}
- mesh = new THREE.SkinnedMesh( geometry, new THREE.MultiMaterial( materials ) );
+ mesh = new THREE.SkinnedMesh( geometry, materials );
mesh.name = "Knight Mesh";
mesh.position.set( x, y - bb.min.y * s, z );
mesh.scale.set( s, s, s );
@@ -225,7 +225,7 @@
mesh.re... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_effects_parallaxbarrier.html | @@ -517,7 +517,7 @@
}
- function attachButtonMaterials( materials, faceMaterial, material_indices, car ) {
+ function attachButtonMaterials( materials, faceMaterials, material_indices, car ) {
for( var i = 0; i < materials.length; i++ ) {
@@ -526,7 +526,7 @@
for ( var j = 0; j < material_i... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_geometry_colors_blender.html | @@ -107,7 +107,7 @@
materials[ 0 ].shading = THREE.FlatShading;
- mesh = new THREE.Mesh( geometry, new THREE.MultiMaterial( materials ) );
+ mesh = new THREE.Mesh( geometry, materials );
mesh.position.x = 400;
mesh.scale.x = mesh.scale.y = mesh.scale.z = 250;
scene.add( mesh );
@@ -118,7 +... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_geometry_extrude_shapes.html | @@ -170,7 +170,7 @@
var geometry = new THREE.ExtrudeGeometry( shape, extrudeSettings );
- var mesh = new THREE.Mesh( geometry, new THREE.MultiMaterial( materials ) );
+ var mesh = new THREE.Mesh( geometry, materials );
mesh.position.set( 50, 100, 50 );
| true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_geometry_text.html | @@ -52,7 +52,7 @@
var camera, cameraTarget, scene, renderer;
- var group, textMesh1, textMesh2, textGeo, material;
+ var group, textMesh1, textMesh2, textGeo, materials;
var firstLetter = true;
@@ -181,10 +181,10 @@
}
- material = new THREE.MultiMaterial( [
+ materials = [
new T... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_geometry_text_earcut.html | @@ -110,7 +110,7 @@
var camera, cameraTarget, scene, renderer;
- var group, textMesh1, textMesh2, textGeo, material;
+ var group, textMesh1, textMesh2, textGeo, materials;
var firstLetter = true;
@@ -239,10 +239,10 @@
}
- material = new THREE.MultiMaterial( [
+ materials = [
new... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_geometry_text_pnltri.html | @@ -82,7 +82,7 @@
var camera, cameraTarget, scene, renderer;
- var group, textMesh1, textMesh2, textGeo, material;
+ var group, textMesh1, textMesh2, textGeo, materials;
var firstLetter = true;
@@ -211,10 +211,10 @@
}
- material = new THREE.MultiMaterial( [
+ materials = [
new T... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_loader_ctm_materials.html | @@ -254,23 +254,6 @@
//
- function createScene( geometry, materials, x, y, z, s ) {
-
- geometry.center();
-
- hackMaterials( materials );
-
- var material = new THREE.MultiMaterial( materials );
-
- mesh = new THREE.Mesh( geometry, material );
- mesh.position.set( x, y, z );
- mesh.scale.se... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_loader_json_blender.html | @@ -108,8 +108,6 @@
material.morphTargets = true;
material.color.setHex( 0xffaaaa );
- var faceMaterial = new THREE.MultiMaterial( materials );
-
for ( var i = 0; i < 729; i ++ ) {
// random placement in a grid
@@ -121,7 +119,7 @@
if ( Math.abs( x ) < 2 && Math.abs( z ) < 2 ) c... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_loader_json_objconverter.html | @@ -217,7 +217,7 @@ <h1>OBJ to Three.js converter test</h1>
function createScene( geometry, materials, x, y, z, b ) {
- zmesh = new THREE.Mesh( geometry, new THREE.MultiMaterial( materials ) );
+ zmesh = new THREE.Mesh( geometry, materials );
zmesh.position.set( x, y, z );
zmesh.scale.set( 3, 3,... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_materials.html | @@ -108,7 +108,7 @@
}
- addMesh( geometry, new THREE.MultiMaterial( materials ) );
+ addMesh( geometry, materials );
particleLight = new THREE.Mesh( new THREE.SphereGeometry( 4, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0xffffff } ) );
scene.add( particleLight ); | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_materials_cars.html | @@ -516,7 +516,7 @@
}
- function attachButtonMaterials( materials, faceMaterial, material_indices, car ) {
+ function attachButtonMaterials( materials, faceMaterials, material_indices, car ) {
for( var i = 0; i < materials.length; i ++ ) {
@@ -525,7 +525,7 @@
for ( var j = 0; j < material_... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_materials_lightmap.html | @@ -149,7 +149,7 @@
}
- var mesh = new THREE.Mesh( geometry, new THREE.MultiMaterial( materials ) );
+ var mesh = new THREE.Mesh( geometry, materials );
mesh.scale.multiplyScalar( 100 );
scene.add( mesh ); | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_nearestneighbour.html | @@ -109,7 +109,7 @@
];
- mesh = new THREE.Mesh( new THREE.BoxGeometry( 10000, 10000, 10000, 7, 7, 7 ), new THREE.MultiMaterial( materials ) );
+ mesh = new THREE.Mesh( new THREE.BoxGeometry( 10000, 10000, 10000, 7, 7, 7 ), materials );
mesh.scale.x = - 1;
scene.add(mesh);
| true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_objects_update.html | @@ -47,22 +47,22 @@
//
- var object = createObject( createMultiMaterial(), 1 );
+ var object = createObject( createMaterials(), 1 );
object.position.set( -100, 100, 0 );
scene.add( object );
objectNewGeometry = object;
- object = createObject( createMultiMaterial(), 1 );
+ object =... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_panorama_cube.html | @@ -74,7 +74,7 @@
}
- var skyBox = new THREE.Mesh( new THREE.CubeGeometry( 1, 1, 1 ), new THREE.MultiMaterial( materials ) );
+ var skyBox = new THREE.Mesh( new THREE.CubeGeometry( 1, 1, 1 ), materials );
skyBox.applyMatrix( new THREE.Matrix4().makeScale( 1, 1, - 1 ) );
scene.add( skyBox );
| true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_simple_gi.html | @@ -42,7 +42,9 @@
THREE.Mesh.prototype.clone = function () {
- return new this.constructor( this.geometry.clone(), this.material.clone() ).copy( this );
+ var newMaterial = ( this.material.isMaterial ) ? this.material.clone() : this.material.slice();
+
+ return new this.constructor( this.geometry.clone... | true |
Other | mrdoob | three.js | 9f9fbdee47a5a227fcf334c427dfd81689f297ee.json | remove use of MuliMaterial in webGL examples | examples/webgl_skinning_simple.html | @@ -69,7 +69,7 @@
}
- skinnedMesh = new THREE.SkinnedMesh(geometry, new THREE.MultiMaterial(materials));
+ skinnedMesh = new THREE.SkinnedMesh(geometry, materials );
skinnedMesh.scale.set( 1, 1, 1 );
// Note: We test the corresponding code path with this example - | true |
Other | mrdoob | three.js | 6028312ec0fe149b5534dd5de7b875eaeb148fbc.json | Revise logic as per discussion in #10883 | examples/js/loaders/STLLoader.js | @@ -70,55 +70,23 @@ THREE.STLLoader.prototype = {
}
- // Do we see 'solid' in the first few bytes of the data?
-
// An ASCII STL data must begin with 'solid ' as the first six bytes.
// However, ASCII STLs lacking the SPACE after the 'd' are known to be
- // plentiful.
-
- // This check can likely... | false |
Other | mrdoob | three.js | de1531b3185590e1b4f50c0e895bca786c801715.json | ignore plane render | examples/js/Mirror.js | @@ -6,6 +6,8 @@ THREE.Mirror = function ( width, height, options ) {
THREE.Mesh.call( this, new THREE.PlaneBufferGeometry( width, height ) );
+ if ( options.render === false ) this.geometry.setDrawRange( 0, 0 );
+
var scope = this;
scope.name = 'mirror_' + scope.id;
| true |
Other | mrdoob | three.js | de1531b3185590e1b4f50c0e895bca786c801715.json | ignore plane render | examples/webgl_mirror_nodes.html | @@ -152,7 +152,7 @@
var planeGeo = new THREE.PlaneBufferGeometry( 100.1, 100.1 );
// MIRROR planes
- var groundMirror = new THREE.Mirror( 100, 100, { clipBias: 0.003, textureWidth: WIDTH, textureHeight: HEIGHT } );
+ var groundMirror = new THREE.Mirror( 100, 100, { clipBias: 0.003, textureWidth: WIDTH... | true |
Other | mrdoob | three.js | fae0177d6fca237b6b66d91b556f075a797fe7bd.json | update mirror nodes | examples/js/nodes/inputs/MirrorNode.js | @@ -1,10 +1,10 @@
-THREE.MirrorNode = function( renderer, camera, options ) {
+THREE.MirrorNode = function( mirror, camera, options ) {
THREE.TempNode.call( this, 'v4' );
- this.mirror = renderer instanceof THREE.Mirror ? renderer : new THREE.Mirror( renderer, camera, options );
+ this.mirror = mirror;
- this.t... | true |
Other | mrdoob | three.js | fae0177d6fca237b6b66d91b556f075a797fe7bd.json | update mirror nodes | examples/webgl_mirror_nodes.html | @@ -119,7 +119,6 @@
var gui = new dat.GUI();
- var groundMirror;
var sphereGroup, smallSphere;
var groundMirrorMaterial;
@@ -153,7 +152,7 @@
var planeGeo = new THREE.PlaneBufferGeometry( 100.1, 100.1 );
// MIRROR planes
- groundMirror = new THREE.Mirror( renderer, camera, { clipBias: ... | true |
Other | mrdoob | three.js | 48cfde8e8f17b4a775d0e23372c1b121eb1adc1e.json | Remove unnecessary delete. | examples/js/loaders/GLTFLoader.js | @@ -1118,8 +1118,6 @@ THREE.GLTFLoader = ( function () {
materialParams.specularMap = dependencies.textures[ materialValues.specular ];
- delete materialParams.specular;
-
}
if ( materialValues.shininess !== undefined ) { | false |
Other | mrdoob | three.js | b2fba537f0e0103efebbef9813313fa7ee5e6a11.json | Add support for glTF emission textures. | examples/js/loaders/GLTFLoader.js | @@ -1088,8 +1088,14 @@ THREE.GLTFLoader = ( function () {
materialParams.emissive = new THREE.Color().fromArray( materialValues.emission );
+ } else if ( typeof( materialValues.emission ) === 'string' ) {
+
+ materialParams.map = dependencies.textures[ materialValues.emission ];
+
}
+ delete ... | false |
Other | mrdoob | three.js | 465d2afed38e24972f381118eee9916a275a78aa.json | Set key event handler on control DOM element | examples/js/controls/FirstPersonControls.js | @@ -266,8 +266,8 @@ THREE.FirstPersonControls = function ( object, domElement ) {
this.domElement.removeEventListener( 'mousemove', _onMouseMove, false );
this.domElement.removeEventListener( 'mouseup', _onMouseUp, false );
- window.removeEventListener( 'keydown', _onKeyDown, false );
- window.removeEventList... | true |
Other | mrdoob | three.js | 465d2afed38e24972f381118eee9916a275a78aa.json | Set key event handler on control DOM element | examples/js/controls/FlyControls.js | @@ -267,8 +267,8 @@ THREE.FlyControls = function ( object, domElement ) {
this.domElement.removeEventListener( 'mousemove', _mousemove, false );
this.domElement.removeEventListener( 'mouseup', _mouseup, false );
- window.removeEventListener( 'keydown', _keydown, false );
- window.removeEventListener( 'keyup',... | true |
Other | mrdoob | three.js | 465d2afed38e24972f381118eee9916a275a78aa.json | Set key event handler on control DOM element | examples/js/controls/OrbitControls.js | @@ -221,7 +221,7 @@ THREE.OrbitControls = function ( object, domElement ) {
document.removeEventListener( 'mousemove', onMouseMove, false );
document.removeEventListener( 'mouseup', onMouseUp, false );
- window.removeEventListener( 'keydown', onKeyDown, false );
+ scope.domElement.removeEventListener( 'keydow... | true |
Other | mrdoob | three.js | 465d2afed38e24972f381118eee9916a275a78aa.json | Set key event handler on control DOM element | examples/js/controls/OrthographicTrackballControls.js | @@ -379,7 +379,7 @@ THREE.OrthographicTrackballControls = function ( object, domElement ) {
if ( _this.enabled === false ) return;
- window.removeEventListener( 'keydown', keydown );
+ _this.domElement.removeEventListener( 'keydown', keydown );
_prevState = _state;
@@ -409,7 +409,7 @@ THREE.Orthographic... | true |
Other | mrdoob | three.js | 465d2afed38e24972f381118eee9916a275a78aa.json | Set key event handler on control DOM element | examples/js/controls/TrackballControls.js | @@ -356,7 +356,7 @@ THREE.TrackballControls = function ( object, domElement ) {
if ( _this.enabled === false ) return;
- window.removeEventListener( 'keydown', keydown );
+ _this.domElement.removeEventListener( 'keydown', keydown );
_prevState = _state;
@@ -386,7 +386,7 @@ THREE.TrackballControls = func... | true |
Other | mrdoob | three.js | 6c513a0660a299649f121717b3fc26801dc5af22.json | Fix Quaternion accessors | src/math/Quaternion.js | @@ -89,61 +89,81 @@ Object.assign( Quaternion, {
} );
-Object.assign( Quaternion.prototype, {
+Object.defineProperties( Quaternion.prototype, {
- constructor: Quaternion,
+ "x" : {
- get x () {
+ get: function () {
- return this._x;
+ return this._x;
- },
+ },
- set x ( value ) {
+ set: function ( ... | false |
Other | mrdoob | three.js | e0f8526922ae92a9e3eb289c58e9a19ba92de6f6.json | Fix Euler accessors | src/math/Euler.js | @@ -22,63 +22,83 @@ Euler.RotationOrders = [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ];
Euler.DefaultOrder = 'XYZ';
-Object.assign( Euler.prototype, {
+Object.defineProperties( Euler.prototype, {
- constructor: Euler,
+ "x" : {
- isEuler: true,
+ get: function () {
- get x () {
+ return this._x;
- ret... | false |
Other | mrdoob | three.js | d4ee29216cfbd37cff37d02efbf0ed5179745376.json | Fix Material accessors | src/materials/Material.js | @@ -63,24 +63,27 @@ function Material() {
}
-Object.assign( Material.prototype, EventDispatcher.prototype, {
-
- constructor: Material,
-
- isMaterial: true,
+Object.defineProperty( Material.prototype, "needsUpdate", {
- get needsUpdate() {
+ get: function() {
return this._needsUpdate;
},
-
- set needsU... | false |
Other | mrdoob | three.js | 9757d97f67c70d6c85c828d0973aa85bab7a2b3c.json | Fix BufferAttribute accessors | src/core/BufferAttribute.js | @@ -32,6 +32,12 @@ function BufferAttribute( array, itemSize, normalized ) {
}
+Object.defineProperty( BufferAttribute.prototype, "needsUpdate", {
+
+ set: function(value) { if ( value === true ) this.version ++; }
+
+});
+
Object.assign( BufferAttribute.prototype, {
constructor: BufferAttribute, | false |
Other | mrdoob | three.js | 5f2187fbef3960f2111d498adf5e6a8c50404946.json | Improve Vector2 closure performance | src/math/Vector2.js | @@ -269,17 +269,11 @@ Object.assign( Vector2.prototype, {
clampScalar: function () {
- var min, max;
+ var min = new Vector2();
+ var max = new Vector2();
return function clampScalar( minVal, maxVal ) {
- if ( min === undefined ) {
-
- min = new Vector2();
- max = new Vector2();
-
- }
-
mi... | false |
Other | mrdoob | three.js | d5b9bc6806ea51490eed10ce56f550cf9459bb80.json | Improve Triangle closure performance | src/math/Triangle.js | @@ -193,19 +193,13 @@ Object.assign( Triangle.prototype, {
closestPointToPoint: function () {
- var plane, edgeList, projectedPoint, closestPoint;
+ var plane = new Plane();
+ var edgeList = [ new Line3(), new Line3(), new Line3() ];
+ var projectedPoint = new Vector3();
+ var closestPoint = new Vector3();
... | false |
Other | mrdoob | three.js | 563060ae23cc8602b84588e89a49a5c17428fc6c.json | Improve Quaternion closure performance | src/math/Quaternion.js | @@ -332,7 +332,8 @@ Object.assign( Quaternion.prototype, {
// assumes direction vectors vFrom and vTo are normalized
- var v1, r;
+ var v1 = new Vector3();
+ var r;
var EPS = 0.000001;
| false |
Other | mrdoob | three.js | bece17cccaf55fd8f727bef023036fb74292132f.json | Improve Matrix4 closure performance | src/math/Matrix4.js | @@ -119,12 +119,10 @@ Object.assign( Matrix4.prototype, {
extractRotation: function () {
- var v1;
+ var v1 = new Vector3();
return function extractRotation( m ) {
- if ( v1 === undefined ) v1 = new Vector3();
-
var te = this.elements;
var me = m.elements;
@@ -317,18 +315,12 @@ Object.assign(... | false |
Other | mrdoob | three.js | 2b46f6288c2c570c0eea2471d9c79deff2a06ffd.json | Improve Matrix3 closure performance | src/math/Matrix3.js | @@ -97,12 +97,10 @@ Object.assign( Matrix3.prototype, {
applyToBufferAttribute: function () {
- var v1;
+ var v1 = new Vector3();
return function applyToBufferAttribute( attribute ) {
- if ( v1 === undefined ) v1 = new Vector3();
-
for ( var i = 0, l = attribute.count; i < l; i ++ ) {
v1.x =... | false |
Other | mrdoob | three.js | e3eb4e545a009b6900f2392c445c606e420294df.json | Improve Euler closure performance | src/math/Euler.js | @@ -237,12 +237,10 @@ Object.assign( Euler.prototype, {
setFromQuaternion: function () {
- var matrix;
+ var matrix = new Matrix4();
return function setFromQuaternion( q, order, update ) {
- if ( matrix === undefined ) matrix = new Matrix4();
-
matrix.makeRotationFromQuaternion( q );
return t... | false |
Other | mrdoob | three.js | 7ea7d9db8968e446fff6a92573a4685293b1be70.json | Improve Box3 closure performance | src/math/Box3.js | @@ -300,12 +300,10 @@ Object.assign( Box3.prototype, {
intersectsSphere: ( function () {
- var closestPoint;
+ var closestPoint = new Vector3();
return function intersectsSphere( sphere ) {
- if ( closestPoint === undefined ) closestPoint = new Vector3();
-
// Find the point on the AABB closest to ... | false |
Other | mrdoob | three.js | bdef09a91e2aaadde02e62fea7bc3f78f0fbd52e.json | Improve Loader closure performance | src/loaders/Loader.js | @@ -108,14 +108,12 @@ Object.assign( Loader.prototype, {
CustomBlending: CustomBlending
};
- var color, textureLoader, materialLoader;
+ var color = new Color();
+ var textureLoader = new TextureLoader();
+ var materialLoader = new MaterialLoader();
return function createMaterial( m, texturePath, cros... | false |
Other | mrdoob | three.js | 1be82538036931f87fb068f7d6fa85ea60681070.json | Improve BufferGeometry closure performance | src/core/BufferGeometry.js | @@ -166,12 +166,10 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
// rotate geometry around world x-axis
- var m1;
+ var m1 = new Matrix4();
return function rotateX( angle ) {
- if ( m1 === undefined ) m1 = new Matrix4();
-
m1.makeRotationX( angle );
this.applyMatri... | false |
Other | mrdoob | three.js | 9d3f35969330cb23b96220c1f9f2267a2b798141.json | Fix InterleavedBufferAttribute acessor assignement | src/core/InterleavedBufferAttribute.js | @@ -16,23 +16,19 @@ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal
}
-Object.assign( InterleavedBufferAttribute.prototype, {
-
- constructor: InterleavedBufferAttribute,
+Object.defineProperties( InterleavedBufferAttribute.prototype, {
- isInterleavedBufferAttribute: true,
-
- g... | false |
Other | mrdoob | three.js | aa074e0869c2bb8233eeaaf3c03cf8ff0f863423.json | Move Vector3.applyProjection into Three.Legacy.js | src/Three.Legacy.js | @@ -570,6 +570,12 @@ Object.assign( Vector3.prototype, {
console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
return this.setFromMatrixColumn( matrix, index );
+ },
+ applyProjection: function ( m ) {
+
+ console.warn( 'THREE.Vector3: .applyProjection() has been ... | true |
Other | mrdoob | three.js | aa074e0869c2bb8233eeaaf3c03cf8ff0f863423.json | Move Vector3.applyProjection into Three.Legacy.js | src/math/Vector3.js | @@ -310,14 +310,6 @@ Vector3.prototype = {
},
- applyProjection: function ( m ) {
-
- console.warn( 'THREE.Vector3: .applyProjection() is deprecated. Use .applyMatrix4( m ) instead.' );
-
- return this.applyMatrix4( m );
-
- },
-
applyQuaternion: function ( q ) {
var x = this.x, y = this.y, z = this.z; | true |
Other | mrdoob | three.js | 9d6f2d4ad2a7adbd61e060f494509afc6ff936af.json | Make applyMatrix4 branchless, clean up docs | docs/api/math/Vector3.html | @@ -108,9 +108,7 @@ <h3>[method:Vector3 applyMatrix3]( [page:Matrix3 m] )</h3>
<h3>[method:Vector3 applyMatrix4]( [page:Matrix4 m] )</h3>
<div>
- [page:Matrix4 m] - [page:Matrix4] projection matrix.<br /><br />
-
- Multiplies this vector and m, and divides by perspective.
+ Multiplies this vector (with an im... | true |
Other | mrdoob | three.js | 9d6f2d4ad2a7adbd61e060f494509afc6ff936af.json | Make applyMatrix4 branchless, clean up docs | src/math/Vector3.js | @@ -299,16 +299,12 @@ Vector3.prototype = {
this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ];
this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ];
this.z = e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ];
- var w = e[ 3 ] * x + e[ 7 ] * y + e[ 11 ] * z + e[ 15 ];
+ var w = e[ 3 ] * x + e[ 7 ] *... | true |
Other | mrdoob | three.js | 643f292e9522a5031d4dcdfe6d2cfeaf0f31d008.json | Combine Vector3.applyMatrix4 and applyProjection | src/math/Vector3.js | @@ -293,32 +293,32 @@ Vector3.prototype = {
applyMatrix4: function ( m ) {
- // input: THREE.Matrix4 affine matrix
-
var x = this.x, y = this.y, z = this.z;
var e = m.elements;
this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ];
this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ];
thi... | false |
Other | mrdoob | three.js | d9ca12ad15fa6867745563d4e0908ab3e00ec019.json | Ignore npm-debug.log files | .gitignore | @@ -2,4 +2,5 @@
*.swp
.project
node_modules
-.idea/
\ No newline at end of file
+.idea/
+npm-debug.log | false |
Other | mrdoob | three.js | ef27e7f1933fbdda8a30a9004ab4eee7f9c91127.json | Fix typo in GLTFLoader | examples/js/loaders/GLTFLoader.js | @@ -2049,7 +2049,7 @@ THREE.GLTFLoader = ( function () {
} else {
- console.warn( "WARNING: joint: ''" + jointId + "' could not be found" );
+ console.warn( "WARNING: joint: '" + jointId + "' could not be found" );
}
| false |
Other | mrdoob | three.js | 8583c8e13aba7afc8eae9dd838da74e2a8cd98e7.json | Fix typo in Skeleton | src/objects/Skeleton.js | @@ -64,7 +64,7 @@ function Skeleton( bones, boneInverses, useVertexTexture ) {
} else {
- console.warn( 'THREE.Skeleton bonInverses is the wrong length.' );
+ console.warn( 'THREE.Skeleton boneInverses is the wrong length.' );
this.boneInverses = [];
| false |
Other | mrdoob | three.js | 5a7837eb729f1481baadc454671dad933701faab.json | revert unwanted change | build/three.js | @@ -4781,7 +4781,7 @@
var n = gl.getProgramParameter( program, gl.ACTIVE_UNIFORMS );
- for ( var i = 0; i < n; ++ i ) {
+ for ( var i = 0; i !== n; ++ i ) {
var info = gl.getActiveUniform( program, i ),
path = info.name, | true |
Other | mrdoob | three.js | 5a7837eb729f1481baadc454671dad933701faab.json | revert unwanted change | build/three.module.js | @@ -4775,7 +4775,7 @@ function WebGLUniforms( gl, program, renderer ) {
var n = gl.getProgramParameter( program, gl.ACTIVE_UNIFORMS );
- for ( var i = 0; i < n; ++ i ) {
+ for ( var i = 0; i !== n; ++ i ) {
var info = gl.getActiveUniform( program, i ),
path = info.name, | true |
Other | mrdoob | three.js | 5a7837eb729f1481baadc454671dad933701faab.json | revert unwanted change | src/renderers/webgl/WebGLUniforms.js | @@ -481,7 +481,7 @@ function WebGLUniforms( gl, program, renderer ) {
var n = gl.getProgramParameter( program, gl.ACTIVE_UNIFORMS );
- for ( var i = 0; i < n; ++ i ) {
+ for ( var i = 0; i !== n; ++ i ) {
var info = gl.getActiveUniform( program, i ),
path = info.name, | true |
Other | mrdoob | three.js | 9aab3c6b983a9876ee567c9370fb7987344ebcf1.json | Provide AnimationClip objects from GLTFLoader.
Replaces GLTFLoader.Animations, GLTFAnimation and GLTFInterpolator, and
adds support for AnimationMixer / AnimationAction controls. | examples/js/loaders/GLTFLoader.js | @@ -54,14 +54,14 @@ THREE.GLTFLoader = ( function () {
} );
- parser.parse( function ( scene, cameras, animations ) {
+ parser.parse( function ( scene, cameras, clips ) {
console.timeEnd( 'GLTFLoader' );
var glTF = {
"scene": scene,
"cameras": cameras,
- "animations": animation... | true |
Other | mrdoob | three.js | 9aab3c6b983a9876ee567c9370fb7987344ebcf1.json | Provide AnimationClip objects from GLTFLoader.
Replaces GLTFLoader.Animations, GLTFAnimation and GLTFInterpolator, and
adds support for AnimationMixer / AnimationAction controls. | examples/webgl_loader_gltf.html | @@ -137,6 +137,8 @@
var cameraNames = [];
var defaultCamera = null;
var gltf = null;
+ var mixer = null;
+ var clock = new THREE.Clock();
function onload() {
@@ -312,17 +314,18 @@
}
- if (gltf.animations && gltf.animations.length) {
+ if (gltf.clips && gltf.clips.length) {
- ... | true |
Other | mrdoob | three.js | 52836bac07ba318fbed18e918e78012ca6215d6b.json | fix unique node | examples/js/nodes/TempNode.js | @@ -49,6 +49,12 @@ THREE.TempNode.prototype.build = function( builder, output, uuid, ns ) {
return THREE.GLNode.prototype.build.call( this, builder, output, uuid );
+ } else if ( isUnique ) {
+
+ data.name = data.name || THREE.GLNode.prototype.build.call( this, builder, output, uuid )
+
+ return data.name;... | false |
Other | mrdoob | three.js | 0d1e85694731632281bdc351ae33d4d2b55c89ac.json | fix auto transparency | examples/js/nodes/NodeMaterial.js | @@ -212,7 +212,7 @@ THREE.NodeMaterial.prototype.build = function() {
}
this.lights = this.requestAttribs.light;
- this.transparent = this.requestAttribs.transparent || this.blendMode > THREE.NormalBlending;
+ this.transparent = this.requestAttribs.transparent || this.blending > THREE.NormalBlending;
this.ver... | false |
Other | mrdoob | three.js | 74cc4b17bb52a3238cca4dba8cafab656027a879.json | fix a space | examples/js/loaders/AssimpLoader.js | @@ -1871,7 +1871,9 @@
mesh.mIndexArray.push( f.mIndices[ 0 ] );
} else {
+
throw ( new Error( "Sorry, can't currently triangulate polys. Use the triangulate preprocessor in Assimp." ))
+
}
| false |
Other | mrdoob | three.js | a14d4d60eb4d7fcf9a20a23eeeff19a80dcce5bf.json | remove old loader | examples/js/loaders/ABINloader.js | @@ -1,2055 +0,0 @@
-
-(function(){
-
-
-var Virtulous = {};
-
-
-Virtulous.KeyFrame = function( time, matrix ) {
-
- this.time = time;
- this.matrix = matrix.clone();
- this.position = new THREE.Vector3();
- this.quaternion = new THREE.Quaternion();
- this.scale = new THREE.Vector3( 1, 1, 1 ... | false |
Other | mrdoob | three.js | 7744b5a7019063d53161e4104016639b85da26cb.json | remove math spherical example | examples/files.js | @@ -158,7 +158,6 @@ var files = {
"webgl_materials_variations_toon",
"webgl_materials_video",
"webgl_materials_wireframe",
- "webgl_math_spherical_distribution",
"webgl_mirror",
"webgl_mirror_nodes",
"webgl_modifier_simplifier", | true |
Other | mrdoob | three.js | 7744b5a7019063d53161e4104016639b85da26cb.json | remove math spherical example | examples/webgl_math_spherical_distribution.html | @@ -1,238 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - geometries</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 {
- font-family: Monospace;
- background-color: #... | true |
Other | mrdoob | three.js | 6439d83fff9e1d41c81a538665ee2dfa28df3709.json | Fix example reference in SpotLight docs
Fix reference to the webgl_shadowmap_performance example | docs/api/lights/SpotLight.html | @@ -55,7 +55,7 @@ <h2>Extra Examples</h2>
[example:webgl_materials_bumpmap materials / bumpmap]<br/>
[example:webgl_shading_physical shading / physical]<br/>
[example:webgl_shadowmap shadowmap]<br/>
- [example:webgl_shadowmap_viewer shadowmap / performance]<br/>
+ [example:webgl_shadowmap_performance sha... | false |
Other | mrdoob | three.js | e65efda9df9aac730c5883f788bbc771e4d176a0.json | Fix old reference to gltf.clips | examples/webgl_loader_gltf.html | @@ -541,11 +541,11 @@
function toggleAnimations() {
- var i, len = gltf.clips.length;
+ var i, len = gltf.animations.length;
for (i = 0; i < len; i++) {
- var clip = gltf.clips[i];
+ var clip = gltf.animations[i];
var action = mixer.existingAction( clip );
if (action.isRunni... | false |
Other | mrdoob | three.js | 81e173ab2354b987e1a4c0138dd2c2b7c765fa18.json | add makeEmpty again | src/math/Box3.js | @@ -96,6 +96,8 @@ Box3.prototype = {
setFromPoints: function ( points ) {
+ this.makeEmpty();
+
for ( var i = 0, il = points.length; i < il; i ++ ) {
this.expandByPoint( points[ i ] ); | false |
Other | mrdoob | three.js | 306a8f1d9c4522292b8ffff5e285c150e84253db.json | return this (line) | src/math/Box3.js | @@ -58,6 +58,7 @@ Box3.prototype = {
this.max.set( maxX, maxY, maxZ );
return this;
+
},
setFromBufferAttribute: function ( attribute ) { | false |
Other | mrdoob | three.js | 549f3ab6d0665efdade2f100c7e44ebeedbcf7fe.json | Fix typo with stars geometry
There was no instance of 'geometry', yet vertices were being added to it, and a mesh was being created from it. | docs/api/materials/PointsMaterial.html | @@ -44,13 +44,13 @@ <h2>Examples</h2>
star.y = THREE.Math.randFloatSpread( 2000 );
star.z = THREE.Math.randFloatSpread( 2000 );
- geometry.vertices.push( star );
+ starsGeometry.vertices.push( star )
}
var starsMaterial = new THREE.PointsMaterial( { color: 0x888888 } )
-var starField = new THREE.Points( g... | false |
Other | mrdoob | three.js | 088a75b92c6d4d27c2348e32e0ed300c5c938339.json | remove bower.json from package.json | package.json | @@ -15,8 +15,7 @@
"build/three.module.js",
"src",
"examples/js",
- "examples/fonts",
- "bower.json"
+ "examples/fonts"
],
"directories": {
"doc": "docs", | false |
Other | mrdoob | three.js | d707242f4143eb5dcbada19858ffb1c8ab46d4e5.json | Fix object flickering with CanvasRenderer
`Projector` loops over all visible objects using `o` as the loop variable, but another loop inside that one also uses `o`. Since `var`s are function-scoped, not block-scoped, this can prematurely advance the outer loop and skip rendering some objects entirely. | examples/js/renderers/Projector.js | @@ -444,9 +444,9 @@ THREE.Projector = function () {
if ( groups.length > 0 ) {
- for ( var o = 0; o < groups.length; o ++ ) {
+ for ( var g = 0; g < groups.length; g ++ ) {
- var group = groups[ o ];
+ var group = groups[ g ];
for ( var i = group.start, l = group.start ... | false |
Other | mrdoob | three.js | 62e9cf5d740e1c87e39b6a4c05802a1ad65e0e9a.json | Remove extra semicolon in webvr_shadow | examples/webvr_shadow.html | @@ -47,7 +47,7 @@
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.1, 10 );
dummy.add( camera );
- var geometry = new THREE.TorusKnotGeometry( 0.4, 0.15, 150, 20 );;
+ var geometry = new THREE.TorusKnotGeometry( 0.4, 0.15, 150, 20 );
var material = new THREE.Mes... | false |
Other | mrdoob | three.js | 7180e8f9b299967d27b9e2ad2737c36ee2c871e1.json | Remove unnecessary comma in webgl_rollercoaster | examples/webvr_rollercoaster.html | @@ -241,7 +241,7 @@
effect.render( scene, camera );
- };
+ }
effect.requestAnimationFrame( animate );
| false |
Other | mrdoob | three.js | a40964740d4e68cc6c9da9090ef2368b971b9ebf.json | Remove extra semicolon in webl_tonemapping | examples/webgl_tonemapping.html | @@ -132,7 +132,7 @@
group = new THREE.Group();
scene.add( group );
- var geometry = new THREE.TorusKnotGeometry( 18, 8, 150, 20 );;
+ var geometry = new THREE.TorusKnotGeometry( 18, 8, 150, 20 );
var mesh = new THREE.Mesh( geometry, standardMaterial );
mesh.castShadow = true;
mesh.recei... | false |
Other | mrdoob | three.js | aad415671ab6bbe50d2bf7a2eb188a16dd6f975f.json | Fix extra text in css tag in webgl_shaders_sky | examples/webgl_shaders_sky.html | @@ -16,7 +16,6 @@
background-color: #fff;
margin: 0px;
overflow: hidden;
- text
}
#info { | false |
Other | mrdoob | three.js | 616d54fc9b5b0fb8b10097ed9ae6ec3eee7ce68c.json | Remove unnecessary comma in webgl_shaders_ocean | examples/webgl_shaders_ocean.html | @@ -108,7 +108,7 @@
sunDirection: light.position.clone().normalize(),
sunColor: 0xffffff,
waterColor: 0x001e0f,
- distortionScale: 50.0,
+ distortionScale: 50.0
} );
| false |
Other | mrdoob | three.js | 71db6586cd8843abbbdc9d9d6af5653f87eb7f8a.json | Add missing semicolon in webgl_physics_cloth | examples/webgl_physics_cloth.html | @@ -239,8 +239,8 @@
//var clothGeometry = new THREE.BufferGeometry();
var clothGeometry = new THREE.PlaneBufferGeometry( clothWidth, clothHeight, clothNumSegmentsZ, clothNumSegmentsY );
- clothGeometry.rotateY( Math.PI * 0.5 )
- clothGeometry.translate( clothPos.x, clothPos.y + clothHeight * 0.5, clothPos... | false |
Other | mrdoob | three.js | 65cefeda8c482e9a3d47b7b2ee52978e1c5b58c7.json | Remove unnecessary comma in webgl_nearestnaighbour | examples/webgl_nearestneighbour.html | @@ -128,7 +128,7 @@
pointShaderMaterial = new THREE.ShaderMaterial( {
uniforms: {
tex1: { value: imagePreviewTexture },
- zoom: { value: 9.0 },
+ zoom: { value: 9.0 }
},
vertexShader: document.getElementById( 'vertexshader' ).textContent,
fragmentShader: document.getEleme... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.