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 | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_sea3d_skinning.html | @@ -86,7 +86,7 @@
} );
- loader.onComplete = function ( e ) {
+ loader.onComplete = function () {
// Get the first camera from SEA3D Studio
// use loader.get... to get others objects
@@ -95,7 +95,7 @@
camera.position.copy( cam.position );
camera.rotation.copy( cam.rotation );
- co... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_sea3d_sound.html | @@ -135,7 +135,7 @@
} );
- loader.onComplete = function ( e ) {
+ loader.onComplete = function () {
audioListener = loader.audioListener;
@@ -183,11 +183,10 @@
var element = document.body;
- var pointerlockchange = function ( event ) {
+ var pointerlockchange = function () {
... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_stl.html | @@ -30,7 +30,6 @@
span {
display: inline-block;
width: 60px;
- float: left;
text-align: center;
}
@@ -72,7 +71,7 @@
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 1, 15 );
camera.position.set( 3, 0.15, 3 );
- cameraTarget = new THREE.Vector3(... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_svg.html | @@ -79,7 +79,7 @@
group.scale.multiplyScalar( 0.25 );
group.position.x = - 70;
group.position.y = 70;
- group.scale.y *= -1;
+ group.scale.y *= - 1;
for ( var i = 0; i < paths.length; i ++ ) {
@@ -136,7 +136,7 @@
var group = scene.children[ 1 ];
group.traverse( function (... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_texture_dds.html | @@ -92,24 +92,30 @@
map6.anisotropy = 4;
var cubemap1 = loader.load( 'textures/compressed/Mountains.dds', function ( texture ) {
+
texture.magFilter = THREE.LinearFilter;
texture.minFilter = THREE.LinearFilter;
texture.mapping = THREE.CubeReflectionMapping;
material1.needsUpdate = tr... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_texture_exr.html | @@ -100,7 +100,7 @@
var container, stats;
var camera, scene, renderer;
- var materialHDR, quad, gamma, exposure;
+ var materialHDR, quad;
init();
@@ -115,7 +115,7 @@
var loader = new THREE.EXRLoader();
- loader.load( "textures/piz_compressed.exr", function( texture, textureData ) {
+ ... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_texture_hdr.html | @@ -76,7 +76,7 @@
camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
- new THREE.RGBELoader().load( 'textures/miranda_uncropped.hdr', function( texture, textureData ) {
+ new THREE.RGBELoader().load( 'textures/miranda_uncropped.hdr', function ( texture, textureData ) {
//con... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_texture_pvrtc.html | @@ -62,7 +62,7 @@
//
- var onCube1Loaded = function( texture ){
+ var onCube1Loaded = function ( texture ) {
texture.magFilter = THREE.LinearFilter;
texture.minFilter = THREE.LinearFilter;
@@ -71,7 +71,7 @@
};
- var onCube2Loaded = function( texture ){
+ var onCube2Loaded = f... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_ttf.html | @@ -47,7 +47,7 @@
}
- var container, color;
+ var container;
var camera, cameraTarget, scene, renderer;
var group, textMesh1, textMesh2, textGeo, material;
var firstLetter = true;
@@ -58,8 +58,7 @@
hover = 30,
curveSegments = 4,
bevelThickness = 2,
- bevelSize = 1.5,
- bevel... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_vtk.html | @@ -54,8 +54,6 @@
var camera, controls, scene, renderer;
- var cross;
-
init();
animate();
| true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_loader_x.html | @@ -53,7 +53,7 @@
<td>mech 1</td>
<td><select id="mech1_anime" onchange="mech1_changeAnime(this.value)">
<option value="stand">stand</option>
- <option value="wark">wark</option>
+ <option value="wark">walk</option>
<option value="attack">attack</option>
</select>
</td>
@... | true |
Other | mrdoob | three.js | 4894f4e44448fdf18ea5f4181e4eba252e276a88.json | Fix linter errors in examples WebGL A-L | examples/webgl_lod.html | @@ -51,12 +51,10 @@
}
- var container, stats;
+ var container;
var camera, scene, renderer;
- var geometry, objects;
-
var controls, clock = new THREE.Clock();
init();
@@ -115,7 +113,7 @@
}
lod.position.x = 10000 * ( 0.5 - Math.random() );
- lod.position.y = 7500 * ( 0... | true |
Other | mrdoob | three.js | 9a9d5906c99062e9193fae526b8790b2f31484c6.json | improve some wording in animation docs | docs/manual/en/introduction/Animation-system.html | @@ -52,13 +52,13 @@ <h3>Keyframe Tracks</h3>
<p class="desc">
Inside of such an *AnimationClip* the data for each animated property are stored in a
- separate [page:KeyframeTrack]. Assumed a character object has a [page:Skeleton skeleton],
+ separate [page:KeyframeTrack]. Assuming a character object has a ... | false |
Other | mrdoob | three.js | a872fbd32ff390a10933b66ca972dbd10dfabafd.json | extend shadow far | examples/webgl_materials_cars.html | @@ -127,7 +127,7 @@
shadowLight.shadow.camera.bottom = -2;
shadowLight.shadow.camera.left = -2.5;
shadowLight.shadow.camera.right = 2.5;
- shadowLight.shadow.camera.far = 5.5;
+ shadowLight.shadow.camera.far = 5.75;
shadowLight.shadow.bias = -0.025;
lightHolder.add( shadowLight, shadowL... | false |
Other | mrdoob | three.js | 099d5a377188bf3597de69a0327d179b8d751f89.json | Move statements to individual lines | examples/css3d_molecules.html | @@ -494,9 +494,15 @@
switch ( visualizationType ) {
- case 0: showAtoms(); break;
- case 1: showBonds(); break;
- case 2: showAtomsBonds(); break;
+ case 0:
+ showAtoms();
+ break;
+ case 1:
+ showBonds();
+ break;
+ case 2:
+ showAtomsBonds();
+ ... | false |
Other | mrdoob | three.js | 89db424a342ae0eb339636c64b079deb30d6246e.json | Move statements to seperate lines | examples/canvas_interactive_voxelpainter.html | @@ -165,7 +165,8 @@
switch ( event.keyCode ) {
- case 16: isShiftDown = true; break;
+ case 16: isShiftDown = true;
+ break;
}
@@ -175,7 +176,8 @@
switch ( event.keyCode ) {
- case 16: isShiftDown = false; break;
+ case 16: isShiftDown = false;
+ break;
}
| true |
Other | mrdoob | three.js | 89db424a342ae0eb339636c64b079deb30d6246e.json | Move statements to seperate lines | examples/misc_controls_pointerlock.html | @@ -145,7 +145,8 @@
case 37: // left
case 65: // a
- moveLeft = true; break;
+ moveLeft = true;
+ break;
case 40: // down
case 83: // s | true |
Other | mrdoob | three.js | 89db424a342ae0eb339636c64b079deb30d6246e.json | Move statements to seperate lines | examples/misc_fps.html | @@ -140,7 +140,8 @@
// calculate velocity towards another side of platform from jump pad position
temp.copy( pads[ j ] );
- temp.y = 0; temp.setLength( - 0.8 );
+ temp.y = 0;
+ temp.setLength( - 0.8 );
temp.y = 0.7;
motion.airborne = true;
@@ -227,7 +228,8 @@... | true |
Other | mrdoob | three.js | 0f14339f82ece6cd2a15e303b61ae268e94d7812.json | Move statements onto seperate lines | examples/misc_fps.html | @@ -74,7 +74,8 @@
var index = watchedKeyCodes.indexOf( e.keyCode );
if ( index >= 0 ) {
- keysPressed[ watchedKeyCodes[ index ] ] = down; e.preventDefault();
+ keysPressed[ watchedKeyCodes[ index ] ] = down;
+ e.preventDefault();
}
@@ -138,9 +139,13 @@
if ( pad... | false |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_animation_authoring.html | @@ -119,7 +119,7 @@
}
- });
+ } );
window.addEventListener( 'keyup', function ( event ) {
@@ -132,7 +132,7 @@
}
- });
+ } );
var trackInfo = [
| true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_controls_fly.html | @@ -74,11 +74,11 @@
var MARGIN = 0;
var SCREEN_HEIGHT = window.innerHeight - MARGIN * 2;
- var SCREEN_WIDTH = window.innerWidth;
+ var SCREEN_WIDTH = window.innerWidth;
var camera, controls, scene, renderer, stats;
var geometry, meshPlanet, meshClouds, meshMoon;
- var dirLight, pointLight, am... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_controls_map.html | @@ -125,9 +125,10 @@
window.addEventListener( 'resize', onWindowResize, false );
- var gui = new dat.GUI();
+ var gui = new dat.GUI();
+
+ gui.add( controls, 'screenSpacePanning' );
- gui.add(controls, 'screenSpacePanning');
}
function onWindowResize() { | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_controls_pointerlock.html | @@ -112,20 +112,20 @@
var blocker = document.getElementById( 'blocker' );
var instructions = document.getElementById( 'instructions' );
- instructions.addEventListener( 'click', function ( event ) {
+ instructions.addEventListener( 'click', function () {
controls.lock();
}, false );
-... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_controls_trackball.html | @@ -107,7 +107,7 @@
scene.add( light );
var light = new THREE.DirectionalLight( 0x002288 );
- light.position.set( -1, -1, -1 );
+ light.position.set( - 1, - 1, - 1 );
scene.add( light );
var light = new THREE.AmbientLight( 0x222222 ); | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_controls_transform.html | @@ -78,15 +78,17 @@
var geometry = new THREE.BoxBufferGeometry( 200, 200, 200 );
var material = new THREE.MeshLambertMaterial( { map: texture } );
- orbit = new THREE.OrbitControls(camera, renderer.domElement);
+ orbit = new THREE.OrbitControls( camera, renderer.domElement );
orbit.update();
... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_exporter_gltf.html | @@ -51,14 +51,14 @@
var gltfExporter = new THREE.GLTFExporter();
var options = {
- trs: document.getElementById('option_trs').checked,
- onlyVisible: document.getElementById('option_visible').checked,
- truncateDrawRange: document.getElementById('option_drawrange').checked,
- binary: documen... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_exporter_obj.html | @@ -75,17 +75,17 @@
var exporter = new THREE.OBJExporter();
var result = exporter.parse( scene );
floatingDiv.style.display = 'block';
- floatingDiv.innerHTML = result.split( '\n' ).join ( '<br />' );
+ floatingDiv.innerHTML = result.split( '\n' ).join( '<br />' );
}
function addGeometr... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_exporter_stl.html | @@ -116,11 +116,15 @@
//
var params = {
- ASCII: function() {
+ ASCII: function () {
+
exportASCII();
+
},
- Binary: function() {
+ Binary: function () {
+
exportBinary();
+
}
};
| true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_fps.html | @@ -38,118 +38,145 @@
// player motion parameters
var motion = {
- airborne : false,
- position : new THREE.Vector3(), velocity : new THREE.Vector3(),
- rotation : new THREE.Vector2(), spinning : new THREE.Vector2()
+ airborne: false,
+ position: new THREE.Vector3(), velocity: new THREE.Vector3... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_lights_test.html | @@ -13,7 +13,6 @@
font-family:georgia;
text-align:center;
}
- h1 { }
a { color:skyblue }
canvas { pointer-events:none; z-index:10; }
@@ -36,13 +35,12 @@
var SCREEN_WIDTH = window.innerWidth / 2;
var SCREEN_HEIGHT = window.innerHeight;
- var FLOOR = -250;
var container, stats;... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_lookat.html | @@ -39,7 +39,7 @@
var camera, scene, renderer, stats;
- var mesh, geometry, sphere;
+ var sphere;
var mouseX = 0, mouseY = 0;
@@ -107,7 +107,7 @@
}
- function onDocumentMouseMove(event) {
+ function onDocumentMouseMove( event ) {
mouseX = ( event.clientX - windowHalfX ) * 10;
... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_ubiquity_test.html | @@ -25,8 +25,6 @@
<script>
- var AMOUNT = 100;
-
var stats;
var camera, scene;
@@ -52,7 +50,7 @@
// QRCODE
var loader = new THREE.JSONLoader();
- loader.load( 'models/json/QRCode.json', function ( geometry) {
+ loader.load( 'models/json/QRCode.json', function ( geometry ) {
... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_ubiquity_test2.html | @@ -65,7 +65,7 @@
// SPRITES - from Sprite Sheet
- texture1 = textureLoader.load( 'textures/UV_Grid_Sm.jpg', function() {
+ texture1 = textureLoader.load( 'textures/UV_Grid_Sm.jpg', function () {
texture1.wrapS = THREE.ClampToEdgeWrapping;
texture1.wrapT = THREE.ClampToEdgeWrapping; | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/misc_uv_tests.html | @@ -18,7 +18,7 @@
* as well as allow a new user to visualize what UVs are about.
*/
- function test(name, geometry) {
+ function test( name, geometry ) {
var d = document.createElement( 'div' );
@@ -34,29 +34,29 @@
for ( var i = 0; i < 10; i ++ ) {
- points.push( new THREE.Vector2( ... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_cubes.html | @@ -153,19 +153,26 @@
}
function onPointerRestricted() {
+
var pointerLockElement = renderer.domElement;
- if ( pointerLockElement && typeof(pointerLockElement.requestPointerLock) === 'function' ) {
+ if ( pointerLockElement && typeof ( pointerLockElement.requestPointerLock ) === 'function' ) {
+
... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_dragging.html | @@ -77,9 +77,9 @@
light.position.set( 0, 6, 0 );
light.castShadow = true;
light.shadow.camera.top = 2;
- light.shadow.camera.bottom = -2;
+ light.shadow.camera.bottom = - 2;
light.shadow.camera.right = 2;
- light.shadow.camera.left = -2;
+ light.shadow.camera.left = - 2;
light.shado... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_paint.html | @@ -40,16 +40,12 @@
var shapes = {};
var up = new THREE.Vector3( 0, 1, 0 );
- var vector = new THREE.Vector3();
var vector1 = new THREE.Vector3();
var vector2 = new THREE.Vector3();
var vector3 = new THREE.Vector3();
var vector4 = new THREE.Vector3();
- var point4 = new THREE.Vector3()... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_panorama.html | @@ -107,7 +107,7 @@
canvas.height = tileWidth;
canvas.width = tileWidth;
context.drawImage( imageObj, tileWidth * i, 0, tileWidth, tileWidth, 0, 0, tileWidth, tileWidth );
- textures[ i ].image = canvas
+ textures[ i ].image = canvas;
textures[ i ].needsUpdate = true;
} | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_rollercoaster.html | @@ -128,7 +128,7 @@
var t1 = Math.max( 0, t - delta );
var t2 = Math.min( 1, t + delta );
- return vector2.copy( this.getPointAt ( t2 ) )
+ return vector2.copy( this.getPointAt( t2 ) )
.sub( this.getPointAt( t1 ) ).normalize();
} | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_sandbox.html | @@ -93,7 +93,7 @@
var texture3 = loader.load( "textures/lensflare/lensflare3.png" );
var lensflare = new THREE.Lensflare();
- lensflare.position.set( 0, 5, -5 );
+ lensflare.position.set( 0, 5, - 5 );
lensflare.addElement( new THREE.LensflareElement( texture0, 700, 0 ) );
lensflare.addElemen... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_sculpt.html | @@ -37,7 +37,7 @@
var camera, scene, renderer;
var controller1, controller2;
- var blob, vector;
+ var blob;
var points = [];
@@ -95,9 +95,9 @@
light.position.set( 0, 6, 0 );
light.castShadow = true;
light.shadow.camera.top = 2;
- light.shadow.camera.bottom = -2;
+ light.shado... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_vive_paint.html | @@ -43,16 +43,12 @@
var shapes = {};
var up = new THREE.Vector3( 0, 1, 0 );
- var vector = new THREE.Vector3();
var vector1 = new THREE.Vector3();
var vector2 = new THREE.Vector3();
var vector3 = new THREE.Vector3();
var vector4 = new THREE.Vector3();
- var point4 = new THREE.Vector3()... | true |
Other | mrdoob | three.js | c1f6878d23b0401e718776e9e80b77fa7e25832c.json | Fix linter errors | examples/webvr_vive_sculpt.html | @@ -39,7 +39,7 @@
var camera, scene, renderer;
var controller1, controller2;
- var blob, vector;
+ var blob;
var points = [];
@@ -97,9 +97,9 @@
light.position.set( 0, 6, 0 );
light.castShadow = true;
light.shadow.camera.top = 2;
- light.shadow.camera.bottom = -2;
+ light.shado... | true |
Other | mrdoob | three.js | baa7bec6fd58d7b0baef2cf79847a91fca495bca.json | remove unnecessary checks | examples/js/loaders/VTKLoader.js | @@ -777,37 +777,10 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
delete ele[ '#text' ];
- // Get the content and optimize it
- if ( ele.attributes.type === 'Float32' ) {
-
- if ( ele.attributes.format === 'binary' ) {
-
- if ( ! compressed ) {
-
- tx... | false |
Other | mrdoob | three.js | 1e2dcbd8a38475aebabae38785372131cf24159f.json | Use image.src if HTMLCanvasElement is undefined | src/extras/ImageUtils.js | @@ -10,7 +10,11 @@ var ImageUtils = {
var canvas;
- if ( image instanceof HTMLCanvasElement ) {
+ if ( typeof HTMLCanvasElement == 'undefined' ) {
+
+ return image.src;
+
+ } if ( image instanceof HTMLCanvasElement ) {
canvas = image;
| false |
Other | mrdoob | three.js | 269ff3d7dfb2679dcf30c3ff0a15d2ba8dc79766.json | Remove gl variable | examples/webgl_gpgpu_water.html | @@ -633,7 +633,6 @@
var currentRenderTarget = gpuCompute.getCurrentRenderTarget( heightmapVariable );
readWaterLevelShader.uniforms[ "texture" ].value = currentRenderTarget.texture;
- var gl = renderer.context;
for ( var i = 0; i < NUM_SPHERES; i ++ ) {
| false |
Other | mrdoob | three.js | 684eb5ed3910b2b7da5099ece1d5f34f119be070.json | Update code style | editor/js/Sidebar.Geometry.ExtrudeGeometry.js | @@ -12,20 +12,20 @@ Sidebar.Geometry.ExtrudeGeometry = function ( editor, object ) {
var geometry = object.geometry;
var parameters = geometry.parameters;
- var options = parameters.options;
- options.curveSegments = options.curveSegments != undefined ? options.curveSegments : 12;
+ var options = parameters.opt... | false |
Other | mrdoob | three.js | f04b450af203ecd829516c45ad5cc43b20f9cd96.json | Add all extrude parameters | editor/js/Sidebar.Geometry.ExtrudeGeometry.js | @@ -2,7 +2,7 @@
* @author Temdog007 / http://github.com/Temdog007
*/
-Sidebar.Geometry.BoxGeometry = function ( editor, object ) {
+Sidebar.Geometry.ExtrudeGeometry = function ( editor, object ) {
var strings = editor.strings;
@@ -12,21 +12,20 @@ Sidebar.Geometry.BoxGeometry = function ( editor, object ) {
... | true |
Other | mrdoob | three.js | f04b450af203ecd829516c45ad5cc43b20f9cd96.json | Add all extrude parameters | editor/js/Strings.js | @@ -143,6 +143,7 @@ var Strings = function ( config ) {
'sidebar/geometry/extrude_geometry/bevelSize': 'Size',
'sidebar/geometry/extrude_geometry/bevelOffset': 'Offset',
'sidebar/geometry/extrude_geometry/bevelSegments': 'Segments',
+ 'sidebar/geometry/extrude_geometry/shape': 'Convert to Shape',
's... | true |
Other | mrdoob | three.js | f9b0ba6fd2654861536f89ae0c936d92b901effa.json | Add curve segments to extrude options | editor/js/Sidebar.Geometry.ShapeGeometry.js | @@ -32,7 +32,7 @@ Sidebar.Geometry.ShapeGeometry = function ( editor, object ) {
function changeShape() {
editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
- geometry.parameters.shapes,
+ parameters.shapes,
curveSegments.getValue()
) ) );
@@ -41,7 +41,9 @@ Sidebar.Geometry.... | false |
Other | mrdoob | three.js | 350a8de17783b0272dabce1efc612df1824f8829.json | Add options to ShapeGeometry | editor/index.html | @@ -131,6 +131,7 @@
<script src="js/Sidebar.Geometry.PlaneGeometry.js"></script>
<script src="js/Sidebar.Geometry.RingGeometry.js"></script>
<script src="js/Sidebar.Geometry.SphereGeometry.js"></script>
+ <script src="js/Sidebar.Geometry.ShapeGeometry.js"></script>
<script src="js/Sidebar.Geometry.Tetrahed... | true |
Other | mrdoob | three.js | 350a8de17783b0272dabce1efc612df1824f8829.json | Add options to ShapeGeometry | editor/js/Sidebar.Geometry.ShapeGeometry.js | @@ -0,0 +1,53 @@
+/**
+ * @author Temdog007 / http://github.com/Temdog007
+ */
+
+Sidebar.Geometry.ShapeGeometry = function ( editor, object ) {
+
+ var strings = editor.strings;
+
+ var signals = editor.signals;
+
+ var container = new UI.Row();
+
+ var geometry = object.geometry;
+ var parameters = geometry.parameter... | true |
Other | mrdoob | three.js | 350a8de17783b0272dabce1efc612df1824f8829.json | Add options to ShapeGeometry | editor/js/Strings.js | @@ -164,6 +164,9 @@ var Strings = function ( config ) {
'sidebar/geometry/ring_geometry/thetastart': 'Theta start',
'sidebar/geometry/ring_geometry/thetalength': 'Theta length',
+ 'sidebar/geometry/shape_geometry/curveSegments': 'Curve Segments',
+ 'sidebar/geometry/shape_geometry/extrude': 'Extrude',
+
... | true |
Other | mrdoob | three.js | 15ee4cf3b3cb6c8bbec642c22b3645e98f1511c8.json | Remove redefinition of fog chunk | examples/js/effects/OutlineEffect.js | @@ -108,8 +108,6 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
var vertexShaderChunk = [
- "#include <fog_pars_vertex>",
-
"uniform float outlineThickness;",
"vec4 calculateOutline( vec4 pos, vec3 objectNormal, vec4 skinned ) {", | false |
Other | mrdoob | three.js | f70703ac764751aef3086a29d02af3c17b073301.json | Add error log if Collada file can't be parsed | examples/js/loaders/ColladaLoader.js | @@ -3824,6 +3824,14 @@ THREE.ColladaLoader.prototype = {
var collada = getElementsByTagName( xml, 'COLLADA' )[ 0 ];
+ var parserError = xml.getElementsByTagName( 'parsererror' )[ 0 ];
+ if ( parserError !== undefined ) {
+
+ console.error( 'ColladaLoader: Failed to parse collada file.', parserError );
+ re... | false |
Other | mrdoob | three.js | 345f9cc287c2a5d5e3c4ac96a4f3cebc6779dfa4.json | Remove unneeded closure | src/loaders/ObjectLoader.js | @@ -580,284 +580,280 @@ Object.assign( ObjectLoader.prototype, {
},
- parseObject: function () {
+ parseObject: function ( data, geometries, materials ) {
- return function parseObject( data, geometries, materials ) {
+ var object;
- var object;
+ function getGeometry( name ) {
- function getGeometry... | false |
Other | mrdoob | three.js | 3d3343d9c147816c6f17814befb81e7a3d27691a.json | Update object matrix | src/loaders/ObjectLoader.js | @@ -582,8 +582,6 @@ Object.assign( ObjectLoader.prototype, {
parseObject: function () {
- var matrix = new Matrix4();
-
return function parseObject( data, geometries, materials ) {
var object;
@@ -797,8 +795,8 @@ Object.assign( ObjectLoader.prototype, {
if ( data.name !== undefined ) object.name = d... | false |
Other | mrdoob | three.js | 20527db3b58a27a9c0119152ce9840cbbd2c04f6.json | add points to obj loader | examples/js/loaders/OBJLoader.js | @@ -216,6 +216,15 @@ THREE.OBJLoader = ( function () {
},
+ addVertexPoint: function ( a ) {
+
+ var src = this.vertices;
+ var dst = this.object.geometry.vertices;
+
+ dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] );
+
+ },
+
addVertexLine: function ( a ) {
var src = this.vertices;... | true |
Other | mrdoob | three.js | 20527db3b58a27a9c0119152ce9840cbbd2c04f6.json | add points to obj loader | examples/obj/pointCloudBox/pointCloudBox.obj | @@ -0,0 +1,26 @@
+# Vertices: 8
+# Points: 0
+# Lines: 0
+# Faces: 6
+# Materials: 1
+
+o 1
+
+# Vertex list
+
+v -0.5 -0.5 0.5
+v -0.5 -0.5 -0.5
+v -0.5 0.5 -0.5
+v -0.5 0.5 0.5
+v 0.5 -0.5 0.5
+v 0.5 -0.5 -0.5
+v 0.5 0.5 -0.5
+v 0.... | true |
Other | mrdoob | three.js | f960bf42a5b6c1accae46557dbdf4084debc032c.json | fix minification bug | examples/js/loaders/FBXLoader.js | @@ -2893,7 +2893,7 @@
},
- parseSubNode( name, node, subNode ) {
+ parseSubNode: function ( name, node, subNode ) {
// special case: child node is single property
if ( subNode.singleProperty === true ) { | false |
Other | mrdoob | three.js | 8e56415cc65d0e0d061e559e94b07006f8a2eaa0.json | Add GLTFLoader PointsMaterial support | examples/js/loaders/GLTFLoader.js | @@ -2120,6 +2120,24 @@ THREE.GLTFLoader = ( function () {
} else if ( primitive.mode === WEBGL_CONSTANTS.POINTS ) {
+ var cacheKey = 'PointsMaterial:' + material.uuid;
+
+ var pointsMaterial = scope.cache.get( cacheKey );
+
+ if ( ! pointsMaterial ) {
+
+ pointsMaterial = new THREE.Points... | false |
Other | mrdoob | three.js | 86d299d368eb75cf37abcc911e2d2ad04ac2dca8.json | use Scene.onBeforeRender and .onAfterRender | examples/webgl_tiled_forward.html | @@ -0,0 +1,343 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - tiled forward lighting</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+ <style>
+ body {
+ font-family: Monospace;
+ background-color: #101010;... | true |
Other | mrdoob | three.js | 86d299d368eb75cf37abcc911e2d2ad04ac2dca8.json | use Scene.onBeforeRender and .onAfterRender | src/renderers/WebGLRenderer.js | @@ -1105,6 +1105,8 @@ function WebGLRenderer( parameters ) {
}
+ scene.onBeforeRender( _this, scene, camera, renderTarget );
+
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
_frustum.setFromMatrix( _projScreenMatrix );
@@ -1207,6 +1209,8 @@ function WebGLRender... | true |
Other | mrdoob | three.js | b9ea7e900b1f861f47dd62ffacf330414c594f1b.json | Improve FB2Tex example one more time | examples/webgl_framebuffer_texture.html | @@ -116,10 +116,14 @@
//
- texture = new THREE.Texture();
- texture.image = new Image( imageWidth, imageHeight );
+ var canvas = document.createElement( 'canvas' );
+ canvas.width = imageWidth;
+ canvas.height = imageHeight;
+
+ texture = new THREE.CanvasTexture( canvas );
texture.format... | false |
Other | mrdoob | three.js | 7376beb63a46bd2d068626a646a8a7e12ed14a04.json | Improve FB2Tex example | examples/files.js | @@ -18,6 +18,7 @@ var files = {
"webgl_effects_parallaxbarrier",
"webgl_effects_peppersghost",
"webgl_effects_stereo",
+ "webgl_framebuffer_texture",
"webgl_geometries",
"webgl_geometries_parametric",
"webgl_geometry_colors", | true |
Other | mrdoob | three.js | 7376beb63a46bd2d068626a646a8a7e12ed14a04.json | Improve FB2Tex example | examples/webgl_framebuffer_texture.html | @@ -40,8 +40,8 @@
}
#overlay > div {
- height: 256px;
- width: 256px;
+ height: 128px;
+ width: 128px;
border: 1px solid white;
}
</style>
@@ -75,8 +75,8 @@
var dpr = window.devicePixelRatio;
- var imageWidth = 256 * dpr;
- var imageHeight = 256 * dpr;
+ var image... | true |
Other | mrdoob | three.js | 8485ffd4815b506f876b18f8676a50aee13d7a29.json | Add crossFadeFrom & crossFadeTo | test/unit/src/animation/AnimationAction.tests.js | @@ -29,6 +29,32 @@ function createAnimation(){
}
+function createTwoAnimations(){
+
+ var root = new Object3D();
+ var mixer = new AnimationMixer(root);
+ var track = new NumberKeyframeTrack( ".rotation[x]", [ 0, 1000 ], [ 0, 360 ] );
+ var clip = new AnimationClip( "clip1", 1000, [track] );
+ var animati... | false |
Other | mrdoob | three.js | 9e4849ace7b9e8ebfbda022f9f32e3bf18e68dee.json | simplify skeleton building | examples/js/loaders/FBXLoader.js | @@ -2008,67 +2008,16 @@
function bindSkeleton( FBXTree, skeletons, geometryMap, modelMap, connections, sceneGraph ) {
- // Now with the bones created, we can update the skeletons and bind them to the skinned meshes.
- sceneGraph.updateMatrixWorld( true );
-
- var worldMatrices = new Map();
-
- // Put skeleton... | false |
Other | mrdoob | three.js | afe2eec9376ec28685cbafec4685917d6c74f359.json | Add tests for fadeIn & fadeOut | test/unit/src/animation/AnimationAction.tests.js | @@ -273,15 +273,37 @@ export default QUnit.module( 'Animation', () => {
} );
- QUnit.todo( "fadeIn", ( assert ) => {
+ QUnit.test( "fadeIn", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
+ var {mixer, animationAction} = createAnimation();
+ animationAction.f... | false |
Other | mrdoob | three.js | c7df4e9fef4107bc580848744ecf7391e545ee6c.json | add real tests | test/unit/src/animation/AnimationAction.tests.js | @@ -1,333 +1,343 @@
-/**
- * @author TristanVALCKE / https://github.com/Itee
- */
-/* global QUnit */
-
-import { AnimationAction } from '../../../../src/animation/AnimationAction';
-import { AnimationMixer } from '../../../../src/animation/AnimationMixer';
-import { AnimationClip } from '../../../../src/animation/Anim... | false |
Other | mrdoob | three.js | 26a4288b01e45d0ba61dc59bb0588642d587db49.json | Restore previous renderTarget after update() | examples/js/pmrem/PMREMGenerator.js | @@ -90,6 +90,7 @@ THREE.PMREMGenerator.prototype = {
var gammaOutput = renderer.gammaOutput;
var toneMapping = renderer.toneMapping;
var toneMappingExposure = renderer.toneMappingExposure;
+ var renderTarget = renderer.getCurrentRenderTarget();
renderer.toneMapping = THREE.LinearToneMapping;
renderer.... | false |
Other | mrdoob | three.js | 8ecba818d500f6b8b4453043e08932232e74e3ed.json | Fix markup typos in WebGLRenderTargetCube.html | docs/api/renderers/WebGLRenderTargetCube.html | @@ -1,71 +1,71 @@
-<!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>
- [pa... | false |
Other | mrdoob | three.js | 3e91cc25eb0d8e8070681a87b0a0e48c5454fda2.json | translate the rest of audio api page. | docs/api/zh/audio/AudioAnalyser.html | @@ -11,15 +11,15 @@
<h1>[name]</h1>
<p class="desc">
- Create a AudioAnalyser object, which uses an [link:https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode AnalyserNode]
- to analyse audio data.<br /><br />
+ 创建AudioAnalyser对象, 使用[link:https://developer.mozilla.org/en-US/docs/Web/API/AnalyserN... | true |
Other | mrdoob | three.js | 3e91cc25eb0d8e8070681a87b0a0e48c5454fda2.json | translate the rest of audio api page. | docs/api/zh/audio/AudioContext.html | @@ -12,30 +12,30 @@
<h1>[name]</h1>
<p class="desc">
- This contains methods for setting up an [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext].<br /><br />
+ 包含用来设置[link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext]的方法.<br /><br />
- Used inte... | true |
Other | mrdoob | three.js | 3e91cc25eb0d8e8070681a87b0a0e48c5454fda2.json | translate the rest of audio api page. | docs/api/zh/audio/AudioListener.html | @@ -13,13 +13,13 @@
<h1>[name]</h1>
<p class="desc">
- The [name] represents a virtual [link:https://developer.mozilla.org/de/docs/Web/API/AudioListener listener] of the all positional and non-positional audio effects in the scene.</br>
- A three.js application usually creates a single instance of [name]. I... | true |
Other | mrdoob | three.js | 3e91cc25eb0d8e8070681a87b0a0e48c5454fda2.json | translate the rest of audio api page. | docs/api/zh/audio/PositionalAudio.html | @@ -13,13 +13,13 @@
<h1>[name]</h1>
<p class="desc">
- Create a positional audio object.<br /><br />
+ 创建一个位置相关的音频对象.<br /><br />
- This uses the [link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Web Audio API].
+ 使用了[link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A... | true |
Other | mrdoob | three.js | fb0eb7799f247193b286c5ea42020aba0eb6d08c.json | add readme for nrrd model source/license | examples/models/nrrd/README.txt | @@ -0,0 +1,14 @@
+# Source and license of the files in this directory
+
+
+## stent.nrrd
+
+A 3D volume converted from stent.npz from the imageio project.
+https://imageio.readthedocs.io/en/latest/standardimages.html
+
+It is in the public domain.
+
+
+## l.nrrd
+
+Unknown | false |
Other | mrdoob | three.js | 96c1f744eef6498e3c9dd15cc41a2235a070da40.json | Update VRMLLoader to import vertex colors.
#14814
Updates the VRML loader so that it imports vertex colors properly.
Also implements parsing of `colorIndex`, `normalIndex` & `creaseAngle`, which still needs to be properly implemented. | examples/js/loaders/VRMLLoader.js | @@ -210,6 +210,7 @@ THREE.VRMLLoader.prototype = {
scope.angles = [];
break;
+ case 'color':
case 'skyColor':
case 'groundColor':
scope.recordingFieldname = fieldName;
@@ -224,7 +225,9 @@ THREE.VRMLLoader.prototype = {
scope.points = [];
break;
+ case 'colorInd... | false |
Other | mrdoob | three.js | 7b0c2f2f54f10febf81ada1d4b1774276665cc61.json | translate audio api page. | docs/api/zh/audio/Audio.html | @@ -13,13 +13,13 @@
<h1>[name]</h1>
<p class="desc">
- Create a non-positional ( global ) audio object.<br /><br />
+ 创建一个( 全局 ) audio对象.<br /><br />
- This uses the [link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Web Audio API].
+ 使用 [link:https://developer.mozilla.org/en-US/docs... | false |
Other | mrdoob | three.js | eaa0c6d491d2646ebf719f25a1d50638e246fb39.json | Add volume rendering example | examples/js/shaders/VolumeShader.js | @@ -0,0 +1,320 @@
+// Author: Almar Klein
+// Description: Shaders to render 3D volumes using raycasting.
+// The applied techniques are based on similar implementations in the Visvis and Vispy projects.
+// This is not the only approach, therefore it's marked 1.
+
+
+THREE.ShaderLib[ 'volumerender1' ] = {
+ uniforms: ... | true |
Other | mrdoob | three.js | eaa0c6d491d2646ebf719f25a1d50638e246fb39.json | Add volume rendering example | examples/webgl_materials_texture3d_volume1.html | @@ -0,0 +1,294 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - loaders - vtk loader</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;
+ backgroun... | true |
Other | mrdoob | three.js | 39f09176735e00ceba688722c6fc2843a919d5c4.json | Update VRMLLoader to support normals. #14814
Allows the VRMLLoader to import normals that are defined in the file.
Also fixes a bug where uvs would be an array filled with `undefined` values if model contained no UV coordinates. | examples/js/loaders/VRMLLoader.js | @@ -218,6 +218,7 @@ THREE.VRMLLoader.prototype = {
break;
case 'point':
+ case 'vector':
scope.recordingFieldname = fieldName;
scope.isRecordingPoints = true;
scope.points = [];
@@ -303,6 +304,22 @@ THREE.VRMLLoader.prototype = {
}
+ if ( node.nodeType == 'Normal' )... | false |
Other | mrdoob | three.js | 22a52dc81217260d5d97efdda68bc597eac2029f.json | remove unused variables, correct formatting | examples/webgl_materials_cars.html | @@ -305,10 +305,6 @@
// set materials to the current values of the selection menus
function updateMaterials() {
- var bodyMatName = bodyMatSelect.options[ bodyMatSelect.selectedIndex ].value;
- var rimMatName = rimMatSelect.options[ rimMatSelect.selectedIndex ].value;
- var glassMatName = glassMatSel... | false |
Other | mrdoob | three.js | f169f50b2e23ee6df276bbc47648cc5fe0ab81d0.json | add eof newline | examples/webgl_materials_cars.html | @@ -397,4 +397,4 @@
</script>
</body>
-</html>
\ No newline at end of file
+</html> | false |
Other | mrdoob | three.js | 1f86be32ff4f1634f187637ae273a7313b99014c.json | switch rotation axes | examples/js/Car.js | @@ -3,9 +3,9 @@
* @author Lewy Blue https://github.com/looeee
*
* The model is expected to follow real world car proportions. You can try unusual car types
- * but your results may be unexpected. Scaled models are also not supported
+ * but your results may be unexpected. Scaled models are also not supported.
*... | false |
Other | mrdoob | three.js | 3c9c090fedcbf6761df7d940cfd2ba3b0ecd4990.json | fix bug 2 | src/math/Box3.js | @@ -384,7 +384,7 @@ Object.assign( Box3.prototype, {
}
- return ( min <= -plane.constant && max >= -plane.constant );
+ return ( min <= - plane.constant && max >= - plane.constant );
},
| false |
Other | mrdoob | three.js | 9b7f7851d9be264cad25b4982d768b186e0f8fa7.json | Update Useful-links.html to sync with en doc. | docs/manual/zh/introduction/Useful-links.html | @@ -109,7 +109,7 @@ <h2>示例</h2>
<h2>工具</h2>
<ul>
<li>
- [link:http://www.physgl.org/ physgl.org] - javascript front-end with wrappers to three.js, to bring WebGL
+ [link:http://www.physgl.org/ physgl.org] - JavaScript front-end with wrappers to three.js, to bring WebGL
graphics to students learning p... | false |
Other | mrdoob | three.js | 096bcd9c43cf0fd1ca1c4cda27cd4449d774e8f2.json | translate spherical page. | docs/api/zh/math/Spherical.html | @@ -8,26 +8,26 @@
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
- <h1>[name]</h1>
+ <h1>球坐标([name])</h1>
- <p class="desc">A point's [link:https://en.wikipedia.org/wiki/Spherical_coordinate_system spherical coordinates].</p>
+ <p class="desc">一个点的[link:https://en.wikipedia.org/wi... | false |
Other | mrdoob | three.js | 46ef152cf371b14da18a215ad378cc54659b8e1f.json | Pull request comments | examples/js/loaders/GLTFLoader.js | @@ -1528,7 +1528,7 @@ THREE.GLTFLoader = ( function () {
}
- function createGeometryKey( primitiveDef ) {
+ function createPrimitiveKey( primitiveDef ) {
var dracoExtension = primitiveDef.extensions && primitiveDef.extensions[ EXTENSIONS.KHR_DRACO_MESH_COMPRESSION ];
var geometryKey;
@@ -1585,7 +1585,7 @@... | false |
Other | mrdoob | three.js | 9be5d8affd61d600ce5b1790b23a9caf28d5fc40.json | Prevent cursor up and cursor down from scrolling | examples/js/controls/OrbitControls.js | @@ -539,6 +539,10 @@ THREE.OrbitControls = function ( object, domElement ) {
//console.log( 'handleKeyDown' );
+ // prevent the browser from scrolling on cursor up/down
+
+ event.preventDefault();
+
switch ( event.keyCode ) {
case scope.keys.UP: | false |
Other | mrdoob | three.js | 4ef4b6d878060fab2705d3da8e18c3d3bae215d6.json | Add stencil parameter and constants | src/constants.js | @@ -142,3 +142,23 @@ export var BasicDepthPacking = 3200;
export var RGBADepthPacking = 3201;
export var TangentSpaceNormalMap = 0;
export var ObjectSpaceNormalMap = 1;
+
+// StencilOp
+export var ZERO = 0;
+export var KEEP = 7680;
+export var REPLACE = 7681;
+export var INCR = 7682;
+export var DECR = 7683;
+export... | true |
Other | mrdoob | three.js | 4ef4b6d878060fab2705d3da8e18c3d3bae215d6.json | Add stencil parameter and constants | src/materials/Material.js | @@ -40,6 +40,8 @@ function Material() {
this.depthTest = true;
this.depthWrite = true;
+ this.stencil = null;
+
this.clippingPlanes = null;
this.clipIntersection = false;
this.clipShadows = false; | true |
Other | mrdoob | three.js | 4ef4b6d878060fab2705d3da8e18c3d3bae215d6.json | Add stencil parameter and constants | src/renderers/webgl/WebGLState.js | @@ -677,6 +677,16 @@ function WebGLState( gl, extensions, utils, capabilities ) {
depthBuffer.setMask( material.depthWrite );
colorBuffer.setMask( material.colorWrite );
+ var stencil = material.stencil;
+ var useStencil = stencil !== null;
+ stencilBuffer.setTest( useStencil );
+ if ( useStencil ) {
+
+ ... | true |
Other | mrdoob | three.js | c57b480e7b7f93c8808bfcd0bd9735e0cb774e26.json | Add newline at end of file | utils/modularize.js | @@ -83,7 +83,7 @@ function convert( path, ignoreList ) {
var keys = Object.keys( dependencies ).sort().map( value => '\n\t' + value ).toString();
var imports = `import {${keys}\n} from "../../../build/three.module.js";`;
- var exports = `export { ${className} };`;
+ var exports = `export { ${className} };\n`;
... | false |
Other | mrdoob | three.js | 533ff0ec9caa98639de8bb3f2c9b9a639ff428b8.json | Skip non-POT texture fallback on WebGL2 | src/renderers/webgl/WebGLTextures.js | @@ -83,9 +83,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
}
- function textureNeedsGenerateMipmaps( texture, isPowerOfTwo ) {
+ function textureNeedsGenerateMipmaps( texture, supportsMips ) {
- return texture.generateMipmaps && isPowerOfTwo &&
+ return texture.generate... | false |
Other | mrdoob | three.js | cdf0bba21a8b3a264f21dcea59dbca28b39905a5.json | Remove reference to THREE in modules | examples/jsm/controls/MapControls.js | @@ -1036,7 +1036,7 @@ var MapControls = function ( object, domElement ) {
};
MapControls.prototype = Object.create( EventDispatcher.prototype );
-MapControls.prototype.constructor = THREE.MapControls;
+MapControls.prototype.constructor = MapControls;
Object.defineProperties( MapControls.prototype, {
| true |
Other | mrdoob | three.js | cdf0bba21a8b3a264f21dcea59dbca28b39905a5.json | Remove reference to THREE in modules | examples/jsm/controls/OrbitControls.js | @@ -932,7 +932,7 @@ var OrbitControls = function ( object, domElement ) {
};
OrbitControls.prototype = Object.create( EventDispatcher.prototype );
-OrbitControls.prototype.constructor = THREE.OrbitControls;
+OrbitControls.prototype.constructor = OrbitControls;
Object.defineProperties( OrbitControls.prototype, {
... | true |
Other | mrdoob | three.js | cdf0bba21a8b3a264f21dcea59dbca28b39905a5.json | Remove reference to THREE in modules | examples/jsm/controls/TrackballControls.js | @@ -623,6 +623,6 @@ var TrackballControls = function ( object, domElement ) {
};
TrackballControls.prototype = Object.create( EventDispatcher.prototype );
-TrackballControls.prototype.constructor = THREE.TrackballControls;
+TrackballControls.prototype.constructor = TrackballControls;
export { TrackballControls }... | true |
Other | mrdoob | three.js | ae9bc8ced64c6343ebb6f6344049ece81e115d68.json | add comments to example | examples/webgl_physics_volume.html | @@ -191,11 +191,15 @@
function processGeometry( bufGeometry ) {
+ // Ony consider the position values when merging the vertices
var posOnlyBufGeometry = new THREE.BufferGeometry();
posOnlyBufGeometry.addAttribute( 'position', bufGeometry.getAttribute( 'position' ) );
posOnlyBufGeometry.setInde... | false |
Other | mrdoob | three.js | bd989c1df792b6bd565f7e7038606d5b5d7315a9.json | Use mergeVertices in physics volume example | examples/webgl_physics_volume.html | @@ -31,6 +31,7 @@
<script src="../build/three.js"></script>
<script src="js/libs/ammo.js"></script>
<script src="js/controls/OrbitControls.js"></script>
+ <script src="js/utils/BufferGeometryUtils.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>
@@ -190,60... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.