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 | bfe473a81ed320e950759052e687e19146e39fba.json | fix Object3D.updateMatrixWorld definition
Judging by the implementation, the `force` parameter should be optional. | src/core/Object3D.d.ts | @@ -306,7 +306,7 @@ export class Object3D extends EventDispatcher {
/**
* Updates global transform of the object and its children.
*/
- updateMatrixWorld(force: boolean): void;
+ updateMatrixWorld(force?: boolean): void;
updateWorldMatrix(updateParents: boolean, updateChildren: boolean): void;
| false |
Other | mrdoob | three.js | deecc75ca313e6c281ede482493f01d1647bb0a1.json | Fix minor bug | examples/js/cameras/CinematicCamera.js | @@ -193,7 +193,7 @@ THREE.CinematicCamera.prototype.renderCinematic = function ( scene, renderer ) {
scene.overrideMaterial = this.materialDepth;
renderer.setRenderTarget( this.postprocessing.rtTextureDepth );
renderer.clear();
- renderer.render( scene, camera, this.postprocessing.rtTextureDepth );
+ rendere... | false |
Other | mrdoob | three.js | ae64821d1d94fecf4aeb6d80b27c4146816b40b0.json | Update stats every frame | examples/misc_controls_trackball.html | @@ -150,14 +150,16 @@
function animate() {
requestAnimationFrame( animate );
+
controls.update();
+
+ stats.update();
}
function render() {
renderer.render( scene, camera );
- stats.update();
}
| false |
Other | mrdoob | three.js | 42f7040b26bdfcbb3c400506465c1352f9ad8adf.json | Fix incorrect body size | examples/misc_controls_trackball.html | @@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
- html {
+ html, body {
width: 100%;
height: 100%;
overflow: hidden; | false |
Other | mrdoob | three.js | 961708ba75196ece15aa82811eba405d34dacfcd.json | Fix the overflowing div
The side padding with 100% width causes the div to overflow the screen. So we remove the side padding (no used anyways), and also tell it to use box-sizing: border box to properly calculate the box sizing as expected. | examples/misc_controls_trackball.html | @@ -3,7 +3,7 @@
<head>
<title>three.js webgl - trackball controls</title>
<meta charset="utf-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1... | false |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_bvh_retarget.html | @@ -157,12 +157,11 @@
scene.add( bvhSkeletonHelper );
scene.add( boneContainer );
- // play animation
- bvhMixer = new THREE.AnimationMixer( bvhSkeletonHelper );
-
// get offsets when it is in T-Pose
options.offsets = THREE.SkeletonUtils.getSkeletonOffsets( player, bvhSkeletonHelper, o... | true |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_hierarchy.html | @@ -59,11 +59,11 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
- console.log("Visit https://github.com/sunag/sea3d to all codes and builds under development.");
+ console.log( "Visit https://github.com/sunag/sea3d to all codes and builds under development." );
var container, stats;
- v... | true |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_keyframe.html | @@ -56,11 +56,11 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
- console.log("Visit https://github.com/sunag/sea3d to all codes and builds under development.");
+ console.log( "Visit https://github.com/sunag/sea3d to all codes and builds under development." );
var container, stats;
- v... | true |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_morph.html | @@ -56,11 +56,11 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
- console.log("Visit https://github.com/sunag/sea3d to all codes and builds under development.");
+ console.log( "Visit https://github.com/sunag/sea3d to all codes and builds under development." );
var container, stats;
- v... | true |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_skinning.html | @@ -58,11 +58,11 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
- console.log("Visit https://github.com/sunag/sea3d to all codes and builds under development.");
+ console.log( "Visit https://github.com/sunag/sea3d to all codes and builds under development." );
var container, stats;
- v... | true |
Other | mrdoob | three.js | a5dc13b1a0b8d09d683618fd16db1f3b2c2d0f1f.json | update code style all sea3d examples | examples/webgl_loader_sea3d_sound.html | @@ -103,7 +103,7 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
- console.log("Visit https://github.com/sunag/sea3d to all codes and builds under development.");
+ console.log( "Visit https://github.com/sunag/sea3d to all codes and builds under development." );
var container, raycaster, sta... | true |
Other | mrdoob | three.js | 79b1f64acb4a0975fda7c23f70831e14da1fcaf6.json | remove unneeded parameters | examples/js/loaders/FBXLoader.js | @@ -555,7 +555,7 @@ THREE.FBXLoader = ( function () {
switch ( type ) {
case 'Bump':
- parameters.bumpMap = self.getTexture( FBXTree, textureMap, child.ID, connections );
+ parameters.bumpMap = self.getTexture( textureMap, child.ID );
break;
case 'DiffuseColor': | false |
Other | mrdoob | three.js | 1e2885f4bc95ab3c7e1558b2b6ee4b5841304dd1.json | Fix quotation marks | src/objects/Line.d.ts | @@ -15,7 +15,7 @@ export class Line extends Object3D {
geometry: Geometry | BufferGeometry;
material: Material | Material[];
- type: "Line" | "LineLoop" | "LineSegments";
+ type: 'Line' | 'LineLoop' | 'LineSegments';
isLine: true;
computeLineDistances(): this; | true |
Other | mrdoob | three.js | 1e2885f4bc95ab3c7e1558b2b6ee4b5841304dd1.json | Fix quotation marks | src/objects/LineLoop.d.ts | @@ -9,6 +9,6 @@ export class LineLoop extends Line {
material?: Material | Material[]
);
- type: "LineLoop";
+ type: 'LineLoop';
isLineLoop: true;
} | true |
Other | mrdoob | three.js | 1e2885f4bc95ab3c7e1558b2b6ee4b5841304dd1.json | Fix quotation marks | src/objects/LineSegments.d.ts | @@ -19,6 +19,6 @@ export class LineSegments extends Line {
mode?: number
);
- type: "LineSegments";
+ type: 'LineSegments';
isLineSegments: true;
} | true |
Other | mrdoob | three.js | b36f4af69db693a4c2a6466352b1bbfc0062380a.json | Clarify availability of renderers | README.md | @@ -10,7 +10,7 @@ three.js
#### JavaScript 3D library ####
-The aim of the project is to create an easy to use, lightweight, 3D library. The library provides Canvas 2D, SVG, CSS3D and WebGL renderers.
+The aim of the project is to create an easy to use, lightweight, 3D library with a default WebGL renderer. The li... | false |
Other | mrdoob | three.js | 8ac32926c7d0e1bd2dcd0de79178ecb938889261.json | Fix a wrong character. | docs/api/zh/renderers/WebGLRenderer.html | @@ -348,7 +348,7 @@ <h3>[method:null resetGLState]( )</h3>
<p>将GL状态重置为默认值。WebGL环境丢失时会内部调用</p>
<h3>[method:null readRenderTargetPixels]( [param:WebGLRenderTarget renderTarget], [param:Float x], [param:Float y], [param:Float width], [param:Float height], buffer )</h3>
- <p>将enderTarget中的像素数据读取到传入的缓冲区中。这是link:htt... | false |
Other | mrdoob | three.js | bcd4bec92609ce8af76a590b0f281ecf71019c2b.json | Use PMREMGenerator in webgl_loader_gltf example. | examples/webgl_loader_gltf.html | @@ -40,6 +40,9 @@
<script src="js/controls/OrbitControls.js"></script>
<script src="js/loaders/GLTFLoader.js"></script>
+ <script src="js/pmrem/PMREMGenerator.js"></script>
+ <script src="js/pmrem/PMREMCubeUVPacker.js"></script>
+
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></... | false |
Other | mrdoob | three.js | 7c0f31b6bce1b5a4e951bd5a0b7d46d0650c7bac.json | Add a collada exporter link to the docs | docs/list.js | @@ -382,7 +382,8 @@ var list = {
"Exporters": {
"GLTFExporter": "examples/exporters/GLTFExporter",
- "PLYExporter": "examples/exporters/PLYExporter"
+ "PLYExporter": "examples/exporters/PLYExporter",
+ "ColladaExporter": "examples/exporters/ColladaExporter"
},
"Plugins": { | false |
Other | mrdoob | three.js | 2a2451b76717cfff000d1289a5e344a02ac4f707.json | Export all types from all type definition files | src/Three.d.ts | @@ -1,160 +1,174 @@
-import './polyfills';
-
-export {
- WebGLMultisampleRenderTarget,
-} from './renderers/WebGLMultisampleRenderTarget';
-export { WebGLRenderTargetCube } from './renderers/WebGLRenderTargetCube';
-export { WebGLRenderTarget } from './renderers/WebGLRenderTarget';
-export { WebGLRenderer } from './re... | true |
Other | mrdoob | three.js | 2a2451b76717cfff000d1289a5e344a02ac4f707.json | Export all types from all type definition files | src/extras/curves/Curves.d.ts | @@ -1,10 +1,10 @@
-export { ArcCurve } from './ArcCurve';
-export { CatmullRomCurve3 } from './CatmullRomCurve3';
-export { CubicBezierCurve } from './CubicBezierCurve';
-export { CubicBezierCurve3 } from './CubicBezierCurve3';
-export { EllipseCurve } from './EllipseCurve';
-export { LineCurve } from './LineCurve';
-e... | true |
Other | mrdoob | three.js | 2a2451b76717cfff000d1289a5e344a02ac4f707.json | Export all types from all type definition files | src/geometries/Geometries.d.ts | @@ -1,43 +1,22 @@
-export { WireframeGeometry } from './WireframeGeometry';
-export {
- ParametricGeometry,
- ParametricBufferGeometry,
-} from './ParametricGeometry';
-export {
- TetrahedronGeometry,
- TetrahedronBufferGeometry,
-} from './TetrahedronGeometry';
-export {
- OctahedronGeometry,
- OctahedronBufferG... | true |
Other | mrdoob | three.js | 2a2451b76717cfff000d1289a5e344a02ac4f707.json | Export all types from all type definition files | src/materials/Materials.d.ts | @@ -1,18 +1,18 @@
-export { ShadowMaterial } from './ShadowMaterial';
-export { SpriteMaterial } from './SpriteMaterial';
-export { RawShaderMaterial } from './RawShaderMaterial';
-export { ShaderMaterial } from './ShaderMaterial';
-export { PointsMaterial } from './PointsMaterial';
-export { MeshPhysicalMaterial } fro... | true |
Other | mrdoob | three.js | 2a2451b76717cfff000d1289a5e344a02ac4f707.json | Export all types from all type definition files | src/polyfills.d.ts | @@ -4,7 +4,7 @@ export function error(message?: any, ...optionalParams: any[]): void;
export function log(message?: any, ...optionalParams: any[]): void;
// typed array parameters
-type TypedArray =
+export type TypedArray =
| Int8Array
| Uint8Array
| Uint8ClampedArray | true |
Other | mrdoob | three.js | cfc397597b6bc3cdbf97ba632fc5e5fed5af5498.json | Replace THREE.RGBA with THREE.RGBAFormat | examples/js/postprocessing/SSAOPass.js | @@ -392,7 +392,7 @@ THREE.SSAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
}
- this.noiseTexture = new THREE.DataTexture( data, width, height, THREE.RGBA, THREE.FloatType );
+ this.noiseTexture = new THREE.DataTexture( data, width, height, THREE.RGBAFormat, THREE.FloatType );
this.... | false |
Other | mrdoob | three.js | f2a7f149e414d81ea0861f141469bd5a17485835.json | remove use of Uint8Array.indexOf | examples/js/loaders/FBXLoader.js | @@ -3701,7 +3701,8 @@
getString: function ( size ) {
- var a = new Uint8Array( size );
+ // note: safari 9 doesn't support Uint8Array.indexOf; create intermediate array instead
+ var a = [];
for ( var i = 0; i < size; i ++ ) {
@@ -3712,7 +3713,7 @@
var nullByte = a.indexOf( 0 );
if ( nullBy... | false |
Other | mrdoob | three.js | 72611a26fd9b918c3ff8bcc2192090f417e6e416.json | Make HDRCubeTextureLoader work in strict mode.
If 'use strict' is set in this scope, calling the funtion loadHDRData at line 180 in HDRCubeTextureLoader will leave "this" undefined , and line 111 inside the function loadHDRData will throw expection when accessing "this.manager". | examples/js/loaders/HDRCubeTextureLoader.js | @@ -177,7 +177,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
for ( var i = 0; i < urls.length; i ++ ) {
- loadHDRData( i, onLoad, onProgress, onError );
+ loadHDRData.call( this, i, onLoad, onProgress, onError );
}
| false |
Other | mrdoob | three.js | 304cd6e1e3f5804ca3b1e2c7ea21dfd9fd2892df.json | Add includeCustomExtensions option. | docs/examples/exporters/GLTFExporter.html | @@ -84,6 +84,7 @@ <h3>[method:null parse]( [param:Object3D input], [param:Function onCompleted], [
<li>animations - Array<[page:AnimationClip AnimationClip]>. List of animations to be included in the export.</li>
<li>forceIndices - bool. Generate indices for non-index geometry and export with them. Default is f... | true |
Other | mrdoob | three.js | 304cd6e1e3f5804ca3b1e2c7ea21dfd9fd2892df.json | Add includeCustomExtensions option. | examples/js/exporters/GLTFExporter.js | @@ -73,7 +73,8 @@ THREE.GLTFExporter.prototype = {
embedImages: true,
animations: [],
forceIndices: false,
- forcePowerOfTwoTextures: false
+ forcePowerOfTwoTextures: false,
+ includeCustomExtensions: false
};
options = Object.assign( {}, DEFAULT_OPTIONS, options );
@@ -345,7 +346,7 @@ THREE.G... | true |
Other | mrdoob | three.js | 0ab965eae47676943d16eb0e40cc00c65e7bc35b.json | Prevent navigation if modifiers pressed.
In Windows Ctrl-Click opens a link in a new tab. In MacOS it's Cmd-Click.
But the code here was not respecting the user's wishes. A new tab
would open but the page itself woudl also navigate the same link
which is not what a user is requesting with ctrl-click or cmd-click
Inte... | docs/index.html | @@ -93,8 +93,12 @@ <h1><a href="http://threejs.org">three.js</a> / docs</h1>
link.setAttribute( 'target', 'viewer' );
link.addEventListener( 'click', function ( event ) {
- window.location.hash = pageURL;
- panel.classList.add( 'collapsed' );
+ if ( event.button === 0 && !event.ctrlKey && !event... | true |
Other | mrdoob | three.js | 0ab965eae47676943d16eb0e40cc00c65e7bc35b.json | Prevent navigation if modifiers pressed.
In Windows Ctrl-Click opens a link in a new tab. In MacOS it's Cmd-Click.
But the code here was not respecting the user's wishes. A new tab
would open but the page itself woudl also navigate the same link
which is not what a user is requesting with ctrl-click or cmd-click
Inte... | examples/index.html | @@ -296,7 +296,7 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
link.setAttribute( 'target', 'viewer' );
link.addEventListener( 'click', function ( event ) {
- if ( event.button === 0 ) {
+ if ( event.button === 0 && !event.ctrlKey && !event.altKey && !event.metaKey ) {
selectF... | true |
Other | mrdoob | three.js | d52614b90cd8c0733f4eb11e916b0b0432824e40.json | remove other sentence | docs/api/materials/Material.html | @@ -162,8 +162,7 @@ <h3>[property:String name]</h3>
<h3>[property:Boolean needsUpdate]</h3>
<p>
- Specifies that the material needs to be recompiled.
- Set it to true if you want the shader to be recompiled.<br />
+ Specifies that the material needs to be recompiled.<br />
This property is automatically s... | false |
Other | mrdoob | three.js | 878dca08034a13d444731014e0951f8e99ffea86.json | fix normal doubleSided | examples/js/nodes/accessors/NormalNode.js | @@ -45,7 +45,7 @@ NormalNode.prototype.generate = function ( builder, output ) {
builder.requires.normal = true;
- result = builder.isShader( 'vertex' ) ? 'normal' : 'vObjectNormal';
+ result = 'normal';
break;
@@ -59,7 +59,7 @@ NormalNode.prototype.generate = function ( builder, output ) {
cas... | true |
Other | mrdoob | three.js | 878dca08034a13d444731014e0951f8e99ffea86.json | fix normal doubleSided | examples/js/nodes/misc/BumpMapNode.js | @@ -114,7 +114,7 @@ BumpMapNode.prototype.generate = function ( builder, output ) {
var derivativeHeight = builder.include( BumpMapNode.Nodes.dHdxy_fwd ),
perturbNormalArb = builder.include( BumpMapNode.Nodes.perturbNormalArb );
- this.normal = this.normal || new NormalNode( NormalNode.VIEW );
+ this.nor... | true |
Other | mrdoob | three.js | 878dca08034a13d444731014e0951f8e99ffea86.json | fix normal doubleSided | examples/js/nodes/misc/NormalMapNode.js | @@ -68,7 +68,7 @@ NormalMapNode.prototype.generate = function ( builder, output ) {
var perturbNormal2Arb = builder.include( NormalMapNode.Nodes.perturbNormal2Arb );
- this.normal = this.normal || new NormalNode( NormalNode.VIEW );
+ this.normal = this.normal || new NormalNode();
this.position = this.positi... | true |
Other | mrdoob | three.js | 878dca08034a13d444731014e0951f8e99ffea86.json | fix normal doubleSided | examples/webgl_materials_nodes.html | @@ -764,7 +764,7 @@
var color = new THREE.ColorNode( 0xFFFFFF );
var viewZ = new THREE.Math2Node(
- new THREE.NormalNode( THREE.NormalNode.VIEW ),
+ new THREE.NormalNode(),
new THREE.Vector3Node( 0, 0, - intensity ),
THREE.Math2Node.DOT
);
@@ -1045,7 +1045,7 @@
... | true |
Other | mrdoob | three.js | 3a7d583be81fab42f630cb7a9a18d27bf0ee9322.json | remove webgl mention | docs/api/materials/Material.html | @@ -162,7 +162,7 @@ <h3>[property:String name]</h3>
<h3>[property:Boolean needsUpdate]</h3>
<p>
- Specifies that the material needs to be updated at the WebGL level.
+ Specifies that the material needs to be recompiled.
Set it to true if you want the shader to be recompiled.<br />
This property is autom... | false |
Other | mrdoob | three.js | 9af6c423d22f50950f340ee9fac9a36764c79635.json | fix ambigous wording | docs/api/materials/Material.html | @@ -163,7 +163,7 @@ <h3>[property:String name]</h3>
<h3>[property:Boolean needsUpdate]</h3>
<p>
Specifies that the material needs to be updated at the WebGL level.
- Set it to true if you made changes that need to be reflected in WebGL.<br />
+ Set it to true if you want the shader to be recompiled.<br />
... | false |
Other | mrdoob | three.js | c8d4156f89f67f9dffa7cd4740a58f28fd8f06f1.json | fix normal view | examples/js/nodes/accessors/NormalNode.js | @@ -59,7 +59,7 @@ NormalNode.prototype.generate = function ( builder, output ) {
case NormalNode.VIEW:
- result = 'vNormal';
+ result = 'normal';
break;
| false |
Other | mrdoob | three.js | 4227b80ca2f29c6893091284afa7ffa2690a868e.json | fix share maps | examples/webgl_materials_nodes.html | @@ -409,7 +409,9 @@
// MATERIAL
- var sataturation = new THREE.FloatNode( 1 );
+ var sataturation = new THREE.FloatNode( 1 ),
+ useMap = true,
+ useNormals = true;
function updateMaterial( useNodeMaterial ) {
@@ -421,9 +423,9 @@
// default syntax ( backward-compatib... | false |
Other | mrdoob | three.js | aa7cde8ede049b0bac11f44c86e7e9fc74321fd2.json | fix typo in GLTFLoader example comments
typo said `progresses` but should have been `progress`. Reworded line instead to meet minimum pull request size and provide clarity. | docs/examples/loaders/GLTFLoader.html | @@ -60,7 +60,7 @@ <h2>Example</h2>
gltf.asset; // Object
},
- // called when loading is in progresses
+ // called while loading is progressing
function ( xhr ) {
console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' ); | false |
Other | mrdoob | three.js | 5d38e61ad476430108d79d05264586078faea151.json | Add Triangle.closestPointToPoint benchmark | test/benchmark/benchmarks.html | @@ -1,50 +1,51 @@
<!DOCTYPE html>
<html>
-<head>
- <meta charset="utf-8">
- <title>ThreeJS Benchmark Tests - Using Files in /src</title>
- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:700" rel="stylesheet" type="text/css">
- <link href="normalize.css" rel="stylesheet" type="text/css">
- <l... | true |
Other | mrdoob | three.js | 5d38e61ad476430108d79d05264586078faea151.json | Add Triangle.closestPointToPoint benchmark | test/benchmark/core/TriangleClosestPoint.js | @@ -0,0 +1,61 @@
+(function() {
+
+ THREE = Bench.THREE;
+
+ // these vertices and triangles are those of a unit icosahedron centered at the origin
+ var phi = 1.618;
+ var verts = [
+ [phi, 1, 0], [-phi, 1, 0], [phi, -1, 0], [-phi, -1, 0],
+ [1, 0, phi], [1, 0, -phi], [-1, 0, phi], [-1, 0, -phi],
+ [0, ph... | true |
Other | mrdoob | three.js | 98f84c1b26a1d0506859b3aff3bf937ceb69478a.json | Normalize scroll wheel | examples/js/controls/EditorControls.js | @@ -14,7 +14,7 @@ THREE.EditorControls = function ( object, domElement ) {
this.enabled = true;
this.center = new THREE.Vector3();
this.panSpeed = 0.001;
- this.zoomSpeed = 0.001;
+ this.zoomSpeed = 0.1;
this.rotationSpeed = 0.005;
// internals
@@ -187,9 +187,8 @@ THREE.EditorControls = function ( object, d... | false |
Other | mrdoob | three.js | 5067e5df79656cc8f101c3842552a29a2df50efd.json | Normalize scroll wheel | examples/js/controls/EditorControls.js | @@ -14,7 +14,7 @@ THREE.EditorControls = function ( object, domElement ) {
this.enabled = true;
this.center = new THREE.Vector3();
this.panSpeed = 0.001;
- this.zoomSpeed = 0.001;
+ this.zoomSpeed = 0.1;
this.rotationSpeed = 0.005;
// internals
@@ -189,7 +189,7 @@ THREE.EditorControls = function ( object, d... | false |
Other | mrdoob | three.js | 4c6fcc8585ffa21ea7153942deafa4ea4c867161.json | fix Quaternion.slerp for small angles
Previous implementation relied on average quaternions (t=0.5) for small angles.
Now uses the same approach as Quaternion.slerpFlat (threshold and lerp) | src/math/Quaternion.js | @@ -533,19 +533,21 @@ Object.assign( Quaternion.prototype, {
}
- var sinHalfTheta = Math.sqrt( 1.0 - cosHalfTheta * cosHalfTheta );
+ var sqrSinHalfTheta = 1.0 - cosHalfTheta * cosHalfTheta;
- if ( Math.abs( sinHalfTheta ) < 0.001 ) {
+ if ( sqrSinHalfTheta <= Number.EPSILON ) {
- this._w = 0.5 * ( w +... | false |
Other | mrdoob | three.js | 7d7658d83ac09fedef93bff0d64dc78240ed8595.json | Fix broken link to BufferGeometry page. | docs/api/objects/Line.html | @@ -46,7 +46,7 @@ <h2>Constructor</h2>
<h3>[name]( [param:Geometry geometry], [param:Material material] )</h3>
<p>
- [page:Geometry geometry] — vertices representing the line segment(s). Default is a new [page:new BufferGeometry].<br />
+ [page:Geometry geometry] — vertices representing the line segment(s). D... | false |
Other | mrdoob | three.js | ae49679f4e947ab6592cbc509b3ce9250d332298.json | Remove interleavedGeometryAttribute test | test/unit/src/core/BufferGeometry.tests.js | @@ -10,8 +10,6 @@ import {
Uint16BufferAttribute,
Uint32BufferAttribute
} from '../../../../src/core/BufferAttribute';
-import { InterleavedBufferAttribute } from '../../../../src/core/InterleavedBufferAttribute';
-import { InterleavedBuffer } from '../../../../src/core/InterleavedBuffer';
import { Color } from '... | false |
Other | mrdoob | three.js | 7f521d49556b9fc37b335a3f2875bd17d55348bd.json | Move `mergeVertices` to `BufferGeometryUtils` | examples/js/utils/BufferGeometryUtils.js | @@ -469,6 +469,177 @@ THREE.BufferGeometryUtils = {
mem += indices ? indices.count * indices.itemSize * indices.array.BYTES_PER_ELEMENT : 0;
return mem;
+ },
+
+ /**
+ * @param {THREE.BufferGeometry} geometry
+ * @param {number} tolerance
+ * @return {THREE.BufferGeometry>}
+ */
+ mergeVertices: function ( ... | true |
Other | mrdoob | three.js | 7f521d49556b9fc37b335a3f2875bd17d55348bd.json | Move `mergeVertices` to `BufferGeometryUtils` | src/core/BufferGeometry.js | @@ -900,171 +900,6 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
},
- mergeVertices: function ( tolerance = 1e-4 ) {
-
- tolerance = Math.max( tolerance, Number.EPSILON );
-
- // Generate an index buffer if the geometry doesn't have one, or optimize it
- // if it's already... | true |
Other | mrdoob | three.js | 4510e9311f7477547e82cbed7894772635e88a84.json | Improve implementation accordingly to PR reviews
Signed-off-by: Riccardo Padovani <rpadovani@nextbit.it> | examples/js/loaders/GLTFLoader.js | @@ -1541,7 +1541,7 @@ THREE.GLTFLoader = ( function () {
} else {
- geometryKey = primitiveDef.indices + ':' + createAttributesKey( primitiveDef.attributes ) + primitiveDef.mode;
+ geometryKey = primitiveDef.indices + ':' + createAttributesKey( primitiveDef.attributes ) + ':' + primitiveDef.mode;
}
@@... | false |
Other | mrdoob | three.js | 082cbcb36ef113bca0e7b66e412e6fd342d811bc.json | fix Object3D method return types etc. | docs/api/en/core/Object3D.html | @@ -107,14 +107,14 @@ <h3>[property:Matrix3 normalMatrix]</h3>
On the other hand the translation part of the modelViewMatrix is not relevant for the calculation of normals. Thus a Matrix3 is sufficient.
</p>
- <h3>[property:function onAfterRender]</h3>
+ <h3>[property:Function onAfterRender]</h3>
<p>
An... | false |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/CompressedTextureLoader.html | @@ -48,7 +48,7 @@ <h3>[property:String path]</h3>
<h2>Methods</h2>
- <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
+ <h3>[method:CompressedTexture load]( [param:String url], [param:Function onLoad], [param:Function onProgress],... | true |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/CubeTextureLoader.html | @@ -70,7 +70,7 @@ <h3>[property:String path]</h3>
<h2>Methods</h2>
- <h3>[method:null load]( [param:String urls], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
+ <h3>[method:CubeTexture load]( [param:String urls], [param:Function onLoad], [param:Function onProgress], [pa... | true |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/DataTextureLoader.html | @@ -44,7 +44,7 @@ <h3>[property:LoadingManager manager]</h3>
<h2>Methods</h2>
- <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
+ <h3>[method:DataTexture load]( [param:String url], [param:Function onLoad], [param:Function onProgr... | true |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/FontLoader.html | @@ -73,7 +73,7 @@ <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Func
<p>
[page:String url] — the path or URL to the file. This can also be a
[link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br />
- [page:Function onLoad] — Will be calle... | true |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/ImageLoader.html | @@ -82,7 +82,7 @@ <h3>[property:String path]</h3>
<h2>Methods</h2>
- <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
+ <h3>[method:HTMLImageElement load]( [param:String url], [param:Function onLoad], [param:Function onProgress], ... | true |
Other | mrdoob | three.js | 1c51265f4af957b3cf3a4c69468c18de8d4ee04b.json | correct more return types | docs/api/en/loaders/MaterialLoader.html | @@ -74,7 +74,7 @@ <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Func
[page:Function onProgress] — Will be called while load progresses. The argument will be the progress event.<br />
[page:Function onError] — Will be called when load errors.<br /><br />
- Begin loading from url an... | true |
Other | mrdoob | three.js | f6d816de8ef6b2a1806fce22ef8df238c0996f0e.json | fix some incorrect type cases | docs/api/en/loaders/FileLoader.html | @@ -76,7 +76,7 @@ <h3>[property:String mimeType]</h3>
<h3>[property:String path]</h3>
<p>The base path from which files will be loaded. See [page:.setPath]. Default is *undefined*.</p>
- <h3>[property:object requestHeader]</h3>
+ <h3>[property:Object requestHeader]</h3>
<p>The [link:https://developer.mozil... | false |
Other | mrdoob | three.js | c0eeaedaa4225314c28f28ffe760600a0f9aeb67.json | fix spaces to tabs | examples/js/exporters/ColladaExporter.js | @@ -359,14 +359,14 @@ THREE.ColladaExporter.prototype = {
type = 'constant';
- if ( m.map !== null ) {
+ if ( m.map !== null ) {
- // The Collada spec does not support diffuse texture maps with the
- // constant shader type.
- ... | false |
Other | mrdoob | three.js | f3ed73d26ab9ff99e966d40707028222754dd6b5.json | use var for consistency | rollup-examples.config.js | @@ -1,12 +1,12 @@
-const path = require( 'path' );
-const fs = require( 'fs' );
+var path = require( 'path' );
+var fs = require( 'fs' );
// Creates an rollup config object for the given file to
// be output to umd format
function createOutput( file ) {
- const inputPath = path.resolve( file );
- const outputPat... | false |
Other | mrdoob | three.js | 55bc03533328172b5f0b533e871f012a3af63cc7.json | Remove unused imports. | src/animation/AnimationUtils.js | @@ -1,6 +1,3 @@
-import { PropertyBinding } from './PropertyBinding.js';
-import { InterpolateLinear } from '../constants.js';
-
/**
* @author tschw
* @author Ben Houston / http://clara.io/ | false |
Other | mrdoob | three.js | 3e9bd587a127fe91e3f8b53797986a3e5bca8adb.json | Add missing isScene | src/scenes/Scene.js | @@ -22,6 +22,8 @@ Scene.prototype = Object.assign( Object.create( Object3D.prototype ), {
constructor: Scene,
+ isScene: true,
+
copy: function ( source, recursive ) {
Object3D.prototype.copy.call( this, source, recursive ); | false |
Other | mrdoob | three.js | d682f4c2c0f5a22052fd050b916fe14a672f94e7.json | fix LinearToLogLuv convert | src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js | @@ -61,7 +61,7 @@ vec4 LinearToRGBD( in vec4 value, in float maxRange ) {
// M matrix, for encoding
const mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );
vec4 LinearToLogLuv( in vec4 value ) {
- vec3 Xp_Y_XYZp = value.rgb * cLogLuvM;
+ vec3 Xp_Y_XYZp = cLogLuvM * valu... | false |
Other | mrdoob | three.js | 43918cc66cbce4dcb97a3904ef804518846ff7ea.json | fix LogLuvToLinear convert error | src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js | @@ -79,7 +79,7 @@ vec4 LogLuvToLinear( in vec4 value ) {
Xp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );
Xp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;
Xp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;
- vec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;
+ vec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;
return vec4( max( vRGB, 0.0 ), 1.0 );
}
`... | false |
Other | mrdoob | three.js | b0403abc33cf3cd24572545c0e0d9991eb751c0b.json | update webgl state | src/materials/Material.js | @@ -46,7 +46,7 @@ function Material() {
this.stencilFail = KeepStencilOp;
this.stencilZFail = KeepStencilOp;
this.stencilZPass = KeepStencilOp;
- this.stencilWrite = true;
+ this.stencilWrite = false;
this.clippingPlanes = null;
this.clipIntersection = false; | true |
Other | mrdoob | three.js | b0403abc33cf3cd24572545c0e0d9991eb751c0b.json | update webgl state | src/renderers/webgl/WebGLState.js | @@ -677,13 +677,12 @@ 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 ) {
+ va... | true |
Other | mrdoob | three.js | b3bd93573a91ea304f07ee81798930b3d69012d3.json | Update badge to have custom label | README.md | @@ -6,7 +6,7 @@ three.js
[![Dependencies][dependencies-badge]][dependencies-badge-url]
[![Dev Dependencies][devDependencies-badge]][devDependencies-badge-url]
[](https://travis-ci.org/mrdoob/three.js)
-[;
+ request.addEventListener( 'abort', function ( event ) {
+
+ var callbacks = loading[ url ];
+
+ delete loading[ url ];
+
+ for ( var i = 0, il = callbacks.length; i < il; i ++ ) {
+
+ var callback = callbacks[ i ];
+ if... | false |
Other | mrdoob | three.js | 73d6148d915a67903c1f0e898f894bebfd5093c0.json | fix initial index in dropdown | examples/webgl_materials_nodes.html | @@ -285,6 +285,8 @@
} else if ( typeof value == 'object' ) {
+ param.blend = value[ Object.keys( value )[ 0 ] ];
+
node = gui.add( param, name, value ).onChange( function () {
callback( param[ name ] ); | true |
Other | mrdoob | three.js | 73d6148d915a67903c1f0e898f894bebfd5093c0.json | fix initial index in dropdown | examples/webgl_postprocessing_nodes.html | @@ -154,6 +154,8 @@
} else if ( typeof value == 'object' ) {
+ param.blend = value[ Object.keys( value )[ 0 ] ];
+
node = gui.add( param, name, value ).onChange( function () {
callback( param[ name ] ); | true |
Other | mrdoob | three.js | de353d0b39d9e710238f3694b7d048c74dd7b11d.json | add more description | docs/api/core/Object3D.html | @@ -387,13 +387,13 @@ <h3>[method:this translateOnAxis]( [param:Vector3 axis], [param:Float distance]
</p>
<h3>[method:this translateX]( [param:Float distance] )</h3>
- <p>Translates object along x axis by *distance* units.</p>
+ <p>Translates object along x axis in object space by *distance* units.</p>
... | false |
Other | mrdoob | three.js | 3d8f71715d0937d831b39ea8793fe90e59d58c79.json | Simplify blending mode | examples/js/loaders/EquiangularToCubeGenerator.js | @@ -95,13 +95,7 @@ THREE.EquiangularToCubeGenerator.prototype = {
gl_FragColor = vec4( color, 1.0 );\n\
}",
- blending: THREE.CustomBlending,
- premultipliedAlpha: false,
- blendSrc: THREE.OneFactor,
- blendDst: THREE.ZeroFactor,
- blendSrcAlpha: THREE.OneFactor,
- blendDstAlpha: THREE.ZeroFact... | true |
Other | mrdoob | three.js | 3d8f71715d0937d831b39ea8793fe90e59d58c79.json | Simplify blending mode | examples/js/pmrem/PMREMCubeUVPacker.js | @@ -178,13 +178,7 @@ THREE.PMREMCubeUVPacker.prototype = {
gl_FragColor = linearToOutputTexel( color );\
}",
- blending: THREE.CustomBlending,
- premultipliedAlpha: false,
- blendSrc: THREE.OneFactor,
- blendDst: THREE.ZeroFactor,
- blendSrcAlpha: THREE.OneFactor,
- blendDstAlpha: THREE.ZeroFac... | true |
Other | mrdoob | three.js | 3d8f71715d0937d831b39ea8793fe90e59d58c79.json | Simplify blending mode | examples/js/pmrem/PMREMGenerator.js | @@ -259,13 +259,7 @@ THREE.PMREMGenerator.prototype = {
gl_FragColor = linearToOutputTexel( vec4( rgbColor, 1.0 ) );\n\
}",
- blending: THREE.CustomBlending,
- premultipliedAlpha: false,
- blendSrc: THREE.OneFactor,
- blendDst: THREE.ZeroFactor,
- blendSrcAlpha: THREE.OneFactor,
- blendDstAlpha... | true |
Other | mrdoob | three.js | d2da61644ec9605bf106d9eb12e6c73378e0555a.json | Add WebVR example | examples/webvr_lorenz_attractor.html | @@ -0,0 +1,172 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webvr - Lorenz attractor</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+ <!-- Origin Trial Token, feature = WebVR (For Chrome M62+), origin = https://threejs.... | false |
Other | mrdoob | three.js | 71919368f27580a386f2322d8856432bbbf12fe6.json | Add PLYExporter to the pages list | docs/list.js | @@ -373,7 +373,8 @@ var list = {
},
"Exporters": {
- "GLTFExporter": "examples/exporters/GLTFExporter"
+ "GLTFExporter": "examples/exporters/GLTFExporter",
+ "PLYExporter": "examples/exporters/PLYExporter"
},
"Plugins": { | false |
Other | mrdoob | three.js | 40d832de585fe6d12b70ab67e449abd8b43043e8.json | Add screenSpacePanning property | docs/examples/controls/OrbitControls.html | @@ -202,14 +202,6 @@ <h3>[property:Camera object]</h3>
The camera being controlled.
</div>
- <h3>[property:Integer panningMode]</h3>
- <div>
- Panning mode. Defines how the camera's position is translated when panning.
- The options are THREE.ScreenSpacePanning, in which the camera pans in scr... | false |
Other | mrdoob | three.js | 949623b530c590223ab35bb83263c35ae4d7c0bf.json | Add webgl2 option to WebGLRenderer | src/renderers/WebGLRenderer.js | @@ -65,7 +65,8 @@ function WebGLRenderer( parameters ) {
_antialias = parameters.antialias !== undefined ? parameters.antialias : false,
_premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true,
_preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefi... | false |
Other | mrdoob | three.js | c1ff8fcbd2f1d9550239bfa0acc38da8d679fb61.json | Update internalFormat for WebGL2.0 | src/renderers/webgl/WebGLTextures.js | @@ -302,7 +302,8 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
var image = cubeImage[ 0 ],
isPowerOfTwoImage = isPowerOfTwo( image ),
glFormat = utils.convert( texture.format ),
- glType = utils.convert( texture.type );
+ glType = utils.convert( texture.typ... | false |
Other | mrdoob | three.js | f02117fe857f8bb5517830a14969ade397494e4a.json | Update WebGLUtils for WebGL 2.0 UNSIGNED_INT_24_8 | src/renderers/webgl/WebGLUtils.js | @@ -142,7 +142,7 @@ function WebGLUtils( gl, extensions ) {
extension = extensions.get( 'WEBGL_depth_texture' );
- if ( extension !== null ) return extension.UNSIGNED_INT_24_8_WEBGL;
+ if ( extension !== null ) return isWebGL2 ? extension.UNSIGNED_INT_24_8 : extension.UNSIGNED_INT_24_8_WEBGL;
}
| false |
Other | mrdoob | three.js | 6065f4f7db0a744a05ac0dbd45d2511a6b73c6c2.json | Update EXT_blend_minmax handling for WebGL 2.0 | src/renderers/webgl/WebGLExtensions.js | @@ -62,7 +62,8 @@ function WebGLExtensions( gl ) {
'OES_element_index_uint',
'OES_standard_derivatives',
'EXT_frag_depth',
- 'EXT_shader_texture_lod' ].indexOf( name ) >= 0 ) {
+ 'EXT_shader_texture_lod',
+ 'EXT_blend_minmax' ].indexOf( name ) >= 0 ) {
extension ... | true |
Other | mrdoob | three.js | 6065f4f7db0a744a05ac0dbd45d2511a6b73c6c2.json | Update EXT_blend_minmax handling for WebGL 2.0 | src/renderers/webgl/WebGLUtils.js | @@ -131,8 +131,8 @@ function WebGLUtils( gl, extensions ) {
if ( extension !== null ) {
- if ( p === MinEquation ) return extension.MIN_EXT;
- if ( p === MaxEquation ) return extension.MAX_EXT;
+ if ( p === MinEquation ) return isWebGL2 ? extension.MIN : extension.MIN_EXT;
+ if ( p === MaxEquation )... | true |
Other | mrdoob | three.js | a04bea68f72fc762014ab1c37811c35c6b006e76.json | Ignore EXT_shader_texture_lod for WebGL 2.0 | src/renderers/webgl/WebGLExtensions.js | @@ -61,7 +61,8 @@ function WebGLExtensions( gl ) {
'OES_texture_half_float_linear',
'OES_element_index_uint',
'OES_standard_derivatives',
- 'EXT_frag_depth' ].indexOf( name ) >= 0 ) {
+ 'EXT_frag_depth',
+ 'EXT_shader_texture_lod' ].indexOf( name ) >= 0 ) {
exten... | false |
Other | mrdoob | three.js | b1f0db4ea9a23fe12375d9058e7ff515df827a14.json | Ignore EXT_frag_depth for WebGL 2.0 | src/renderers/webgl/WebGLExtensions.js | @@ -60,7 +60,8 @@ function WebGLExtensions( gl ) {
'OES_texture_half_float',
'OES_texture_half_float_linear',
'OES_element_index_uint',
- 'OES_standard_derivatives' ].indexOf( name ) >= 0 ) {
+ 'OES_standard_derivatives',
+ 'EXT_frag_depth' ].indexOf( name ) >= 0 ) {
... | true |
Other | mrdoob | three.js | b1f0db4ea9a23fe12375d9058e7ff515df827a14.json | Ignore EXT_frag_depth for WebGL 2.0 | src/renderers/webgl/WebGLProgram.js | @@ -85,7 +85,7 @@ function generateExtensions( extensions, parameters, rendererExtensions, isWebGL
var chunks = [
( ! isWebGL2 && ( extensions.derivatives || parameters.envMapCubeUV || parameters.bumpMap || parameters.normalMap || parameters.flatShading ) ) ? '#extension GL_OES_standard_derivatives : enable' : '... | true |
Other | mrdoob | three.js | 65931b028c8e3f78d59d0ac71ac79b3b4ae1b9c3.json | add explicit encoding | examples/webgl_materials_equiangular_ibl.html | @@ -107,6 +107,7 @@
texture.minFilter = THREE.NearestFilter;
texture.magFilter = THREE.NearestFilter;
+ texture.encoding = THREE.LinearEncoding;
var cubemapGenerator = new THREE.EquiangularToCubeGenerator( texture, 512 );
var cubeMapTexture = cubemapGenerator.generate( renderer );
@@ -12... | false |
Other | mrdoob | three.js | a67904c008e8f9621bbab41d0e0ad6b02efaf11f.json | remove old code | examples/js/loaders/FBXLoader.js | @@ -1099,13 +1099,6 @@
var normalAttribute = new THREE.Float32BufferAttribute( normalBuffer, 3 );
- // var normalsPreTransform = preTransform.clone().setPosition( new THREE.Vector3() );
-
- // // required when preTransform has a non-uniform scale component
- // normalsPreTransform.getInverse( normalsPreTr... | false |
Other | mrdoob | three.js | b6828d60a5e193fe6f791497355dd0861d5ca3a1.json | Fix broken source link. | docs/api/geometries/TextBufferGeometry.html | @@ -155,6 +155,6 @@ <h2>Available Fonts</h2>
<h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/TextGeometry.js src/TextGeometry.js]
+ [link:https://github.com/mrdoob/three.js/blob/master/src/geometries/TextGeometry.js src/geometries/TextGeometry.js]
</body>
</html> | false |
Other | mrdoob | three.js | ede01f5ae754db323ebf65b3f652dbb98678f4dd.json | Fix broken source link. | docs/api/geometries/ExtrudeBufferGeometry.html | @@ -140,6 +140,6 @@ <h3>[method:null addShape]([page:Shape shape], [page:Object options])</h3>
<h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/ExtrudeGeometry.js src/ExtrudeGeometry.js]
+ [link:https://github.com/mrdoob/three.js/blob/master/src/geometries/ExtrudeGeometry.js src/geome... | false |
Other | mrdoob | three.js | b83aaa8dfba0131901dafa76d0fff367896a5795.json | Fix inconsistent menu order. | docs/list.js | @@ -148,8 +148,8 @@ var list = {
"DodecahedronBufferGeometry": "api/geometries/DodecahedronBufferGeometry",
"DodecahedronGeometry": "api/geometries/DodecahedronGeometry",
"EdgesGeometry": "api/geometries/EdgesGeometry",
- "ExtrudeGeometry": "api/geometries/ExtrudeGeometry",
"ExtrudeBufferGeometry": "a... | false |
Other | mrdoob | three.js | f3eb51381f115d699344f6cab882805776d31333.json | Replace string literal with string concatenation | editor/js/Menubar.File.js | @@ -295,15 +295,13 @@ Menubar.File = function ( editor ) {
if ( config.getKey( 'project/editable' ) ) {
- editButton = `
- var button = document.createElement( 'a' );
- button.href = 'https://threejs.org/editor/#file=' + location.href.split( '/' ).slice( 0, - 1 ).join( '/' ) + '/app.json';
- button.sty... | false |
Other | mrdoob | three.js | 0fe617aa4fd0cc8403c14f0aa7d0c52e05ccf5c0.json | Fix protoplanet example
https://github.com/mrdoob/three.js/issues/13293 | examples/webgl_gpgpu_protoplanet.html | @@ -277,7 +277,7 @@
if ( hash ) hash = parseInt( hash, 0 );
// Texture width for simulation (each texel is a debris particle)
- var WIDTH = hash || ( isIE || isEdge ) ? 4 : 64;
+ var WIDTH = hash || ( ( isIE || isEdge ) ? 4 : 64 );
var container, stats;
var camera, scene, renderer, geometry, con... | false |
Other | mrdoob | three.js | 599d597a17cba49ce2b99e44a7fbaea90ca0fa4b.json | apply pre transform to normals | examples/js/loaders/FBXLoader.js | @@ -1097,7 +1097,16 @@
if ( normalBuffer.length > 0 ) {
- geo.addAttribute( 'normal', new THREE.Float32BufferAttribute( normalBuffer, 3 ) );
+ var normalAttribute = new THREE.Float32BufferAttribute( normalBuffer, 3 );
+
+ var normalsPreTransform = preTransform.clone().setPosition( new THREE.Vector3() );
+
... | false |
Other | mrdoob | three.js | 33bd1a3d29997791a9d4d51870e082135bcbf32b.json | remove unecessary maps_lights_pars in examples | examples/js/ShaderSkin.js | @@ -85,7 +85,6 @@ THREE.ShaderSkin = {
THREE.ShaderChunk[ "bsdfs" ],
THREE.ShaderChunk[ "packing" ],
THREE.ShaderChunk[ "begin_lights_pars" ],
- THREE.ShaderChunk[ 'maps_lights_pars' ],
THREE.ShaderChunk[ "shadowmap_pars_fragment" ],
THREE.ShaderChunk[ "fog_pars_fragment" ],
THREE.ShaderChunk[... | true |
Other | mrdoob | three.js | 33bd1a3d29997791a9d4d51870e082135bcbf32b.json | remove unecessary maps_lights_pars in examples | examples/js/ShaderTerrain.js | @@ -88,7 +88,6 @@ THREE.ShaderTerrain = {
THREE.ShaderChunk[ "common" ],
THREE.ShaderChunk[ "bsdfs" ],
THREE.ShaderChunk[ "begin_lights_pars" ],
- THREE.ShaderChunk[ 'maps_lights_pars' ],
THREE.ShaderChunk[ "shadowmap_pars_fragment" ],
THREE.ShaderChunk[ "fog_pars_fragment" ],
| true |
Other | mrdoob | three.js | 33bd1a3d29997791a9d4d51870e082135bcbf32b.json | remove unecessary maps_lights_pars in examples | examples/js/objects/Water.js | @@ -145,7 +145,6 @@ THREE.Water = function ( geometry, options ) {
THREE.ShaderChunk[ 'bsdfs' ],
THREE.ShaderChunk[ 'fog_pars_fragment' ],
THREE.ShaderChunk[ 'begin_lights_pars' ],
- THREE.ShaderChunk[ 'maps_lights_pars' ],
THREE.ShaderChunk[ 'shadowmap_pars_fragment' ],
THREE.ShaderChunk[ 'shadow... | true |
Other | mrdoob | three.js | a37a63c1aee20228ce34d5d4c318cbeecb592918.json | remove unecessary maps_lights_pars | src/renderers/shaders/ShaderLib/shadow_frag.glsl | @@ -6,7 +6,6 @@ uniform float opacity;
#include <fog_pars_fragment>
#include <bsdfs>
#include <begin_lights_pars>
-#include <maps_lights_pars>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
| false |
Other | mrdoob | three.js | 353697752001a96e14d36c4d0f36d0b99decd03e.json | Fix the wrong link. | docs/manual/en/introduction/Loading-3D-models.html | @@ -97,7 +97,7 @@ <h2>Loading</h2>
<p>
Currently three.js examples are not available as ES modules (import … from '…').
Several workarounds are discussed in
- <a href="https://github.com/KhronosGroup/glTF/issues/9562" target="_blank" rel="noopener">#9562</a>.
+ <a href="https://github.com/mrdoob... | true |
Other | mrdoob | three.js | 353697752001a96e14d36c4d0f36d0b99decd03e.json | Fix the wrong link. | docs/manual/zh/introduction/Loading-3D-models.html | @@ -86,7 +86,7 @@ <h2>加载</h2>
<p>
目前three.js示例不能作为ES modules (import … from '…')来使用。
这里讨论了一些解决方法:
- <a href="https://github.com/KhronosGroup/glTF/issues/9562" target="_blank" rel="noopener">#9562</a>.
+ <a href="https://github.com/mrdoob/three.js/issues/9562" target="_blank" rel="noopener">#9562... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.