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 | f081dd161b3808cb1090802a4faf5bc56c5cbfe8.json | Remove extra a tag in webgl_morphotarget_human | examples/webgl_morphtargets_human.html | @@ -33,7 +33,7 @@
<div id="container"></div>
<div id="info">
- <a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> webgl - morph targets - human</a>
+ <a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> webgl - morph targets - human
</div>
<script src="../buil... | false |
Other | mrdoob | three.js | 67521c1833b7004bdf8b936d61aebad82f3f75c7.json | Remove unnecessary comma in webgl_materials_cars | examples/webgl_materials_cars.html | @@ -312,7 +312,7 @@
[ "Bronze", mlib[ "Bronze" ] ],
[ "Chrome", mlib[ "Chrome" ] ]
- ],
+ ]
};
@@ -353,7 +353,7 @@
[ "Bronze", mlib[ "Bronze" ] ],
[ "Chrome", mlib[ "Chrome" ] ]
- ],
+ ]
};
@@ -413,7 +413,7 @@
[ "Bronze", mlib[ "Bronze" ] ],
... | false |
Other | mrdoob | three.js | d78fa64a4d365b3d751eb6a9193bb6993198498a.json | Fix wrong hexa color in webgl_loader_sea3d_morph | examples/webgl_loader_sea3d_morph.html | @@ -28,7 +28,7 @@
</head>
<body>
<div id="info">
- <a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFF" target="_blank">sea3d</a>
+ <a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/su... | false |
Other | mrdoob | three.js | 0da24de64b0323922858196177deb9a7c0e37da3.json | Fix wrong hexa color in webgl_loader_sea3d | examples/webgl_loader_sea3d.html | @@ -28,7 +28,7 @@
</head>
<body>
<div id="info">
- <a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFF" target="_blank">sea3d</a>
+ <a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/su... | false |
Other | mrdoob | three.js | b13b944c03596b35bf0c6519e173b48945703cf6.json | Add missing semicolon in webgl_loader_mmd | examples/webgl_loader_mmd.html | @@ -79,7 +79,7 @@
scene = new THREE.Scene();
- var gridHelper = new THREE.GridHelper( 100, 100 )
+ var gridHelper = new THREE.GridHelper( 100, 100 );
gridHelper.position.y = -10;
scene.add( gridHelper );
| false |
Other | mrdoob | three.js | 48ccd9fff537c8e00b442bed66ea0160b3baedfa.json | Remove extra curly-brace in webgl_loader_bvh | examples/webgl_loader_bvh.html | @@ -21,7 +21,6 @@
text-align: center;
color: #000000;
}
-}
</style>
</head> | false |
Other | mrdoob | three.js | 8b203220f20f0659c134ed0cbdc828a2699956ab.json | Remove unnecessary comma in webgl_lines_cubes | examples/webgl_lines_cubes.html | @@ -104,7 +104,7 @@
[ m1, scale*0.5, [2*d, 0, 0], g1 ], [ m1, scale*0.5, [-2*d, 0, 0], g1 ],
[ m1, scale*0.5, [2*d, d, 0], g1 ], [ m1, scale*0.5, [-2*d, d, 0], g1 ],
- [ m1, scale*0.5, [2*d, -d, 0], g1 ], [ m1, scale*0.5, [-2*d, -d, 0], g1 ],
+ [ m1, scale*0.5, [2*d, -d... | false |
Other | mrdoob | three.js | fb8d7a0269b8e07a4062b5a2e0b20da567c55a15.json | Remove variable duplicate in webgl_pointlights | examples/webgl_lights_pointlights.html | @@ -50,7 +50,7 @@
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var camera, scene, renderer,
- particle1, particle2, particle2,
+ particle1, particle2,
light1, light2, light3, light4,
object, loader;
| false |
Other | mrdoob | three.js | e045374560c0dbb90c0385e07abd4f146d0e5c19.json | Remove unnecessary comma in webgl_light_physical | examples/webgl_lights_physical.html | @@ -80,7 +80,7 @@
"400 lx (Sunrise/Sunset)": 400,
"1000 lx (Overcast)": 1000,
"18000 lx (Daylight)": 18000,
- "50000 lx (Direct Sun)": 50000,
+ "50000 lx (Direct Sun)": 50000
};
var params = {
@@ -131,7 +131,7 @@
roughness: 0.8,
color: 0xffffff,
metalness: 0.2,
- bum... | false |
Other | mrdoob | three.js | 695071e617827f48179d7c138415f85441fd5efe.json | add side to hdr example. | examples/webgl_materials_envmaps_hdr.html | @@ -63,7 +63,8 @@
roughness: 1.0,
bumpScale: 0.3,
background: false,
- exposure: 1.0
+ exposure: 1.0,
+ side: 'front'
};
var camera, scene, renderer, controls, objects = [];
var hdrCubeMap;
@@ -91,8 +92,8 @@
standardMaterial = new THREE.MeshStandardMaterial( {
map: null,
... | false |
Other | mrdoob | three.js | 32ef25a24b4abbfdc67294c73baa668f8a1fddae.json | fix documentation (#10039) | docs/api/core/BufferAttribute.html | @@ -54,7 +54,7 @@ <h3>[property:Integer version]</h3>
A version number, incremented every time the needsUpdate property is set to true.
</div>
- <h3>[property:Function onUploadCallback]</h3>
+ <h3>[property:Function onUpload]</h3>
<div>
A callback function that is executed after the Renderer has transfe... | false |
Other | mrdoob | three.js | 6078e0852da884fc8aec918ffe0d5c540c52a529.json | add link to project wiki in README.md (#9987) | README.md | @@ -5,8 +5,11 @@ three.js
The aim of the project is to create an easy to use, lightweight, 3D library. The library provides <canvas>, <svg>, CSS3D and WebGL renderers.
-[Examples](http://threejs.org/examples/) — [Documentation](http://threejs.org/docs/) — [Migrating](https://github.com/mrdoob/three.js/... | false |
Other | mrdoob | three.js | 4342cf8ec12a68bdd53627731b63d11358aede72.json | Remove unnecessary lines from OutlineEffect | examples/js/effects/OutlineEffect.js | @@ -3,9 +3,6 @@
*
* Reference: https://en.wikipedia.org/wiki/Cel_shading
*
- * Dependencies
- * - THREE.ChainableEffect
- *
* // How to set default outline parameters
* new THREE.OutlineEffect( renderer, {
* defaultThickNess: 0.01, | false |
Other | mrdoob | three.js | 3c02fefe57e1f17ba08a1aca0c3d8633e0185a51.json | Fix typo in comment (#10021) | examples/js/controls/OrbitControls.js | @@ -11,7 +11,7 @@
//
// Orbit - left mouse / touch: one finger move
// Zoom - middle mouse, or mousewheel / touch: two finger spread or squish
-// Pan - right mouse, or arrow keys / touch: three finter swipe
+// Pan - right mouse, or arrow keys / touch: three finger swipe
THREE.OrbitControls = functio... | false |
Other | mrdoob | three.js | cb2c0ea1fb0ec23b20eb44474499bea10a38b452.json | Add CCDIKHelper (#9996)
* Add CCDIKHelper
* Clean up MMDPhysics.js
* Fix typo | examples/js/animation/CCDIKSolver.js | @@ -205,3 +205,190 @@ THREE.CCDIKSolver.prototype = {
}
};
+
+
+THREE.CCDIKHelper = function ( mesh ) {
+
+ if ( mesh.geometry.iks === undefined || mesh.skeleton === undefined ) {
+
+ throw 'THREE.CCDIKHelper requires iks in mesh.geometry and skeleton in mesh.';
+
+ }
+
+ THREE.Object3D.call( this );
+
+ this.roo... | true |
Other | mrdoob | three.js | cb2c0ea1fb0ec23b20eb44474499bea10a38b452.json | Add CCDIKHelper (#9996)
* Add CCDIKHelper
* Clean up MMDPhysics.js
* Fix typo | examples/js/animation/MMDPhysics.js | @@ -1031,11 +1031,6 @@ THREE.MMDPhysics.Constraint.prototype = {
};
-/*
- * This helper displays rigid bodies of mesh for debug.
- * It should be under Scene because it just sets world position/roration to meshes
- * for simplicity.
- */
THREE.MMDPhysicsHelper = function ( mesh ) {
if ( mesh.physics === undef... | true |
Other | mrdoob | three.js | cb2c0ea1fb0ec23b20eb44474499bea10a38b452.json | Add CCDIKHelper (#9996)
* Add CCDIKHelper
* Clean up MMDPhysics.js
* Fix typo | examples/webgl_loader_mmd.html | @@ -52,7 +52,7 @@
var container, stats;
var mesh, camera, scene, renderer;
- var helper, physicsHelper;
+ var helper, ikHelper, physicsHelper;
var mouseX = 0, mouseY = 0;
@@ -119,6 +119,10 @@
helper.add( mesh );
helper.setAnimation( mesh );
+ // create CCDIKHelper after calling h... | true |
Other | mrdoob | three.js | 0d47a62f8df511929057023f3884dbad1d4ebfba.json | Add setOverrideMimeType() to XHRLoader (#9959)
* Add setOverrideMimeType() to XHRLoader
* Rename setOverrideMimeType with setMimeType of FileLoader | src/loaders/FileLoader.js | @@ -184,7 +184,7 @@ Object.assign( FileLoader.prototype, {
if ( this.responseType !== undefined ) request.responseType = this.responseType;
if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials;
- if ( request.overrideMimeType ) request.overrideMimeType( 'text/plain' );
+ ... | false |
Other | mrdoob | three.js | effcd4402a20e60222dabe9e861ddd805ae4dfd5.json | stop sharing of Uniforms() in FilmPass | examples/js/postprocessing/FilmPass.js | @@ -21,10 +21,13 @@ THREE.FilmPass = function ( noiseIntensity, scanlinesIntensity, scanlinesCount,
} );
- if ( grayscale !== undefined ) this.uniforms.grayscale.value = grayscale;
- if ( noiseIntensity !== undefined ) this.uniforms.nIntensity.value = noiseIntensity;
- if ( scanlinesIntensity !== undefined ) this... | false |
Other | mrdoob | three.js | b01a230aa98d74d2b6bd1d903623a86194b2b767.json | fix uniforms that need unsharing for outline pass | examples/js/postprocessing/OutlinePass.js | @@ -59,11 +59,11 @@ THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
var MAX_EDGE_GLOW = 4;
this.separableBlurMaterial1 = this.getSeperableBlurMaterial(MAX_EDGE_THICKNESS);
- this.separableBlurMaterial1.uniforms[ "texSize" ].value = new THREE.Vector2(resx, resy);
- this.separableBlurM... | false |
Other | mrdoob | three.js | 6f995385f5a7d6360bf694c10c5f934d6c92665d.json | fix manual MSAA | examples/js/postprocessing/ManualMSAARenderPass.js | @@ -87,7 +87,7 @@ THREE.ManualMSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass.
var baseSampleWeight = 1.0 / jitterOffsets.length;
var roundingRange = 1 / 32;
- this.copyUniforms[ "tDiffuse" ].value = this.sampleRenderTarget.texture;
+ this.copyUniforms[ "tDiffuse" ] = new THREE.Uniform( th... | false |
Other | mrdoob | three.js | 66bdaf5a00e4346a2e5e3a735ce913432cba4c28.json | use new Uniform() instead of object literals | examples/js/Mirror.js | @@ -5,9 +5,9 @@
THREE.ShaderLib[ 'mirror' ] = {
uniforms: {
- "mirrorColor": { value: new THREE.Color( 0x7F7F7F ) },
- "mirrorSampler": { value: null },
- "textureMatrix" : { value: new THREE.Matrix4() }
+ "mirrorColor": new THREE.Uniform( new THREE.Color( 0x7F7F7F ) ),
+ "mirrorSampler": new THREE.Uni... | false |
Other | mrdoob | three.js | d9f437b84fa116a48908e20913cb15303802bb06.json | Fix MMD audio example | examples/js/loaders/MMDLoader.js | @@ -2000,7 +2000,7 @@ THREE.MMDAudioManager = function ( audio, listener, p ) {
this.currentTime = 0.0;
this.delayTime = params.delayTime !== undefined ? params.delayTime : 0.0;
- this.audioDuration = this.audio.source.buffer.duration;
+ this.audioDuration = this.audio.buffer.duration;
this.duration = this.audi... | false |
Other | mrdoob | three.js | 4ce415a6a8f2c5bcfc89434ada4e0529dd85fe69.json | Make Color.setScalar returns this. (#9885) | src/math/Color.js | @@ -53,6 +53,8 @@ Color.prototype = {
this.g = scalar;
this.b = scalar;
+ return this;
+
},
setHex: function ( hex ) { | false |
Other | mrdoob | three.js | f039ee722c9a16e5d6f24b57d005f8293394fd92.json | Add empty map to glsl plugin (#9745)
That is how it should look like according to rollup plugin conventions: https://github.com/rollup/rollup/wiki/Plugins | rollup.config.js | @@ -12,12 +12,16 @@ function glsl () {
transform ( code, id ) {
if ( !/\.glsl$/.test( id ) ) return;
- return 'export default ' + JSON.stringify(
+ var transformedCode = 'export default ' + JSON.stringify(
code
.replace( /[ \t]*\/\/.*\n/g, '' )
.replace( /[ \t]*\/\*[\s\S]*?\*\//g, '' )
... | false |
Other | mrdoob | three.js | ba347be773d0226a01e99940b6cc4b755c3d662a.json | Add attributes to EditorControls (#9819)
* Add attributes to EditorControls
Add attributes to EditorControls to be able to change speed of controls
* Changed attribute name factor to speed | examples/js/controls/EditorControls.js | @@ -13,6 +13,9 @@ THREE.EditorControls = function ( object, domElement ) {
this.enabled = true;
this.center = new THREE.Vector3();
+ this.panSpeed = 0.001
+ this.zoomSpeed = 0.001
+ this.rotationSpeed = 0.005
// internals
@@ -57,7 +60,7 @@ THREE.EditorControls = function ( object, domElement ) {
var di... | false |
Other | mrdoob | three.js | ce50b6c0cdd50ec1fe380704aa1efec07a16b419.json | remove redundant checks (#9829) | src/renderers/WebGLRenderer.js | @@ -986,7 +986,7 @@ function WebGLRenderer( parameters ) {
var size = geometryAttribute.itemSize;
var buffer = objects.getAttributeBuffer( geometryAttribute );
- if ( geometryAttribute && geometryAttribute.isInterleavedBufferAttribute ) {
+ if ( geometryAttribute.isInterleavedBufferAttribute ) {
... | false |
Other | mrdoob | three.js | cad8c07feb9389b3841da5e2e6b6a09f8cebad41.json | Add background property to Scene docs (#9817) | docs/api/scenes/Scene.html | @@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="utf-8" />
+ <meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
@@ -26,18 +26,23 @@ <h3>[name]()</h3>
<h2>Properties</h2>
<h3>[property:Fog fog]</h3>
-
+
<div... | false |
Other | mrdoob | three.js | 14717cfa40713635b27c2b62c61ce1d3d97f48e8.json | Add jsfiddle link to ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | @@ -2,6 +2,12 @@
##### Description of the problem
+Describe the problem/request in detail.
+Code snippet, screenshot, and small-test help us understand.
+
+You can edit for small-test.
+http://jsfiddle.net/akmcv7Lh/ (current revision)
+http://jsfiddle.net/hw9rcLL8/ (dev)
##### Three.js version
| false |
Other | mrdoob | three.js | d0dddebb5000f81a58c985320daa5e4cb2f23e49.json | Fix minor syntax error
Also, removed unnecessary tag <thead> | docs/api/lights/Light.html | @@ -1,81 +1,79 @@
-<!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 | f344d8fe97ead056131f31d96a1b20019c1e32cd.json | Fix a bug in 3MFLoader | examples/js/loaders/3MFLoader.js | @@ -418,10 +418,10 @@ THREE.ThreeMFLoader.prototype = {
} );
var mat4 = new THREE.Matrix4();
buildItem[ 'transform' ] = mat4.set(
- t[ 0 ], t[ 1 ], t[ 2 ], 0.0,
- t[ 3 ], t[ 4 ], t[ 5 ], 0.0,
- t[ 6 ], t[ 7 ], t[ 8 ], 0.0,
- t[ 9 ], t[ 10 ], t[ 11 ], 1.0
+ t[ 0 ], t[ 3 ... | false |
Other | mrdoob | three.js | 22be147ddf96b2276800e48bb2c8d16ec3cc1845.json | Fix typo in FaceNormalsHelper | docs/api/helpers/FaceNormalsHelper.html | @@ -32,7 +32,7 @@ <h2>Example</h2>
helper = new THREE.FaceNormalsHelper( box, 2, 0x00ff00, 1 );
- scene.add( object );
+ scene.add( box );
scene.add( helper );
</code>
| false |
Other | mrdoob | three.js | ea4c461c1d935da5498bf1974f56518941b629e9.json | fix typos and syntax errors | docs/manual/introduction/How-to-update-things.html | @@ -10,7 +10,7 @@
<body>
<h1>[name]</h1>
<div>
- <p>All objects by default automatically update their matrices if the have been added to the scene with</p>
+ <p>All objects by default automatically update their matrices if they have been added to the scene with</p>
<code>
var object = new THREE.Object3... | false |
Other | mrdoob | three.js | b3ef1ffc7a0b25a47502f99fc29baa4c49faf8d9.json | fix minor errors for better syntax | docs/manual/introduction/How-to-run-thing-locally.html | @@ -26,10 +26,10 @@ <h2>Content loaded from external files</h2>
<ol>
<li>
- Change security for local files in a browser (this allows you to access your page as <code>file:///yourFile.html</code>
+ Change security for local files in a browser, this allows you to access your page as <code>file:///your... | false |
Other | mrdoob | three.js | 3368da40711f4b01816987f7baa73a627187684a.json | fix syntax errors and typo | docs/api/lights/DirectionalLight.html | @@ -13,7 +13,7 @@
<h1>[name]</h1>
<div class="desc">
- A light that gets emitted in a specific direction. This light will behave as though it is
+ A light that gets emitted in a specific direction. This light will behave as though it is
infinitely far away and the rays produced from it are all parallel.... | false |
Other | mrdoob | three.js | 2e3a2923a65ac2db045d19676da711a95d022ac6.json | Fix a bug in 3MFLoader | examples/js/loaders/3MFLoader.js | @@ -418,10 +418,10 @@ THREE.ThreeMFLoader.prototype = {
} );
var mat4 = new THREE.Matrix4();
buildItem[ 'transform' ] = mat4.set(
- t[ 0 ], t[ 1 ], t[ 2 ], 0.0,
- t[ 3 ], t[ 4 ], t[ 5 ], 0.0,
- t[ 6 ], t[ 7 ], t[ 8 ], 0.0,
- t[ 9 ], t[ 10 ], t[ 11 ], 1.0
+ t[ 0 ], t[ 3 ... | false |
Other | mrdoob | three.js | 4560873844f1f43caf856dcc38cb97283b4754d9.json | add more monkeys | examples/webgl_performance.html | @@ -57,9 +57,9 @@
geometry.computeVertexNormals();
- for ( var i = 0; i < 20; i ++ ) {
- for ( var j = 0; j < 20; j ++ ) {
- for ( var k = 0; k < 20; k ++ ) {
+ for ( var i = 0; i < 25; i ++ ) {
+ for ( var j = 0; j < 25; j ++ ) {
+ for ( var k = 0; k < 25; k ++ ) {
va... | false |
Other | mrdoob | three.js | a1c3086f56eb750cf9b371f4f3b709051d9a86cd.json | add aspect in toPerspective(). update doc | docs/examples/cameras/CombinedCamera.html | @@ -52,6 +52,9 @@ <h3>[property:Number fov]</h3>
Gets or sets the camera frustum vertical field of view in perspective view.
</div>
+ <h3>[property:Float aspect]</h3>
+ <div>Camera frustum aspect ratio, usually the canvas width / canvas height.</div>
+
<h3>[property:number left]</h3>
<div>
Gets or se... | true |
Other | mrdoob | three.js | a1c3086f56eb750cf9b371f4f3b709051d9a86cd.json | add aspect in toPerspective(). update doc | examples/js/cameras/CombinedCamera.js | @@ -45,6 +45,7 @@ THREE.CombinedCamera.prototype.toPerspective = function () {
this.near = this.cameraP.near;
this.far = this.cameraP.far;
+ this.cameraP.aspect = this.aspect;
this.cameraP.fov = this.fov / this.zoom ;
this.cameraP.view = this.view;
| true |
Other | mrdoob | three.js | 5e149ae75e6e3ab518d0c30c9808d28a36c74b01.json | add setView clearView functions | examples/js/cameras/CombinedCamera.js | @@ -123,6 +123,39 @@ THREE.CombinedCamera.prototype.copy = function ( source ) {
return this;
};
+
+THREE.CombinedCamera.prototype.setViewOffset = function( fullWidth, fullHeight, x, y, width, height ) {
+
+ this.view = {
+ fullWidth: fullWidth,
+ fullHeight: fullHeight,
+ offsetX: x,
+ offsetY: y,
+ width: w... | false |
Other | mrdoob | three.js | cf70dd04a7b3f6c16d6a16b927d898ec8da10246.json | add copy function | examples/js/cameras/CombinedCamera.js | @@ -97,7 +97,32 @@ THREE.CombinedCamera.prototype.toOrthographic = function () {
};
+THREE.CombinedCamera.prototype.copy = function ( source ) {
+ THREE.Camera.prototype.copy.call( this, source );
+
+ this.fov = source.fov;
+ this.far = source.far;
+ this.near = source.near;
+
+ this.left = source.left;
+ this.r... | false |
Other | mrdoob | three.js | f3d81414ad7678b08b561de7824067aa1c7dcca0.json | Fix typo in FaceNormalsHelper | docs/api/helpers/FaceNormalsHelper.html | @@ -32,7 +32,7 @@ <h2>Example</h2>
helper = new THREE.FaceNormalsHelper( box, 2, 0x00ff00, 1 );
- scene.add( object );
+ scene.add( box );
scene.add( helper );
</code>
| false |
Other | mrdoob | three.js | 3944b9b1b7a199e19756fe6b54debd65431361f1.json | fix typos and syntax errors | docs/manual/introduction/How-to-update-things.html | @@ -10,7 +10,7 @@
<body>
<h1>[name]</h1>
<div>
- <p>All objects by default automatically update their matrices if the have been added to the scene with</p>
+ <p>All objects by default automatically update their matrices if they have been added to the scene with</p>
<code>
var object = new THREE.Object3... | false |
Other | mrdoob | three.js | 5ce0b3038adee3891d4efdb30a0620a3e729c1fd.json | fix minor errors for better syntax | docs/manual/introduction/How-to-run-thing-locally.html | @@ -26,10 +26,10 @@ <h2>Content loaded from external files</h2>
<ol>
<li>
- Change security for local files in a browser (this allows you to access your page as <code>file:///yourFile.html</code>
+ Change security for local files in a browser, this allows you to access your page as <code>file:///your... | false |
Other | mrdoob | three.js | c60e9b321c05e5b55767ad797dac7d93d60c5111.json | Remove unnecessary lines | examples/webgl_multiple_elements_text.html | @@ -249,7 +249,6 @@
renderer.setScissor( left, bottom, width, height );
renderer.render( scene, scene.userData.camera );
- scene.userData.controls.update();
for ( var i = 0 ; i < scene.children[0].geometry.vertices.length ; i++ ) {
@@ -432,10 +431,6 @@
</div>
- <div class="math">
-
-... | false |
Other | mrdoob | three.js | 5e6aefce5f6c39b07ef553330c4a5d0abe33d86e.json | Set explicit clear color for iOS (#9297) | docs/scenes/bones-browser.html | @@ -59,6 +59,7 @@
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
+ renderer.setClearColor( 0x000000 );
document.body.appendChild( renderer.domElement );
orbit = new THR... | true |
Other | mrdoob | three.js | 5e6aefce5f6c39b07ef553330c4a5d0abe33d86e.json | Set explicit clear color for iOS (#9297) | docs/scenes/geometry-browser.html | @@ -52,6 +52,7 @@
var renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
+ renderer.setClearColor( 0x000000 );
document.body.appendChild( renderer.domElement );
var orbit = new T... | true |
Other | mrdoob | three.js | 5e6aefce5f6c39b07ef553330c4a5d0abe33d86e.json | Set explicit clear color for iOS (#9297) | docs/scenes/material-browser.html | @@ -50,6 +50,7 @@
var renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
+ renderer.setClearColor( 0x000000 );
document.body.appendChild( renderer.domElement );
var ambientLight ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/BoxBufferGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:BoxGeometry].</div>
- <iframe src='scenes/geometry-browser.html#BoxBufferGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#BoxBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/CircleBufferGeometry.html | @@ -14,9 +14,25 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:CircleGeometry].</div>
- <h2>Example</h2>
+ <iframe id="scene" src="scenes/geometry-browser.html#CircleBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|i... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/CircleGeometry.html | @@ -15,9 +15,25 @@ <h1>[name]</h1>
<div class="desc">CircleGeometry is a simple shape of Euclidean geometry. It is contructed from a number of triangular segments that are oriented around a central point and extend as far out as a given radius. It is built counter-clockwise from a start angle and a given central a... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/ConeBufferGeometry.html | @@ -14,21 +14,34 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:ConeGeometry].</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#ConeBufferGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/ConeGeometry.html | @@ -14,21 +14,34 @@ <h1>[name]</h1>
<div class="desc">A class for generating cone geometries</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#ConeGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/CylinderBufferGeometry.html | @@ -14,21 +14,34 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:CylinderGeometry].</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#CylinderBufferGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPh... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/CylinderGeometry.html | @@ -14,21 +14,34 @@ <h1>[name]</h1>
<div class="desc">A class for generating cylinder geometries</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#CylinderGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod)/g.test( navigator.us... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/DodecahedronGeometry.html | @@ -14,27 +14,39 @@ <h1>[name]</h1>
<div class="desc">A class for generating a dodecahedron geometries.</div>
- <iframe src='scenes/geometry-browser.html#DodecahedronGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#DodecahedronGeometry"></iframe>
+ <script>
- <h2>Constructor</h2... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/IcosahedronGeometry.html | @@ -13,26 +13,39 @@ <h1>[name]</h1>
<div class="desc">A class for generating an icosahedron geometry.</div>
- <iframe src='scenes/geometry-browser.html#IcosahedronGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#IcosahedronGeometry"></iframe>
- <h2>Constructor</h2>
+ <script>
+
+ ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/LatheBufferGeometry.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:LatheGeometry].</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#LatheBufferGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iP... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/LatheGeometry.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">Class for generating meshes with axial symmetry. Possible uses include donuts, pipes, vases etc. The lathe rotate around the Y axis.</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#LatheGeometry"></iframe>
- <h2>Example</h2>
+ <script>
+
+ ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/OctahedronGeometry.html | @@ -13,18 +13,32 @@ <h1>[name]</h1>
<div class="desc">A class for generating an octahedron geometry.</div>
- <iframe src='scenes/geometry-browser.html#OctahedronGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#OctahedronGeometry"></iframe>
- <h2>Constructor</h2>
+ <script>
+
+ //... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/PlaneBufferGeometry.html | @@ -14,20 +14,34 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:PlaneGeometry].</div>
- <h2>Example</h2>
+ <iframe id="scene" src="scenes/geometry-browser.html#PlaneBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iP... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/PlaneGeometry.html | @@ -14,21 +14,34 @@ <h1>[name]</h1>
<div class="desc">A class for generating plane geometries</div>
+ <iframe id="scene" src="scenes/geometry-browser.html#PlaneGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
+
+ va... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/RingBufferGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:RingGeometry].</div>
- <iframe src='scenes/geometry-browser.html#RingBufferGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#RingBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS ifra... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/RingGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">A class for generating a two-dimensional ring geometry.</div>
- <iframe src='scenes/geometry-browser.html#RingGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#RingGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize work... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/SphereBufferGeometry.html | @@ -14,9 +14,25 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:SphereGeometry].</div>
- <h2>Example</h2>
+ <iframe id="scene" src="scenes/geometry-browser.html#SphereBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|i... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/SphereGeometry.html | @@ -14,9 +14,25 @@ <h1>[name]</h1>
<div class="desc">A class for generating sphere geometries</div>
- <h2>Example</h2>
+ <iframe id="scene" src="scenes/geometry-browser.html#SphereGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod)/g.test( navigator.userAge... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TetrahedronGeometry.html | @@ -14,27 +14,39 @@ <h1>[name]</h1>
<div class="desc">A class for generating a tetrahedron geometries.</div>
- <iframe src='scenes/geometry-browser.html#TetrahedronGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#TetrahedronGeometry"></iframe>
+ <script>
- <h2>Constructor</h2>
+... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TextGeometry.html | @@ -14,9 +14,25 @@ <h1>[name]</h1>
<div class="desc">This object creates a 3D object of text as a single object.</div>
- <h2>Example</h2>
+ <iframe id="scene" src="scenes/geometry-browser.html#TextGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(iPad|iPhone|iPod)/g.test( ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TorusBufferGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:TorusGeometry].</div>
- <iframe src='scenes/geometry-browser.html#TorusBufferGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#TorusBufferGeometry"></iframe>
+
+ <script>
+
+ // iOS i... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TorusGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">A class for generating torus geometries</div>
- <iframe src='scenes/geometry-browser.html#TorusGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#TorusGeometry"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TorusKnotBufferGeometry.html | @@ -14,8 +14,23 @@ <h1>[name]</h1>
<div class="desc">This is the [page:BufferGeometry] port of [page:TorusKnotGeometry].</div>
- <iframe src='scenes/geometry-browser.html#TorusKnotBufferGeometry'></iframe>
+ <iframe id="scene" src="scenes/geometry-browser.html#TorusKnotBufferGeometry"></iframe>
+ <script>
+... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/extras/geometries/TorusKnotGeometry.html | @@ -14,8 +14,23 @@ <h1>[name]</h1>
<div class="desc">Creates a torus knot, the particular shape of which is defined by a pair of coprime integers, p and q. If p and q are not coprime, the result will be a torus link.</div>
- <iframe src='scenes/geometry-browser.html#TorusKnotGeometry'></iframe>
+ <iframe id="... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshBasicMaterial.html | @@ -15,10 +15,25 @@ <h1>[name]</h1>
<div class="desc">A material for drawing geometries in a simple shaded (flat or wireframe) way.</div>
<div class="desc">The default will render as flat polygons. To draw the mesh as wireframe, simply set the 'wireframe' property to true.</div>
- <iframe src='scenes/material-... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshDepthMaterial.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">A material for drawing geometry by depth. Depth is based off of the camera near and far plane. White is nearest, black is farthest.</div>
- <iframe src='scenes/material-browser.html#MeshDepthMaterial'></iframe>
+ <iframe id="scene" src="scenes/material-brow... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshLambertMaterial.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">A material for non-shiny (Lambertian) surfaces, evaluated per vertex.</div>
- <iframe src='scenes/material-browser.html#MeshLambertMaterial'></iframe>
+ <iframe id="scene" src="scenes/material-browser.html#MeshLambertMaterial"></iframe>
- <h2>Constructor... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshNormalMaterial.html | @@ -14,11 +14,25 @@ <h1>[name]</h1>
<div class="desc">A material that maps the normal vectors to RGB colors.</div>
- <iframe src='scenes/material-browser.html#MeshNormalMaterial'></iframe>
+ <iframe id="scene" src="scenes/material-browser.html#MeshNormalMaterial"></iframe>
+ <script>
- <h2>Constructor</h... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshPhongMaterial.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">A material for shiny surfaces, evaluated per pixel.</div>
- <iframe src='scenes/material-browser.html#MeshPhongMaterial'></iframe>
+ <iframe id="scene" src="scenes/material-browser.html#MeshPhongMaterial"></iframe>
- <h2>Constructor</h2>
+ <script>
+
+ ... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/materials/MeshStandardMaterial.html | @@ -14,10 +14,25 @@ <h1>[name]</h1>
<div class="desc">TODO</div>
- <iframe src='scenes/material-browser.html#MeshStandardMaterial'></iframe>
+ <iframe id="scene" src="scenes/material-browser.html#MeshStandardMaterial"></iframe>
- <h2>Constructor</h2>
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+... | true |
Other | mrdoob | three.js | 759f45bb0b5d27acaec1eb3f9b9135aeeb4d3639.json | Add iOS workaround to documentation pages (#9280)
* Add iOS workaround to BoxBufferGeometry
* Add iOS workaround to CircleBufferGeometry
* Add iOS workaround to CircleGeometry
* Add iOS workaround to ConeBufferGeometry
* Add iOS workaround to ConeGeometry
* Add iOS workaround to CylinderBufferGeometry
... | docs/api/objects/SkinnedMesh.html | @@ -14,10 +14,26 @@ <h1>[name]</h1>
<div class="desc">A mesh that has a [page:Skeleton] with [page:Bone bones] that can then be used to animate the vertices of the geometry.</div>
+ <iframe id="scene" src="scenes/bones-browser.html"></iframe>
+
+ <script>
+
+ // iOS iframe auto-resize workaround
+
+ if ( /(i... | true |
Other | mrdoob | three.js | 1d7b7f74cfba5adb85770464b96b6d98daf9985f.json | clockwise full ellipse (#9291)
The point returned by getPoint was always reverse clockwise on a full
ellipse even when the ellipse is clock wise. | src/extras/curves/EllipseCurve.js | @@ -46,9 +46,17 @@ THREE.EllipseCurve.prototype.getPoint = function( t ) {
}
- if ( this.aClockwise === true && deltaAngle != twoPi && ! samePoints ) {
+ if ( this.aClockwise === true && ! samePoints ) {
- deltaAngle = deltaAngle - twoPi;
+ if ( deltaAngle === twoPi ) {
+
+ deltaAngle = - twoPi;
+
+ } else... | false |
Other | mrdoob | three.js | b4bc76723f85ef523fc5c7418184c461003ef5ab.json | Update animation.py (#9272)
bones scaling support: remove hard coded values, add _scale & _handle_scale_channel functions + tested export and import | utils/exporters/blender/addons/io_three/exporter/api/animation.py | @@ -1,5 +1,6 @@
"""
Module for handling the parsing of skeletal animation data.
+updated on 2/07/2016: bones scaling support (@uthor verteAzur verteAzur@multivers3d.fr)
"""
import math
@@ -91,18 +92,22 @@ def _parse_rest_action(action, armature, options):
action, rotation_mat... | false |
Other | mrdoob | three.js | febb7f8d6bf5b506e49116dd8aba6c915905cb5b.json | Add iOS workaround to BoxGeometry (#9196)
* Add iOS workaround to BoxGeometry
* Update iOS workaround
* Update iOS workaround
* Update iOS workaround
* Update iOS workaround | docs/api/extras/geometries/BoxGeometry.html | @@ -14,7 +14,23 @@ <h1>[name]</h1>
<div class="desc">BoxGeometry is the quadrilateral primitive geometry class. It is typically used for creating a cube or irregular quadrilateral of the dimensions provided with the 'width', 'height', and 'depth' constructor arguments.</div>
- <iframe src='scenes/geometry-brows... | false |
Other | mrdoob | three.js | 6cd9b057560254759961a292be24a8ed1f9c45e9.json | Fix spelling in Vector3 documentation (#9268) | docs/api/math/Vector3.html | @@ -394,15 +394,15 @@ <h3>[method:Vector3 reflect]( [page:Vector3 normal] ) [page:Vector3 this]</h3>
normal -- [page:Vector3] the normal to the reflecting plane
</div>
<div>
- Reflect incident vector off of plane orthogonal to normal. normal is assumed to have unit length.
+ Reflect incident vector off of pl... | true |
Other | mrdoob | three.js | 6cd9b057560254759961a292be24a8ed1f9c45e9.json | Fix spelling in Vector3 documentation (#9268) | editor/js/libs/tern-threejs/threejs.js | @@ -4681,15 +4681,15 @@
},
"reflect": {
"!type": "fn(normal: +THREE.Vector3) -> +THREE.Vector3",
- "!doc": "Reflect incident vector off of plane orthogonal to normal. normal is assumed to have unit length."
+ "!doc": "Reflect incident vector off of plane orthogonal to norm... | true |
Other | mrdoob | three.js | d3606272b38bfedee5978e9caef7715fb8ef5743.json | adopt pow2, pow3, pow4 | src/renderers/shaders/ShaderChunk/bsdfs.glsl | @@ -58,9 +58,9 @@ float G_GGX_Smith( const in float alpha, const in float dotNL, const in float do
float a2 = alpha * alpha;
- float gl = dotNL + pow( a2 + ( 1.0 - a2 ) * dotNL * dotNL, 0.5 );
+ float gl = dotNL + pow( a2 + ( 1.0 - a2 ) * pow2( dotNL ), 0.5 );
- float gv = dotNV + pow( a2 + ( 1.0 - a2 ) * dotNV... | true |
Other | mrdoob | three.js | d3606272b38bfedee5978e9caef7715fb8ef5743.json | adopt pow2, pow3, pow4 | src/renderers/shaders/ShaderChunk/common.glsl | @@ -8,9 +8,9 @@
#define saturate(a) clamp( a, 0.0, 1.0 )
#define whiteCompliment(a) ( 1.0 - saturate( a ) )
-float square( const in float x ) { return x*x; }
-float cube( const in float x ) { return x*x*x; }
-float pow4( const in float x ) { return x*x*x*x; }
+float pow2( const in float x ) { return x*x; }
+float p... | true |
Other | mrdoob | three.js | d3606272b38bfedee5978e9caef7715fb8ef5743.json | adopt pow2, pow3, pow4 | src/renderers/shaders/ShaderChunk/lights_pars.glsl | @@ -210,10 +210,10 @@
float getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {
//float envMapWidth = pow( 2.0, maxMIPLevelScalar );
- //float desiredMIPLevel = log2( envMapWidth * sqrt( 3.0 ) ) - 0.5 * log2( square( blinnShininessExponent ) + 1.0 );
+ //float desiredMIPLev... | true |
Other | mrdoob | three.js | 4c0b8571458a12f070debce5f1129910ec1cdaf9.json | fix cylinder normals | src/extras/geometries/CylinderBufferGeometry.js | @@ -135,6 +135,15 @@ THREE.CylinderBufferGeometry = function ( radiusTop, radiusBottom, height, radia
// normal
normal.copy( vertex );
+
+ // handle special case if radiusTop/radiusBottom is zero
+ if( ( radiusTop === 0 && y === 0 ) || ( radiusBottom === 0 && y === heightSegments ) ) {
+
+ norma... | false |
Other | mrdoob | three.js | 8ccfee363c4a8e736e804bd5406dd603285b73bc.json | remove unused code per @mrdoob. | src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl | @@ -1,5 +1,3 @@
-#define DISABLE_CUBE_UV_MIPMAP_INTERPOLATION
-
#ifdef ENVMAP_TYPE_CUBE_UV
const float cubeUV_textureSize = 1024.0;
@@ -112,10 +110,8 @@ vec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {
float level1 = level0 + 1.0;
level1 = level1 > 5.0 ? 5.0 : level1;
-#if defined( DISABL... | false |
Other | mrdoob | three.js | 9d42f10fc75b0bad07fd01556ea45067349181c8.json | avoid new's in editor controls with Spherical. | examples/js/controls/EditorControls.js | @@ -26,6 +26,7 @@ THREE.EditorControls = function ( object, domElement ) {
var normalMatrix = new THREE.Matrix3();
var pointer = new THREE.Vector2();
var pointerOld = new THREE.Vector2();
+ var spherical = new THREE.Spherical();
// events
@@ -86,15 +87,15 @@ THREE.EditorControls = function ( object, domElem... | false |
Other | mrdoob | three.js | a9867fe4ad5805c4a7ccb461d52022667705ea81.json | add radius to Spherical Coordinate class. | examples/js/controls/EditorControls.js | @@ -86,17 +86,15 @@ THREE.EditorControls = function ( object, domElement ) {
vector.copy( object.position ).sub( center );
- var spherical = new THREE.Spherical().fromDirection( vector );
+ var spherical = new THREE.Spherical().fromVector3( vector );
spherical.theta += delta.x;
spherical.phi += delta.y... | true |
Other | mrdoob | three.js | a9867fe4ad5805c4a7ccb461d52022667705ea81.json | add radius to Spherical Coordinate class. | examples/js/controls/OrbitControls.js | @@ -133,7 +133,7 @@ THREE.OrbitControls = function ( object, domElement ) {
offset.applyQuaternion( quat );
// angle from z-axis around y-axis
- spherical.fromDirection( offset );
+ spherical.fromVector3( offset );
if ( scope.autoRotate && state === STATE.NONE ) {
@@ -149,18 +149,18 @@ THREE.Orbit... | true |
Other | mrdoob | three.js | a9867fe4ad5805c4a7ccb461d52022667705ea81.json | add radius to Spherical Coordinate class. | src/math/Spherical.js | @@ -1,10 +1,14 @@
/**
* @author bhouston / http://clara.io
* @author WestLangley / http://github.com/WestLangley
+ *
+ * Ref: https://en.wikipedia.org/wiki/Spherical_coordinate_system
+ *
*/
-THREE.Spherical = function ( phi, theta ) {
+THREE.Spherical = function ( radius, phi, theta ) {
+ this.radius = ( ra... | true |
Other | mrdoob | three.js | 8c424ae663f618f1712a010b6b832903a28fc714.json | adopt Spherical in editor. | examples/js/controls/EditorControls.js | @@ -86,21 +86,16 @@ THREE.EditorControls = function ( object, domElement ) {
vector.copy( object.position ).sub( center );
- var theta = Math.atan2( vector.x, vector.z );
- var phi = Math.atan2( Math.sqrt( vector.x * vector.x + vector.z * vector.z ), vector.y );
+ var spherical = new THREE.Spherical().fromDir... | true |
Other | mrdoob | three.js | 8c424ae663f618f1712a010b6b832903a28fc714.json | adopt Spherical in editor. | src/math/Spherical.js | @@ -9,7 +9,7 @@ THREE.Spherical = function ( phi, theta ) {
this.theta = ( theta !== undefined ) ? theta : 0; // around the equator of the sphere
return this;
-
+
};
THREE.Spherical.prototype = {
@@ -55,6 +55,14 @@ THREE.Spherical.prototype = {
return this;
},
+ // restrict phi to be betwee EPS and... | true |
Other | mrdoob | three.js | ac6560bc29ef1b39582104364460ec393c51e74a.json | Replace three.min.js with non-minified version
Replace three.min.js with non-minified version in the "create your first scene" introduction.
Continuing from there beginners will have a hard time debugging their code using the minified version. | docs/manual/introduction/Creating-a-scene.html | @@ -19,7 +19,7 @@ <h2>What is Three.js?</h2>
<div>Three.js is a library that makes WebGL - 3D in the browser - easy to use. While a simple cube in raw WebGL would turn out hundreds of lines of Javascript and shader code, a Three.js equivalent is only a fraction of that.</div>
<h2>Before we start</h2>
- <div>Be... | false |
Other | mrdoob | three.js | 772a89cb372a841dea6187eaca6a51fa5da2587d.json | fix utf8 decoder without native TextDecoder | examples/js/loaders/sea3d/SEA3D.js | @@ -9,7 +9,7 @@ var SEA3D = { VERSION: 18100 };
SEA3D.getVersion = function () {
- // Max = 16777215 - VVSSBB | V = Version | S = Subversion | B = Buildversion
+ // Max = 16777215 - VV.S.S.BB | V = Version | S = Subversion | B = Buildversion
var v = SEA3D.VERSION.toString(), l = v.length;
return v.substring(... | false |
Other | mrdoob | three.js | b7ddb8a3104dbd317a49fa43d2fd9e2f5797baaa.json | Fix a function name in WebGLDeferredRenderer | examples/js/renderers/WebGLDeferredRenderer.js | @@ -663,7 +663,7 @@ THREE.WebGLDeferredRenderer = function ( parameters ) {
return getMaterialFromCacheOrCreate(
originalMaterial,
_invisibleMultiMaterialsCache,
- createInvisibleMultiMaterial
+ createInvisibleMaterial
);
} | false |
Other | mrdoob | three.js | 8ed3615868c79154cb9f21474321b65750b3f7b2.json | add support for cineon tone mapping. | examples/webgl_tonemapping.html | @@ -72,7 +72,8 @@
None: THREE.NoToneMapping,
Linear: THREE.LinearToneMapping,
Reinhard: THREE.ReinhardToneMapping,
- Uncharted2: THREE.Uncharted2ToneMapping
+ Uncharted2: THREE.Uncharted2ToneMapping,
+ Cineon: THREE.CineonToneMapping
};
var camera, scene, renderer, controls, objects = ... | true |
Other | mrdoob | three.js | 8ed3615868c79154cb9f21474321b65750b3f7b2.json | add support for cineon tone mapping. | src/Three.js | @@ -214,7 +214,8 @@ THREE.AddOperation = 2;
THREE.NoToneMapping = 0; // do not do any tone mapping, not even exposure (required for special purpose passes.)
THREE.LinearToneMapping = 1; // only apply exposure.
THREE.ReinhardToneMapping = 2;
-THREE.Uncharted2ToneMapping = 3;
+THREE.Uncharted2ToneMapping = 3; // John ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.