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
450e71cba34aa0524e67341548dc7635cdf3fc7f.json
Reset branch to dev
editor/js/Viewport.js
@@ -5,9 +5,6 @@ var Viewport = function ( editor ) { var signals = editor.signals; - var config = editor.config; - - var sceneCameras = editor.sceneCameras; var container = new UI.Panel(); container.setId( 'viewport' ); @@ -315,7 +312,6 @@ var Viewport = function ( editor ) { renderer.autoClear = false;...
true
Other
mrdoob
three.js
471b9404eef23a4ec11bb6504de74cb9a1f196bc.json
Add TypeScript definitions for some utils
examples/jsm/utils/BufferGeometryUtils.d.ts
@@ -0,0 +1,7 @@ +import { BufferAttribute, BufferGeometry } from '../../../src/Three'; + +export namespace BufferGeometryUtils { + export function mergeBufferGeometries(geometries: BufferGeometry[]): BufferGeometry; + export function computeTangents(geometry: BufferGeometry): null; + export function mergeBufferAttribut...
true
Other
mrdoob
three.js
471b9404eef23a4ec11bb6504de74cb9a1f196bc.json
Add TypeScript definitions for some utils
examples/jsm/utils/GeometryUtils.d.ts
@@ -0,0 +1,13 @@ +/** + * @deprecated + */ +export namespace GeometryUtils { + /** + * @deprecated Use {@link Geometry#merge geometry.merge( geometry2, matrix, materialIndexOffset )} instead. + */ + export function merge(geometry1: any, geometry2: any, materialIndexOffset?: any): any; + /** + * @deprecated Use {@lin...
true
Other
mrdoob
three.js
471b9404eef23a4ec11bb6504de74cb9a1f196bc.json
Add TypeScript definitions for some utils
examples/jsm/utils/SceneUtils.d.ts
@@ -0,0 +1,7 @@ +import { Geometry, Material, Object3D, Scene } from '../../../src/Three'; + +export namespace SceneUtils { + export function createMultiMaterialObject(geometry: Geometry, materials: Material[]): Object3D; + export function detach(child: Object3D, parent: Object3D, scene: Scene): void; + export function...
true
Other
mrdoob
three.js
5ab4aa1c53b498f4f99d1dccfa293c8e24cb1bcb.json
Update code style
editor/js/Sidebar.Object.js
@@ -318,32 +318,36 @@ Sidebar.Object = function ( editor ) { var cameraViewRow = new UI.Row().setDisplay( editor.selected !== null && editor.selected.isCamera ? 'block' : 'none' ); container.add( cameraViewRow ); - cameraViewRow.add( new UI.Text(strings.getKey( 'sidebar/object/view' )).setWidth('90px')); + camera...
true
Other
mrdoob
three.js
5ab4aa1c53b498f4f99d1dccfa293c8e24cb1bcb.json
Update code style
editor/js/Sidebar.Settings.Viewport.js
@@ -18,28 +18,30 @@ Sidebar.Settings.Viewport = function ( editor ) { container.add( new UI.Text( strings.getKey( 'sidebar/settings/viewport/view' ) ).setWidth( '90px' ) ); - var sceneViewOptions = new UI.Select().setOptions({ - left : 'left', - right : 'right', - top : 'top', - bottom : 'bottom' - }); - - if...
true
Other
mrdoob
three.js
5ab4aa1c53b498f4f99d1dccfa293c8e24cb1bcb.json
Update code style
editor/js/Storage.js
@@ -6,7 +6,7 @@ var Storage = function () { var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; - if ( indexedDB === undefined ) { + if ( indexedDB === undefined ) { console.warn( 'Storage: IndexedDB not available.' ); return { init: function () {}, ge...
true
Other
mrdoob
three.js
5ab4aa1c53b498f4f99d1dccfa293c8e24cb1bcb.json
Update code style
editor/js/Viewport.js
@@ -315,7 +315,7 @@ var Viewport = function ( editor ) { renderer.autoClear = false; renderer.autoUpdateScene = false; - renderer.setScissorTest(true); + renderer.setScissorTest( true ); renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( container.dom.offsetWidth, container.dom.offsetH...
true
Other
mrdoob
three.js
53025930cb233a92120a128f34aead87e51cb7f5.json
Remove the material from the Object3D typings.
src/core/Object3D.d.ts
@@ -39,11 +39,6 @@ export class Object3D extends EventDispatcher { name: string; type: string; - - /** - * The material of the object. - */ - material: Material; /** * Object's parent in the scene graph.
false
Other
mrdoob
three.js
dd184263c3225e65c5b342be05d5da5c26fdc8da.json
Get camera values from matrix world
editor/js/Sidebar.Object.js
@@ -323,6 +323,7 @@ Sidebar.Object = function ( editor ) { if ( editor.selected.isCamera === true && cameraTransitioning === false ) { + editor.selected.updateMatrixWorld( true ); editor.currentCamera = transitionCamera; transitionCamera.copy( editor.selected ); cameraViewButton.dom.setAttribute( '...
false
Other
mrdoob
three.js
91c461372bbbd499fb6dde9596af913c5cc1b348.json
Add TypeScript definitions for MTLLoader
examples/jsm/loaders/MTLLoader.d.ts
@@ -0,0 +1,104 @@ +import { + Material, + LoadingManager, + Mapping, + EventDispatcher, + BufferGeometry, + Side, + Texture, + Vector2, + Wrapping +} from '../../../src/Three'; + +export interface MaterialCreatorOptions { + /** + * side: Which side to apply the material + * THREE.FrontSide (default), THRE...
false
Other
mrdoob
three.js
abfcd4aa188f978d07592e4f494ad30d945a171a.json
Resolve performance issue: 55~ 60fps
examples/js/MarchingCubes.js
@@ -47,7 +47,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors ) this.field = new Float32Array( this.size3 ); this.normal_cache = new Float32Array( this.size3 * 3 ); - this.palette = new Float32Array( this.size3 * 4 ); + this.palette = new Float32Array( this.size3 * 3 ); ...
false
Other
mrdoob
three.js
8b98b74076d961b755c1f46dcb168ccf61bc3291.json
Remove unneeded closure
editor/js/Sidebar.Geometry.TubeGeometry.js
@@ -27,17 +27,13 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) { var pointsList = new UI.Div(); points.add( pointsList ); - ( function () { + var parameterPoints = parameters.path.points; + for ( var i = 0; i < parameterPoints.length; i ++ ) { - var points = parameters.path.points; - for ( va...
false
Other
mrdoob
three.js
310491179af08eebbf245d0fd53a734fe13088eb.json
Remove unnecessary object.userData check
examples/js/exporters/GLTFExporter.js
@@ -336,7 +336,7 @@ THREE.GLTFExporter.prototype = { */ function serializeUserData( object, gltfProperty ) { - if ( ! object.userData || Object.keys( object.userData ).length === 0 ) { + if ( Object.keys( object.userData ).length === 0 ) { return;
false
Other
mrdoob
three.js
61a49191a8e3872fc6f5911301e5ae05f39e759f.json
Update BufferGeometry tets
test/unit/src/core/BufferGeometry.tests.js
@@ -809,6 +809,7 @@ export default QUnit.module( 'Core', () => { var index = new BufferAttribute( new Uint16Array( [ 0, 1, 2, 3 ] ), 1 ); var attribute1 = new BufferAttribute( new Uint16Array( [ 1, 3, 5, 7 ] ), 1 ); + attribute1.name = "attribute1"; var a = new BufferGeometry(); a.name = "JSONQUnit....
false
Other
mrdoob
three.js
d06ece07677cf9bded2fce17c363e142624ae7fc.json
Serialize name in BufferGeometry.toJSON()
src/core/BufferGeometry.js
@@ -1003,13 +1003,17 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy var array = Array.prototype.slice.call( attribute.array ); - data.data.attributes[ key ] = { + var attributeData = { itemSize: attribute.itemSize, type: attribute.array.constructor.name, a...
true
Other
mrdoob
three.js
d06ece07677cf9bded2fce17c363e142624ae7fc.json
Serialize name in BufferGeometry.toJSON()
src/loaders/BufferGeometryLoader.js
@@ -51,7 +51,9 @@ Object.assign( BufferGeometryLoader.prototype, { var attribute = attributes[ key ]; var typedArray = new TYPED_ARRAYS[ attribute.type ]( attribute.array ); - geometry.addAttribute( key, new BufferAttribute( typedArray, attribute.itemSize, attribute.normalized ) ); + var bufferAttribute =...
true
Other
mrdoob
three.js
61b7e8c5af6d0151163fc762c7385682d153cc01.json
Add TypeScript definitions for GLTFExporter
examples/jsm/exporters/GLTFExporter.d.ts
@@ -0,0 +1,7 @@ +import { Object3D } from '../../../src/Three'; + +export class GLTFExporter { + constructor(); + + parse(input: Object3D, onCompleted: (gltf: object) => void, options: object): null; +}
false
Other
mrdoob
three.js
1dfd109aee9980547382b121b5e3499e5933ccbc.json
Use createFillQuadScene also in OutlinePass
examples/js/postprocessing/OutlinePass.js
@@ -101,12 +101,7 @@ THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) { this.oldClearColor = new THREE.Color(); this.oldClearAlpha = 1; - this.camera = new THREE.OrthographicCamera( - 1, 1, 1, - 1, 0, 1 ); - this.scene = new THREE.Scene(); - - this.quad = new THREE.Mesh( new THREE.Plane...
false
Other
mrdoob
three.js
d9f860366c0b1f81cf1171b1a0a0a370bd1d8771.json
Update GLTFExporter to jsm
examples/jsm/exporters/GLTFExporter.js
@@ -0,0 +1,2229 @@ +/** + * @author fernandojsg / http://fernandojsg.com + * @author Don McCurdy / https://www.donmccurdy.com + * @author Takahiro / https://github.com/takahirox + */ + +import { + NearestFilter, + NearestMipMapNearestFilter, + NearestMipMapLinearFilter, + LinearFilter, + LinearMipMapNearestFilter,...
false
Other
mrdoob
three.js
3286c15d6ae4c442437beb313937dea213ef4be7.json
Keep that top comment, like other big libs do
.editorconfig
@@ -1,3 +1,5 @@ +# http://editorconfig.org + root = true [*]
false
Other
mrdoob
three.js
61abd4263c403a392b499eecd7eb062b4a1c1603.json
Add a .editorconfig file to enforce coding style
.editorconfig
@@ -0,0 +1,13 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.{js,ts,html}] +charset = utf-8 +indent_style = tab +indent_size = 2 + +[*.{js,ts}] +trim_trailing_whitespace = true
false
Other
mrdoob
three.js
aa219bc65af7d82fadc6e643a7b7e25ab0526e06.json
Add TypeScript definitions for example modules
examples/jsm/controls/MapControls.d.ts
@@ -0,0 +1,71 @@ +import { + Camera, + EventDispatcher, + MOUSE, + Object3D, + Vector3 +} from '../../../src/Three'; + +export class MapControls extends EventDispatcher { + constructor(object: Camera, domElement?: HTMLElement); + + object: Camera; + domElement: HTMLElement | HTMLDocument; + + // API + enabled...
true
Other
mrdoob
three.js
aa219bc65af7d82fadc6e643a7b7e25ab0526e06.json
Add TypeScript definitions for example modules
examples/jsm/controls/OrbitControls.d.ts
@@ -0,0 +1,70 @@ +import { Camera, MOUSE, Object3D, Vector3 } from '../../../src/Three'; + +export class OrbitControls { + constructor(object: Camera, domElement?: HTMLElement); + + object: Camera; + domElement: HTMLElement | HTMLDocument; + + // API + enabled: boolean; + target: Vector3; + + // deprecated + ce...
true
Other
mrdoob
three.js
aa219bc65af7d82fadc6e643a7b7e25ab0526e06.json
Add TypeScript definitions for example modules
examples/jsm/controls/TrackballControls.d.ts
@@ -0,0 +1,47 @@ +import { Camera, EventDispatcher, Vector3 } from '../../../src/Three'; + +export class TrackballControls extends EventDispatcher { + constructor(object: Camera, domElement?: HTMLElement); + + object: Camera; + domElement: HTMLElement; + + // API + enabled: boolean; + screen: {left: number; top: ...
true
Other
mrdoob
three.js
aa219bc65af7d82fadc6e643a7b7e25ab0526e06.json
Add TypeScript definitions for example modules
examples/jsm/loaders/GLTFLoader.d.ts
@@ -0,0 +1,27 @@ +import { + AnimationClip, + Camera, + LoadingManager, + Scene +} from '../../../src/Three'; + +export interface GLTF { + animations: AnimationClip[]; + scene: Scene; + scenes: Scene[]; + cameras: Camera[]; + asset: object; +} + +export class GLTFLoader { + constructor(manager?: LoadingManage...
true
Other
mrdoob
three.js
aa219bc65af7d82fadc6e643a7b7e25ab0526e06.json
Add TypeScript definitions for example modules
examples/jsm/loaders/OBJLoader.d.ts
@@ -0,0 +1,19 @@ +import { + Material, + LoadingManager, + Group +} from '../../../src/Three'; + +export class OBJLoader { + constructor(manager?: LoadingManager); + manager: LoadingManager; + regexp: any; + materials: Material[]; + path: string; + + load(url: string, onLoad: (group: Group) => void, onProgress...
true
Other
mrdoob
three.js
96db842b11d79e2e62c4323caf69dca443fc531a.json
Add camera.far argument
examples/webgl_clipping_stencil.html
@@ -115,7 +115,7 @@ scene = new THREE.Scene(); - camera = new THREE.PerspectiveCamera( 36, window.innerWidth / window.innerHeight, 1 ); + camera = new THREE.PerspectiveCamera( 36, window.innerWidth / window.innerHeight, 1, 100 ); camera.position.set( 0, 1.3, 3 ); scene.add( new THREE.AmbientL...
false
Other
mrdoob
three.js
5fe89aabb870dda767078fb54426b6e2d3529a9b.json
add helpers, distance -> constant
examples/webgl_clipping_stencil.html
@@ -36,28 +36,31 @@ <script> var camera, scene, renderer, startTime, object, stats; - var planes, planeObjects; + var planes, planeObjects, planeHelpers; var clock; var params = { animate: true, planeX: { - distance: 0, - negated: false + constant: 0, + negated: fals...
false
Other
mrdoob
three.js
6428719732de464a64d19c955e889f4d39c42a8e.json
remove extraneous comment
examples/webgl_clipping_stencil.html
@@ -180,7 +180,6 @@ } - // Handle camera entering model var material = new THREE.MeshStandardMaterial( { color: 0xFFC107,
false
Other
mrdoob
three.js
b76644f560090f96ce6142b183defb37a619a66d.json
add info tag
examples/webgl_clipping_stencil.html
@@ -6,14 +6,28 @@ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <style> body { - margin: 0px; + color: #ffffff; + font-family:Monospace; + font-size:13px; + text-align:center; + font-weight: bold; + background-color: #000000;...
false
Other
mrdoob
three.js
7b53b66a5d21989a599748279763548ef9ab3d82.json
add module for public
package.json
@@ -15,6 +15,7 @@ "build/three.module.js", "src", "examples/js", + "examples/jsm", "examples/fonts" ], "directories": {
false
Other
mrdoob
three.js
99a213e2b6ec8f997f634a5e6454a4c7d74ccd66.json
add glsl comment tag
src/materials/ShaderMaterial.js
@@ -31,8 +31,17 @@ function ShaderMaterial( parameters ) { this.defines = {}; this.uniforms = {}; - this.vertexShader = 'void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}'; - this.fragmentShader = 'void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}'; + this....
false
Other
mrdoob
three.js
4c8e6c773271f5f8af02356e82b00062bd128fc9.json
Fix #15684. Remove hidden character.
src/renderers/webgl/WebGLTextures.js
@@ -131,7 +131,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, } - if ( internalFormat === _gl.R16F || internalFormat === _gl.R32F || + if ( internalFormat === _gl.R16F || internalFormat === _gl.R32F || internalFormat === _gl.RGBA16F || internalFormat === _gl.RGBA32F )...
false
Other
mrdoob
three.js
7a4c9629d071c440dd990ad7b5036a0887a669e2.json
Update ArrayCamera to subcamera.viewport API.
examples/webgl_camera_array.html
@@ -26,18 +26,20 @@ function init() { - var AMOUNT = 6; - var SIZE = 1 / AMOUNT; var ASPECT_RATIO = window.innerWidth / window.innerHeight; + var AMOUNT = 6; + var WIDTH = ( window.innerWidth / AMOUNT ) * window.devicePixelRatio; + var HEIGHT = ( window.innerHeight / AMOUNT ) * window.devi...
false
Other
mrdoob
three.js
505c61a048eaa0dd6b012a060e4f0878f231902b.json
squash getters and setters
examples/js/loaders/GLTFLoader.js
@@ -630,7 +630,7 @@ THREE.GLTFLoader = ( function () { * @pailhead */ - function MeshStandardSGMaterial( params ) { + function GLTFMeshStandardSGMaterial( params ) { THREE.MeshStandardMaterial.call( this ); @@ -704,51 +704,24 @@ THREE.GLTFLoader = ( function () { }; + /*eslint-disable*/ Object...
false
Other
mrdoob
three.js
e45e20ad4b90ca0de7a1a738e7be90bd8abfb226.json
fix names and default values
examples/js/loaders/GLTFLoader.js
@@ -630,7 +630,7 @@ THREE.GLTFLoader = ( function () { * @pailhead */ - function SpecularGlossinessPbrMaterial( params ) { + function MeshStandardSGMaterial( params ) { THREE.MeshStandardMaterial.call( this ); @@ -677,8 +677,8 @@ THREE.GLTFLoader = ( function () { ].join( '\n' ); var uniforms = {...
false
Other
mrdoob
three.js
1b68f9458240a7e1a5918cfc194e8ddf43a186d2.json
fix timeScale argument
examples/js/nodes/utils/TimerNode.js
@@ -12,7 +12,7 @@ function TimerNode( scale, scope, timeScale ) { this.scale = scale !== undefined ? scale : 1; this.scope = scope || TimerNode.GLOBAL; - this.timeScale = timeScale !== undefined ? timeScale : this.scale !== 1; + this.timeScale = timeScale !== undefined ? timeScale : scale !== 1; }
false
Other
mrdoob
three.js
acf2f66efc2babf35bf2cc7f533bc273447312c0.json
add fire animate
examples/webgl_materials_nodes.html
@@ -1335,8 +1335,6 @@ var threshold = new THREE.FloatNode( .1 ); var borderSize = new THREE.FloatNode( .2 ); - // animate uv - var tex = new THREE.TextureNode( getTexture( "cloud" ) ); var texArea = new THREE.SwitchNode( tex, 'w' ); @@ -1398,15 +1396,29 @@ mtl = new THREE.Sta...
false
Other
mrdoob
three.js
8fce3031cfca80183dd2a256598d42c6765aebf0.json
Add color option to gui
examples/webgl_materials_matcap.html
@@ -54,6 +54,7 @@ var image; var API = { + color : 0xffffff, exposure : 1.0 } @@ -106,6 +107,7 @@ mesh.material = new THREE.MeshMatcapMaterial( { + color: API.color, matcap: matcap } ); @@ -117,6 +119,10 @@ // gui var gui = new dat.GUI(); + gui.addCol...
false
Other
mrdoob
three.js
f2187c0faf0cee40e9776a69226f1d3dc76c3e36.json
Add readme, credits
examples/textures/matcaps/readme.txt
@@ -0,0 +1,5 @@ + +matcap-porcelain-white.jpg courtesy of Milos Paripovic + +https://milosparipovic.com/blog/matcaps-collection +
false
Other
mrdoob
three.js
3d10eb7792e7c77565f1d388b99810870d13cce2.json
update spriteCanvasMaterial doc
docs/examples/SpriteCanvasMaterial.html
@@ -23,14 +23,18 @@ <h3>[name]( [param:Object parameters] )</h3> parameters is an object that can be used to set up the default properties </p> <p> + rotation - the rotation of the sprite<br/> color - the color of the sprite<br/> program - the program used to draw the sprite </p> <h2>Propertie...
false
Other
mrdoob
three.js
ace8e6b56d7e621619564ab23da423378f9944fb.json
Adjust code style
examples/js/animation/MMDAnimationHelper.js
@@ -946,7 +946,7 @@ THREE.MMDAnimationHelper = ( function () { if ( this.currentTime < this.delayTime ) return false; - if ((this.currentTime - this.delayTime) > this.audioDuration) return false; + if ( ( this.currentTime - this.delayTime ) > this.audioDuration ) return false; this.audio.startTime ...
false
Other
mrdoob
three.js
91d7f619f3ff0ca32bad4e79ff3e3a8b2d25f3c6.json
add missing method doc
docs/api/en/core/BufferAttribute.html
@@ -120,6 +120,9 @@ <h2>Methods</h2> <h3>[method:BufferAttribute clone]() </h3> <p>Return a copy of this bufferAttribute.</p> + <h3>[method:BufferAttribute copy]( [param:BufferAttribute bufferAttribute] )</h3> + <p>Copies another BufferAttribute to this BufferAttribute.</p> + <h3>[method:BufferAttribute co...
false
Other
mrdoob
three.js
015573fc37d2e306873a26b6f442bc62591711af.json
return all morph targets
examples/js/loaders/FBXLoader.js
@@ -99,7 +99,7 @@ THREE.FBXLoader = ( function () { } - console.log( fbxTree ); + // console.log( fbxTree ); var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin ); @@ -743,14 +743,6 @@ THREE.FBXLoader = ( function () { for (...
false
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_animation_skinning_morph.html
@@ -40,7 +40,7 @@ <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - clip system - - knight by <a href="http://vimeo.com/36113323">apendua</a> + - knight by <a href="https://vimeo.com/36113323" target="_blank" rel="noopener">apendua</a> <div id="meminfo"></div...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_geometry_teapot.html
@@ -32,7 +32,7 @@ <body> <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - the Utah Teapot<br /> - from <a href="https://www.udacity.com/course/interactive-3d-graphics--cs291">Udacity Interactive 3D Graphics</a> + from <a href="https://www.udacity.com/course/interac...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_loader_assimp2json.html
@@ -31,7 +31,7 @@ <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - Jeep by Psionic, interior from - <a href="http://assimp.sf.net" target="_blank" rel="noopener">Assimp</a> + <a href="http://www.assimp.org/" target="_blank" rel="noopener">Assimp</a> </div> ...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_loader_ctm.html
@@ -31,7 +31,7 @@ <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - <a href="http://openctm.sourceforge.net/" target="_blank" rel="noopener">CTM format</a> loader test - - using <a href="http://code.google.com/p/js-openctm/">js-openctm</a> - + using <a href="https://g...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_loader_ctm_materials.html
@@ -34,7 +34,7 @@ <body> <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - - using <a href="http://code.google.com/p/js-openctm/">js-openctm</a> - + using <a href="https://github.com/jcmellado/js-openctm" target="_blank" rel="noopener">js-openctm</a> - camaro...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_loader_ply.html
@@ -39,7 +39,7 @@ <body> <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - - PLY loader test by <a href="https://github.com/menway">Wei Meng</a>. Image from <a href="http://people.sc.fsu.edu/~jburkardt/data/ply/ply.html">John Burkardt</a> + PLY loader test by <a hre...
true
Other
mrdoob
three.js
1c9b1109bf9c8a7ba6c0e591f7ce03b809f8c491.json
fix more example links
examples/webgl_loader_stl.html
@@ -39,7 +39,7 @@ <body> <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - - STL loader test by <a href="https://github.com/aleeper">aleeper</a>. PR2 head from <a href="http://www.ros.org/wiki/pr2_description">www.ros.org</a> + STL loader test by <a href="https://gi...
true
Other
mrdoob
three.js
83787b69943f1988bd6bf5230c8e502b7b721563.json
Use BoxLineGeometry in webvr examples.
examples/webvr_ballshooter.html
@@ -24,6 +24,8 @@ <script src="../build/three.js"></script> <script src="js/vr/WebVR.js"></script> + <script src="js/geometries/BoxLineGeometry.js"></script> + <script> var container; @@ -57,9 +59,9 @@ camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.1, 10 ); ...
true
Other
mrdoob
three.js
83787b69943f1988bd6bf5230c8e502b7b721563.json
Use BoxLineGeometry in webvr examples.
examples/webvr_cubes.html
@@ -22,9 +22,10 @@ <body> <script src="../build/three.js"></script> - <script src="js/vr/WebVR.js"></script> + <script src="js/geometries/BoxLineGeometry.js"></script> + <script> var clock = new THREE.Clock(); @@ -71,9 +72,9 @@ crosshair.position.z = - 2; camera.add( crosshair ); - ...
true
Other
mrdoob
three.js
ee95e9180ddaad69c19979f4a52e4c3d95831ce9.json
add example to docs
docs/api/en/core/Layers.html
@@ -21,6 +21,11 @@ <h1>[name]</h1> All classes that inherit from [page:Object3D] have an [page:Object3D.layers] property which is an instance of this class. </p> + <h2>Examples</h2> + + <p> + [example:webgl_layers WebGL / layers] + </p> <h2>Constructor</h2>
false
Other
mrdoob
three.js
f3689f2321c42eeddb67ab1ee85fa2ab5050ad8a.json
add example to menu
examples/files.js
@@ -59,6 +59,7 @@ var files = { "webgl_interactive_raycasting_points", "webgl_interactive_voxelpainter", "webgl_kinect", + "webgl_layers", "webgl_lensflares", "webgl_lights_hemisphere", "webgl_lights_physical",
false
Other
mrdoob
three.js
b469a5a0d98c83392de073247b7a061818889afd.json
add layers example
examples/webgl_layers.html
@@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>three.js webgl - layers</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: #f0f0...
false
Other
mrdoob
three.js
25b9b81c995da187e666d96cf3dd2963acdfdaa4.json
update use of Texture3D constructor
examples/webgl_materials_texture3d_volume1.html
@@ -115,7 +115,9 @@ // THREEJS will select R32F (33326) based on the RedFormat and FloatType. // Also see https://www.khronos.org/registry/webgl/specs/latest/2.0/#TEXTURE_TYPES_FORMATS_FROM_DOM_ELEMENTS_TABLE // TODO: look the dtype up in the volume metadata - var texture = new THREE.Texture3D(volume....
false
Other
mrdoob
three.js
c8bbc3708ab3bebaa6006461a36c1df77bf271f0.json
increase scope of sceneGraph
examples/js/loaders/FBXLoader.js
@@ -23,6 +23,7 @@ THREE.FBXLoader = ( function () { var FBXTree; var connections; + var sceneGraph = new THREE.Group(); function FBXLoader( manager ) { @@ -131,7 +132,9 @@ THREE.FBXLoader = ( function () { var deformers = this.parseDeformers(); var geometryMap = new GeometryParser().parse( deformers...
false
Other
mrdoob
three.js
9a970e016f5066dbb2ef79db1962888ad2a992ce.json
move all animation parsing to animation parser
examples/js/loaders/FBXLoader.js
@@ -763,7 +763,6 @@ THREE.FBXLoader = ( function () { }, - // create the main THREE.Group() to be returned by the loader parseScene: function ( deformers, geometryMap, materialMap ) { @@ -798,20 +797,23 @@ THREE.FBXLoader = ( function () { } ); this.bindSkeleton( deformers.skeletons, geometryMa...
false
Other
mrdoob
three.js
24e47535ac79f77744f737109ab3d0082a74bdd3.json
increase scope of connections variable
examples/js/loaders/FBXLoader.js
@@ -22,6 +22,7 @@ THREE.FBXLoader = ( function () { var FBXTree; + var connections; function FBXLoader( manager ) { @@ -122,13 +123,13 @@ THREE.FBXLoader = ( function () { parse: function () { - this.connections = this.parseConnections(); + connections = this.parseConnections(); var images =...
false
Other
mrdoob
three.js
45dc88e930acd883ded7efe93ba375e1e3dd1849.json
increase scope of FBXTree variable
examples/js/loaders/FBXLoader.js
@@ -21,6 +21,8 @@ THREE.FBXLoader = ( function () { + var FBXTree; + function FBXLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; @@ -73,8 +75,6 @@ THREE.FBXLoader = ( function () { parse: function ( FBXBuffer, resourceDirectory ) { - var FBXTree...
false
Other
mrdoob
three.js
64bf35c366700a7731a9cbb99c069fce7ebedd21.json
show preservePosition param
examples/webgl_loader_sea3d_bvh.html
@@ -115,6 +115,7 @@ function bvhToSEA3D( result ) { var clip = THREE.SkeletonUtils.retargetClip( player, result.skeleton, result.clip, { + preservePosition: true, hip: "Base HumanPelvis", names: { "Base HumanPelvis": "hip",
false
Other
mrdoob
three.js
a25321ceb62305ecfc7ded184ebee8739076bf70.json
fix bug: when material is undefined The triangle may not have the material
src/objects/Mesh.js
@@ -162,7 +162,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), { function checkIntersection( object, material, raycaster, ray, pA, pB, pC, point ) { var intersect; - + if(!material) return null; if ( material.side === BackSide ) { intersect = ray.intersectTriangle( pC, pB...
false
Other
mrdoob
three.js
a821d1619e4f5cfe58432577c6b69490d6db08b6.json
use hard tabs in Vector2.html
docs/api/math/Vector2.html
@@ -175,9 +175,9 @@ <h3>[method:Float dot]( [param:Vector2 v] )</h3> <p> Calculates the [link:https://en.wikipedia.org/wiki/Dot_product dot product] of this vector and [page:Vector2 v]. - </p> + </p> - <h3>[method:Float cross]( [param:Vector2 v] )</h3> + <h3>[method:Float cross]( [pa...
false
Other
mrdoob
three.js
b3df276e8de94f3ca57c92f3e7c386bdb4384da6.json
add docs and unit test of Vector2.cross method
docs/api/math/Vector2.html
@@ -175,6 +175,12 @@ <h3>[method:Float dot]( [param:Vector2 v] )</h3> <p> Calculates the [link:https://en.wikipedia.org/wiki/Dot_product dot product] of this vector and [page:Vector2 v]. + </p> + + <h3>[method:Float cross]( [param:Vector2 v] )</h3> + <p> + Calculates the [link:https://...
true
Other
mrdoob
three.js
b3df276e8de94f3ca57c92f3e7c386bdb4384da6.json
add docs and unit test of Vector2.cross method
test/unit/src/math/Vector2.tests.js
@@ -9,7 +9,8 @@ import { Matrix3 } from '../../../../src/math/Matrix3'; import { BufferAttribute } from '../../../../src/core/BufferAttribute'; import { x, - y + y, + eps } from './Constants.tests'; export default QUnit.module( 'Maths', () => { @@ -306,6 +307,17 @@ export default QUnit.module( 'Maths', () => { ...
true
Other
mrdoob
three.js
ceef48eedc496698a2f92106bd01070983c13112.json
add cross method to Vector2
src/math/Vector2.js
@@ -353,6 +353,12 @@ Object.assign( Vector2.prototype, { }, + cross: function ( v ) { + + return this.x * v.y - this.y * v.x; + + }, + lengthSq: function () { return this.x * this.x + this.y * this.y;
false
Other
mrdoob
three.js
770b4296c0f2ceca60632eed7f0b96c726524f1c.json
Fix the VRMLLoader `this` scope.
examples/js/loaders/VRMLLoader.js
@@ -50,6 +50,7 @@ THREE.VRMLLoader.prototype = { parse: function ( data ) { + var scope = this; var texturePath = this.texturePath || ''; var textureLoader = new THREE.TextureLoader( this.manager ); @@ -204,34 +205,34 @@ THREE.VRMLLoader.prototype = { case 'skyAngle': case 'groundAngle': - ...
false
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/canvas_geometry_birds.html
@@ -355,10 +355,6 @@ } - </script> - - <script> - var SCREEN_WIDTH = window.innerWidth, SCREEN_HEIGHT = window.innerHeight, SCREEN_WIDTH_HALF = SCREEN_WIDTH / 2,
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/canvas_geometry_panorama.html
@@ -44,6 +44,8 @@ var texture_placeholder, isUserInteracting = false, onMouseDownMouseX = 0, onMouseDownMouseY = 0, + onPointerDownPointerX = 0, onPointerDownPointerY = 0, + onPointerDownLon = 0, onPointerDownLat = 0, lon = 90, onMouseDownLon = 0, lat = 0, onMouseDownLat = 0, phi = 0, theta ...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/canvas_geometry_panorama_fisheye.html
@@ -44,6 +44,8 @@ var texture_placeholder, isUserInteracting = false, onMouseDownMouseX = 0, onMouseDownMouseY = 0, + onPointerDownPointerX = 0, onPointerDownPointerY = 0, + onPointerDownLon = 0, onPointerDownLat = 0, lon = 90, onMouseDownLon = 0, lat = 0, onMouseDownLat = 0, phi = 0, theta ...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/css2d_label.html
@@ -46,7 +46,7 @@ <script> - var camera, scene, renderer, labelRenderer; + var camera, scene, scene2, renderer, labelRenderer; var controls; var clock = new THREE.Clock(); var textureLoader = new THREE.TextureLoader();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/css3d_panorama_deviceorientation.html
@@ -39,6 +39,7 @@ <script> var camera, scene, renderer; + var controls; var geometry, material, mesh; init();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/software_lines_splines.html
@@ -59,7 +59,7 @@ windowHalfX = window.innerWidth / 2, windowHalfY = window.innerHeight / 2, - camera, scene, renderer, material; + camera, scene, renderer, material, stats; init(); animate();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_geometry_spline_editor.html
@@ -53,7 +53,7 @@ }; var container, stats; - var camera, scene, renderer; + var camera, scene, renderer, spotlight; var splineHelperObjects = [], splineOutline; var splinePointsLength = 4; var positions = [];
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_gpgpu_water.html
@@ -531,9 +531,9 @@ var uniforms = heightmapVariable.material.uniforms; if ( mouseMoved ) { - this.raycaster.setFromCamera( mouseCoords, camera ); + raycaster.setFromCamera( mouseCoords, camera ); - var intersects = this.raycaster.intersectObject( meshRay ); + var intersects = raycaster.in...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_loader_ctm.html
@@ -64,6 +64,7 @@ var textureLoader = new THREE.TextureLoader(); var cubeTextureLoader = new THREE.CubeTextureLoader(); + var reflectionCube; document.addEventListener('mousemove', onDocumentMouseMove, false);
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_marchingcubes.html
@@ -100,6 +100,8 @@ var effectController; + var controls; + var time = 0; var clock = new THREE.Clock();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_materials_curvature.html
@@ -79,6 +79,8 @@ var camera, scene, renderer; + var controls; + var ninjaMeshRaw, curvatureAttribute, bufferGeo; init();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_modifier_subdivision.html
@@ -29,7 +29,7 @@ var camera, controls, scene, renderer; - var cube, mesh, material; + var cube, mesh, material, geometry, smooth, group; // Create new object by parameters
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_modifier_tessellation.html
@@ -90,6 +90,8 @@ var renderer, scene, camera, stats; + var controls; + var mesh, uniforms; var WIDTH = window.innerWidth,
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_nearestneighbour.html
@@ -76,6 +76,7 @@ var amountOfParticles = 500000, maxDistance = Math.pow( 120, 2 ); var positions, alphas, particles, _particleGeom; + var kdtree; var clock = new THREE.Clock();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_physics_convex_break.html
@@ -300,9 +300,9 @@ var shape = new Ammo.btConvexHullShape(); for ( var i = 0, il = coords.length; i < il; i+= 3 ) { - this.tempBtVec3_1.setValue( coords[ i ], coords[ i + 1 ], coords[ i + 2 ] ); + tempBtVec3_1.setValue( coords[ i ], coords[ i + 1 ], coords[ i + 2 ] ); var lastOne = ( i >= ( il - 3...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_physics_terrain.html
@@ -204,7 +204,7 @@ // Create the terrain body - var groundShape = this.createTerrainShape( heightData ); + var groundShape = createTerrainShape( heightData ); var groundTransform = new Ammo.btTransform(); groundTransform.setIdentity(); // Shifts the terrain, since bullet re-ce...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_postprocessing_afterimage.html
@@ -32,7 +32,13 @@ var camera, scene, renderer, composer; var mesh, light; - var afterimagePass, enable = true; + var afterimagePass; + + var params = { + + enable: true + + }; init(); createGUI(); @@ -73,7 +79,7 @@ var gui = new dat.GUI( { name: 'Damp setting' } ); gui.add( a...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_postprocessing_procedural.html
@@ -81,8 +81,10 @@ <script> - var camera, postScene, renderer, postMaterial, noiseRandom1DMaterial, noiseRandon2DMaterial, noiseRandom3DMaterial, postQuad; + var camera, postCamera, postScene, renderer; + var postMaterial, noiseRandom1DMaterial, noiseRandom2DMaterial, noiseRandom3DMaterial, postQuad; v...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_postprocessing_rgb_halftone.html
@@ -60,7 +60,7 @@ } // setup - var wrapper, renderer, clock, camera, controls, stats; + var wrapper, renderer, clock, camera, controls, stats, rotationSpeed; wrapper = document.createElement( 'div' ); renderer = new THREE.WebGLRenderer();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_postprocessing_taa.html
@@ -56,6 +56,7 @@ var camera, scene, renderer, composer, copyPass, taaRenderPass, renderPass; var gui, stats, texture; + var index = 0; var param = { TAAEnabled: "1", TAASampleLevel: 0 }; @@ -180,13 +181,11 @@ function animate() { - this.index = this.index || 0; - requestAnimationFra...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_raycast_texture.html
@@ -73,7 +73,7 @@ <script src="../build/three.js"></script> <script> - CanvasTexture = function ( parentTexture ) { + var CanvasTexture = function ( parentTexture ) { this._canvas = document.createElement( "canvas" ); this._canvas.width = this._canvas.height = 1024; @@ -183,9 +183,6 @@ } ...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_refraction.html
@@ -47,7 +47,7 @@ if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); - var scene, camera, clock, renderer, refractor; + var scene, camera, clock, renderer, refractor, controls; init();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_simple_gi.html
@@ -163,7 +163,7 @@ // - var camera, scene, renderer; + var camera, scene, renderer, controls; init(); animate();
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_tiled_forward.html
@@ -171,7 +171,7 @@ // Screen rectangle bounds from light sphere's world AABB var lightBounds = function () { - v = new THREE.Vector3(); + var v = new THREE.Vector3(); return function ( camera, pos, r ) { var minX = State.width, maxX = 0, minY = State.height, maxY = 0, hw = State.width / 2, hh = ...
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_water.html
@@ -49,7 +49,7 @@ if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); - var scene, camera, clock, renderer, water; + var scene, camera, clock, renderer, controls, water; var torusKnot;
true
Other
mrdoob
three.js
5cd646f027121af24bc6fe245487dbf4f71c3639.json
fix undefined variable problems
examples/webgl_water_flowmap.html
@@ -49,7 +49,7 @@ if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); - var scene, camera, renderer, water; + var scene, camera, renderer, controls, water; init(); animate();
true
Other
mrdoob
three.js
524571cfa1da7a789cadb00637bb69a5431039b1.json
Add normalized arg to constructor
docs/api/en/core/InstancedBufferAttribute.html
@@ -17,7 +17,7 @@ <h1>[name]</h1> </p> <h2>Constructor</h2> - <h3>[name]( [param:TypedArray array], [param:Integer itemSize], [param:Number meshPerAttribute] )</h3> + <h3>[name]( [param:TypedArray array], [param:Integer itemSize], [param:Boolean normalized], [param:Number meshPerAttribute] )</h3> <p> </...
true
Other
mrdoob
three.js
524571cfa1da7a789cadb00637bb69a5431039b1.json
Add normalized arg to constructor
src/core/InstancedBufferAttribute.js
@@ -4,9 +4,19 @@ import { BufferAttribute } from './BufferAttribute.js'; * @author benaadams / https://twitter.com/ben_a_adams */ -function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) { +function InstancedBufferAttribute( array, itemSize, normalized, meshPerAttribute ) { - BufferAttribute.call...
true
Other
mrdoob
three.js
8be4a88a71ca0abc8dab720f261c86e4f91ee6ea.json
Save animations of MD2 files
editor/js/Loader.js
@@ -347,6 +347,7 @@ var Loader = function ( editor ) { var mesh = new THREE.Mesh( geometry, material ); mesh.mixer = new THREE.AnimationMixer( mesh ); mesh.name = filename; + editor.addAnimation( mesh, geometry.animations ); editor.execute( new AddObjectCommand( mesh ) );
false
Other
mrdoob
three.js
0b3150de61ba4f6642dcad26572b338e84297bc2.json
Add vertexTangents to docs and typings.
docs/api/en/materials/Material.html
@@ -261,6 +261,13 @@ <h3>[property:Integer vertexColors]</h3> Other options are [page:Materials THREE.VertexColors] and [page:Materials THREE.FaceColors]. </p> + <h3>[property:Boolean vertexTangents]</h3> + <p> + Defines whether precomputed vertex tangents, which must be provided in a vec4 "tangent" attribut...
true
Other
mrdoob
three.js
0b3150de61ba4f6642dcad26572b338e84297bc2.json
Add vertexTangents to docs and typings.
src/materials/Material.d.ts
@@ -44,6 +44,7 @@ export interface MaterialParameters { side?: Side; transparent?: boolean; vertexColors?: Colors; + vertexTangents?: boolean; visible?: boolean; } @@ -234,6 +235,11 @@ export class Material extends EventDispatcher { */ vertexColors: Colors; + /** + * Defines whether precompu...
true