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 | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | examples/jsm/utils/GeometryCompressionUtils.js | @@ -58,7 +58,7 @@ var GeometryCompressionUtils = {
let result;
if ( encodeMethod == "DEFAULT" ) {
- // TODO: Add 1 byte to the result, making the encoded length to be 4 bytes.
+ // TODO: Add 1 byte to the result, making the encoded length to be 4 bytes.
result = new Uint8Array( count * 3 );
for (... | true |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | package-lock.json | @@ -1,6 +1,6 @@
{
"name": "three",
- "version": "0.113.2",
+ "version": "0.114.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -30,12 +30,6 @@
"integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==",
"dev": true
},... | true |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | package.json | @@ -74,26 +74,25 @@
},
"homepage": "https://threejs.org/",
"devDependencies": {
- "@types/webgl2": "^0.0.5",
- "@typescript-eslint/eslint-plugin": "^2.15.0",
- "@typescript-eslint/parser": "^2.15.0",
+ "@typescript-eslint/eslint-plugin": "^2.23.0",
+ "@typescript-eslint/parser": "^2.23.0",
... | true |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | src/materials/LineDashedMaterial.d.ts | @@ -1,4 +1,3 @@
-import { Color } from './../math/Color';
import { LineBasicMaterial, LineBasicMaterialParameters } from './LineBasicMaterial';
export interface LineDashedMaterialParameters extends LineBasicMaterialParameters { | true |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | utils/build/tsconfig-examples.lint.json | @@ -1,6 +1,7 @@
{
"compilerOptions": {
"noEmit": true,
+ "target": "ES6"
},
"include": [
"../../examples/jsm/**/*.ts" | true |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | utils/build/tsconfig.lint.json | @@ -1,6 +1,7 @@
{
"compilerOptions": {
"noEmit": true,
+ "target": "ES6"
},
"include": [
"../../src/**/*.ts" | true |
Other | mrdoob | three.js | dc136b6082269d125da004d16ac665ed37bb87ab.json | remove extraneous plus in shader chunk | src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js | @@ -146,7 +146,7 @@ export default /* glsl */`
texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
f.x ),
mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
- texture2DCompare( shadowMap, uv + + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ... | false |
Other | mrdoob | three.js | 4c91e53687252e2b7f5e59c9325c229a0aa758c5.json | run eslint on simplehttpserver | utils/servers/simplehttpserver.js | @@ -30,7 +30,7 @@ var port = 8000,
"mp4": "video/mp4",
"txt": "text/plain",
"bin": "application/octet-stream"
- };
+ };
// https://github.com/parshap/node-sanitize-filename/blob/master/index.js#L33-L47
var illegalRe = /[\?<>:\*\|":]/g;
@@ -39,15 +39,17 @@ var reservedRe = /^\.+$/;
var windowsReservedRe =... | false |
Other | mrdoob | three.js | dff916771ff83e79b29f0d80370193e6941a0f75.json | sanitize even simplehttpserver | utils/servers/simplehttpserver.js | @@ -30,14 +30,34 @@ var port = 8000,
"mp4": "video/mp4",
"txt": "text/plain",
"bin": "application/octet-stream"
- };
+ };
+
+// https://github.com/parshap/node-sanitize-filename/blob/master/index.js#L33-L47
+var illegalRe = /[\?<>:\*\|":]/g;
+var controlRe = /[\x00-\x1f\x80-\x9f]/g;
+var reservedRe = /^\.+$/;... | false |
Other | mrdoob | three.js | bac522527102244405d6881a8467b1f96381a7c9.json | add Marching TS def file | examples/jsm/objects/MarchingCubes.d.ts | @@ -0,0 +1,73 @@
+import {
+ BufferGeometry,
+ Material,
+ ImmediateRenderObject
+} from '../../../src/Three';
+
+export class MarchingCubes extends ImmediateRenderObject {
+ constructor(resolution: number, material: Material, enableUvs?: boolean, enableColors?: boolean);
+
+ enableUvs: boolean;
+ enableColors: b... | false |
Other | mrdoob | three.js | b637382cb704d81b0a45bde091b67059872fc977.json | Add projectionMatrixInverse to type definitions | src/cameras/Camera.d.ts | @@ -23,6 +23,11 @@ export class Camera extends Object3D {
* This is the matrix which contains the projection.
*/
projectionMatrix: Matrix4;
+
+ /**
+ * This is the inverse of projectionMatrix.
+ */
+ projectionMatrixInverse: Matrix4;
isCamera: true;
| false |
Other | mrdoob | three.js | 1a6337b26091cf838ed8a83a6edda8c4101dddaf.json | Add sizeAttentuation to SpriteMaterial typing. | src/materials/SpriteMaterial.d.ts | @@ -6,6 +6,7 @@ export interface SpriteMaterialParameters extends MaterialParameters {
color?: Color | string | number;
map?: Texture;
rotation?: number;
+ sizeAttenuation?: boolean;
}
export class SpriteMaterial extends Material {
@@ -15,6 +16,7 @@ export class SpriteMaterial extends Material {
color: Colo... | false |
Other | mrdoob | three.js | cd998e7576f64f9102413f17d39186ffd6259dc4.json | Fix Material.d.ts lint errors | src/materials/Material.d.ts | @@ -3,15 +3,15 @@ import { Shader } from './../renderers/shaders/ShaderLib';
import { EventDispatcher } from './../core/EventDispatcher';
import { WebGLRenderer } from './../renderers/WebGLRenderer';
import {
- BlendingDstFactor,
- BlendingEquation,
- Blending,
- BlendingSrcFactor,
- DepthModes,
- Side,
- Col... | false |
Other | mrdoob | three.js | 2f1f4c27ea22651d1c2a57e4d9bc26da795e74fc.json | add missing setFromObject method | src/helpers/BoxHelper.d.ts | @@ -8,4 +8,6 @@ export class BoxHelper extends LineSegments {
update( object?: Object3D ): void;
+ setFromObject( object: Object3D ): this;
+
} | false |
Other | mrdoob | three.js | 920ce423cd93f04017480a914ab6cfcb646d7f90.json | Fix depthTexture types in WebGLRenderTarget.d.ts
Added depthTexture argument to WebGLRenderTargetOptions and changed depthTexture property on WebGLRenderTarget to be of DepthTexture type instead of Texture type. | src/renderers/WebGLRenderTarget.d.ts | @@ -1,5 +1,6 @@
import { Vector4 } from './../math/Vector4';
import { Texture } from './../textures/Texture';
+import { DepthTexture } from './../textures/DepthTexture';
import { EventDispatcher } from './../core/EventDispatcher';
import { Wrapping, TextureFilter, TextureDataType } from '../constants';
@@ -14,6 +... | false |
Other | mrdoob | three.js | c0090c138f5f712dfa9a59e9e50931e52e504e93.json | remove multiview attribute from renderer | src/renderers/WebGLRenderer.js | @@ -316,8 +316,6 @@ function WebGLRenderer( parameters ) {
var multiview = new WebGLMultiview( _this, _gl );
- this.multiview = multiview;
-
// shadow map
var shadowMap = new WebGLShadowMap( _this, objects, capabilities.maxTextureSize ); | true |
Other | mrdoob | three.js | c0090c138f5f712dfa9a59e9e50931e52e504e93.json | remove multiview attribute from renderer | src/renderers/webgl/WebGLMultiview.js | @@ -26,18 +26,6 @@ function WebGLMultiview( renderer, gl ) {
}
- function getNumViews() {
-
- if ( renderTarget && renderer.getRenderTarget() === renderTarget ) {
-
- return renderTarget.numViews;
-
- }
-
- return 0;
-
- }
-
function getCameraArray( camera ) {
if ( camera.isArrayCamera ) return camera... | true |
Other | mrdoob | three.js | c0090c138f5f712dfa9a59e9e50931e52e504e93.json | remove multiview attribute from renderer | src/renderers/webgl/WebGLProgram.js | @@ -6,6 +6,7 @@ import { WebGLUniforms } from './WebGLUniforms.js';
import { WebGLShader } from './WebGLShader.js';
import { ShaderChunk } from '../shaders/ShaderChunk.js';
import { NoToneMapping, AddOperation, MixOperation, MultiplyOperation, EquirectangularRefractionMapping, CubeRefractionMapping, SphericalReflect... | true |
Other | mrdoob | three.js | 5a1f73f2a6fa0d599030f915b44d7e033bc832c2.json | Remove unneeded changes on webglprogram | src/renderers/webgl/WebGLProgram.js | @@ -672,8 +672,11 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
var vertexGlsl = prefixVertex + vertexShader;
var fragmentGlsl = prefixFragment + fragmentShader;
- var glVertexShader = WebGLShader( gl, gl.VERTEX_SHADER, vertexGlsl, renderer.debug.checkShaderErrors );
- var gl... | false |
Other | mrdoob | three.js | 4fd113ba58787ded22b6e1d4adf2cb0ddccd37d7.json | Change webvr_multiview to use modules | examples/webvr_multiview.html | @@ -18,13 +18,12 @@
</style>
</head>
<body>
+ <script type="module">
- <script src="../build/three.js"></script>
- <script src="js/vr/WebVR.js"></script>
-
- <script src="js/geometries/BoxLineGeometry.js"></script>
- <script src="js/libs/stats.min.js"></script>
- <script>
+ import * as THREE from '../b... | false |
Other | mrdoob | three.js | 4e421126402a59c8b11c6283e201bb924ffb5811.json | Fix lint issues and some minor changes | examples/webvr_multiview.html | @@ -85,7 +85,7 @@
var geometry = new THREE.IcosahedronBufferGeometry( radius );
- for ( var i = 0; i < 5000; i ++ ) {
+ for ( var i = 0; i < 20000; i ++ ) {
var object = new THREE.Mesh( geometry, new THREE.MeshLambertMaterial( { color: Math.random() * 0xffffff } ) );
| true |
Other | mrdoob | three.js | 4e421126402a59c8b11c6283e201bb924ffb5811.json | Fix lint issues and some minor changes | src/renderers/WebGLRenderer.js | @@ -81,7 +81,7 @@ function WebGLRenderer( parameters ) {
* Enables error checking and reporting when shader programs are being compiled
* @type {boolean}
*/
- checkShaderErrors: false
+ checkShaderErrors: true
};
// clearing | true |
Other | mrdoob | three.js | 4e421126402a59c8b11c6283e201bb924ffb5811.json | Fix lint issues and some minor changes | src/renderers/webgl/WebGLMultiview.js | @@ -52,7 +52,7 @@ function WebGLMultiview( renderer, gl, contextAttributes ) {
function isAvailable() {
- return capabilities.multiview && !contextAttributes.antialias;
+ return capabilities.multiview && ! contextAttributes.antialias;
}
| true |
Other | mrdoob | three.js | 2f61505f454199cc24628f8d52b0f3d63860cced.json | Remove webgl_multiple_views_multiple example | examples/files.js | @@ -201,7 +201,6 @@ var files = {
"webgl_multiple_renderers",
"webgl_multiple_scenes_comparison",
"webgl_multiple_views",
- "webgl_multiple_views_multiview",
"webgl_nearestneighbour",
"webgl_panorama_cube",
"webgl_panorama_dualfisheye", | true |
Other | mrdoob | three.js | 2f61505f454199cc24628f8d52b0f3d63860cced.json | Remove webgl_multiple_views_multiple example | examples/webgl_multiple_views_multiview.html | @@ -1,325 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js performance - animation</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-col... | true |
Other | mrdoob | three.js | 66b671b2e33c93a46ce341cc0f8ac1e774be9e38.json | Detect antialias on multiview.isAvailable() | examples/webvr_multiview.html | @@ -23,16 +23,17 @@
<script src="js/vr/WebVR.js"></script>
<script src="js/geometries/BoxLineGeometry.js"></script>
-
+ <script src="js/libs/stats.min.js"></script>
<script>
var container;
var camera, scene, renderer;
var room;
+ var stats;
var count = 0;
- var radius = 0.08;
+ v... | true |
Other | mrdoob | three.js | 66b671b2e33c93a46ce341cc0f8ac1e774be9e38.json | Detect antialias on multiview.isAvailable() | src/renderers/WebGLRenderer.js | @@ -314,7 +314,7 @@ function WebGLRenderer( parameters ) {
// Multiview
- var multiview = new WebGLMultiview( _this, _gl );
+ var multiview = new WebGLMultiview( _this, _gl, _gl.getContextAttributes() );
this.multiview = multiview;
| true |
Other | mrdoob | three.js | 66b671b2e33c93a46ce341cc0f8ac1e774be9e38.json | Detect antialias on multiview.isAvailable() | src/renderers/webgl/WebGLMultiview.js | @@ -8,7 +8,7 @@ import { Matrix3 } from '../../math/Matrix3.js';
import { Matrix4 } from '../../math/Matrix4.js';
import { Vector2 } from '../../math/Vector2.js';
-function WebGLMultiview( renderer, gl ) {
+function WebGLMultiview( renderer, gl, contextAttributes ) {
var DEFAULT_NUMVIEWS = 2;
@@ -52,7 +52,7 @... | true |
Other | mrdoob | three.js | be3c3ba7686750239a4a71a783b97754c4c58e57.json | Add webvr_multiview example | examples/files.js | @@ -339,6 +339,7 @@ var files = {
"webvr_cubes",
"webvr_dragging",
"webvr_lorenzattractor",
+ "webvr_multiview",
"webvr_panorama",
"webvr_paint",
"webvr_rollercoaster", | true |
Other | mrdoob | three.js | be3c3ba7686750239a4a71a783b97754c4c58e57.json | Add webvr_multiview example | examples/webvr_multiview.html | @@ -0,0 +1,178 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webvr - ball shooter</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+ <style>
+ body {
+ font-family: Monospace;
+ background-color: #101010;
+ colo... | true |
Other | mrdoob | three.js | 8d8204f26a36564ffec14dec0dbd1547fd4bfd60.json | Remove ballshooter_multiview from examples list | examples/files.js | @@ -336,7 +336,6 @@ var files = {
],
"webvr": [
"webvr_ballshooter",
- "webvr_ballshooter_multiview",
"webvr_cubes",
"webvr_dragging",
"webvr_lorenzattractor", | false |
Other | mrdoob | three.js | f4c0cf956a3b682b3c2d21d54b20e5cc6c0f67fa.json | Remove ballshooter_multivew from files | examples/files.js | @@ -201,7 +201,6 @@ var files = {
"webgl_multiple_renderers",
"webgl_multiple_scenes_comparison",
"webgl_multiple_views",
- "webgl_multiple_views_multiview",
"webgl_nearestneighbour",
"webgl_panorama_cube",
"webgl_panorama_dualfisheye", | false |
Other | mrdoob | three.js | 24a5191cd961a54284d60632c1b5d3bcb455d3fd.json | Fix minor style issues | examples/webgl_multiple_views_multiview.html | @@ -80,7 +80,6 @@
var ASPECT_RATIO = window.innerWidth / window.innerHeight;
- var SIZE = 1 / AMOUNT;
var WIDTH = ( window.innerWidth / AMOUNT ) * window.devicePixelRatio;
var HEIGHT = ( window.innerHeight / AMOUNT ) * window.devicePixelRatio;
| true |
Other | mrdoob | three.js | 24a5191cd961a54284d60632c1b5d3bcb455d3fd.json | Fix minor style issues | examples/webvr_ballshooter_multiview.html | @@ -294,9 +294,10 @@
var trender = performance.now() - ts;
// Compute average of the last frames
- for (var i = 0; i < avgCounter.length-1; ++i) avgCounter[i] = avgCounter[i+1];
- avgCounter[avgCounter.length-1] = trender;
- var avg = avgCounter.reduce(function(a, b) { return a + b; }) / avgCounter... | true |
Other | mrdoob | three.js | 24a5191cd961a54284d60632c1b5d3bcb455d3fd.json | Fix minor style issues | src/renderers/webgl/WebGLMultiview.js | @@ -183,7 +183,7 @@ function WebGLMultiview( renderer, requested, options ) {
function detachRenderTarget( camera ) {
- if ( renderTarget !== renderer.getRenderTarget() ) return false;
+ if ( renderTarget !== renderer.getRenderTarget() ) return;
renderer.setRenderTarget( currentRenderTarget );
flush( ca... | true |
Other | mrdoob | three.js | b0d9a7415cf48e0d1b8185e06056879b0139a596.json | Remove unneeded closure | src/math/Quaternion.js | @@ -349,54 +349,48 @@ Object.assign( Quaternion.prototype, {
},
- setFromUnitVectors: function () {
+ setFromUnitVectors: function ( vFrom, vTo ) {
// assumes direction vectors vFrom and vTo are normalized
- var r;
-
var EPS = 0.000001;
- return function setFromUnitVectors( vFrom, vTo ) {
-
- r = ... | false |
Other | mrdoob | three.js | 9cf1fe31598e76e58098c3598bf8ff0529f26e63.json | Remove redundant blit from AfterimagePass
It's much faster to just swap the buffers in AfterimagePass instead of doing a blit to copy them. | examples/js/postprocessing/AfterimagePass.js | @@ -41,10 +41,8 @@ THREE.AfterimagePass = function ( damp ) {
this.compFsQuad = new THREE.Pass.FullScreenQuad( this.shaderMaterial );
- var material = new THREE.MeshBasicMaterial( {
- map: this.textureComp.texture
- } );
- this.screenFsQuad = new THREE.Pass.FullScreenQuad( material );
+ var material = new THREE.... | false |
Other | mrdoob | three.js | 9e402e577be661179043699e3295f2b1def50042.json | Add resizing support to AfterimagePass | examples/js/postprocessing/AfterimagePass.js | @@ -78,6 +78,13 @@ THREE.AfterimagePass.prototype = Object.assign( Object.create( THREE.Pass.protot
}
+ },
+
+ setSize: function ( width, height ) {
+
+ this.textureComp.setSize( width, height );
+ this.textureOld.setSize( width, height );
+
}
} ); | false |
Other | mrdoob | three.js | e1f0cf4240a25fd74fe3d91086a289d278f3663d.json | Add threejsfundamentals links useful-links
I added it twice, once as a starting resource and again as a advanced resource since it's trying to be both. I hope that's okay.
Also FYI, some of the links point to really old tutorials from like 2012 that I'm just guessing won't work with current three.js | docs/manual/en/introduction/Useful-links.html | @@ -33,6 +33,9 @@ <h2>Tutorials and courses</h2>
<h3>Getting started with three.js</h3>
<ul>
+ <li>
+ [link:https://threejsfundamentals.org/threejs/lessons/threejs-fundamentals.html Three.js Fundamentals starting lesson]
+ </li>
<li>
[link:https://codepen.io/rachsmith/post/beginning-with-3d-webg... | false |
Other | mrdoob | three.js | cdf6dc326bb8da769c329f835eb373fc2388a49d.json | Clarify documentation for Object3D copy method
Related to: #14009 | docs/api/en/core/Object3D.html | @@ -229,6 +229,8 @@ <h3>[method:this copy]( [param:Object3D object], [param:Boolean recursive] )</h3
recursive -- if true, descendants of the object are also copied. Default is true.<br /><br />
Copy the given object into this object.
+
+ Note, the callbacks [page:.onAfterRender] and [page:.onBeforeRender] are... | false |
Other | mrdoob | three.js | 58b6bd2dadd9986192ec80683af53e4f2c229ba5.json | Avoid cyclic dependency on Vector3 | src/math/Quaternion.js | @@ -6,7 +6,6 @@
*/
import { _Math } from './Math.js';
-import { Vector3 } from './Vector3.js';
function Quaternion( x, y, z, w ) {
@@ -354,15 +353,12 @@ Object.assign( Quaternion.prototype, {
// assumes direction vectors vFrom and vTo are normalized
- var v1 = new Vector3();
var r;
var EPS = 0... | false |
Other | mrdoob | three.js | 04174a3d7aaf8c838811efe74455f379e65d73aa.json | Avoid cyclic dependency | src/math/Box3.js | @@ -1,5 +1,4 @@
import { Vector3 } from './Vector3.js';
-import { Sphere } from './Sphere.js';
/**
* @author bhouston / http://clara.io
@@ -523,8 +522,8 @@ Object.assign( Box3.prototype, {
if ( target === undefined ) {
- console.warn( 'THREE.Box3: .getBoundingSphere() target is now required' );
- ta... | false |
Other | mrdoob | three.js | 7b53ebb2f030553c37a3ac368e01d61e6ddc863e.json | fix texture path bug | examples/js/loaders/LWOLoader.js | @@ -650,12 +650,13 @@ THREE.LWOLoader = ( function () {
},
- // if texture files are contained in the standard "../Images"
- // directory, then LW stores the path as relative.
- // Otherwise it stores the full drive path, on windows "C:/dir/subdir/texture.jpg"
+ // Lightwave expects textures to be in folder ... | false |
Other | mrdoob | three.js | 1d02bf9cb42d4c020bcd00e3fe51e0284bf160de.json | Remove menu z-index change | editor/css/dark.css | @@ -95,10 +95,6 @@ select {
padding-right: 8px;
}
- #menubar .menu * {
- z-index: 2;
- }
-
#menubar .menu.right {
float: right;
cursor: auto; | true |
Other | mrdoob | three.js | 1d02bf9cb42d4c020bcd00e3fe51e0284bf160de.json | Remove menu z-index change | editor/css/light.css | @@ -91,10 +91,6 @@ select {
padding-right: 8px;
}
- #menubar .menu * {
- z-index: 2;
- }
-
#menubar .menu.right {
float: right;
cursor: auto; | true |
Other | mrdoob | three.js | aeda49d636ab6f396d9cf7f4c6c02315c7a83256.json | Fix style per review comment | examples/js/exporters/GLTFExporter.js | @@ -1360,8 +1360,8 @@ THREE.GLTFExporter.prototype = {
}
- if (primitive.indices === null)
- delete primitive.indices
+ if ( primitive.indices === null ) delete primitive.indices;
+
}
var material = processMaterial( materials[ groups[ i ].materialIndex ] ); | false |
Other | mrdoob | three.js | 9bcf4f46fd67872d25a7c31ce056ed90dc281b21.json | Remove uneeded code | editor/js/Viewport.js | @@ -142,9 +142,7 @@ var Viewport = function ( editor ) {
};
var sceneCameraDisplay = new UI.Row();
- sceneCameraDisplay.setId( 'cameraSelect' );
- sceneCameraDisplay.dom.setAttribute( 'layout', config.getKey( 'project/renderer/sceneCameras' ) || 'topLeft' );
- sceneCameraDisplay.setDisplay( 'none' );
+ sceneCamer... | false |
Other | mrdoob | three.js | 37777d7cb37de4a3fc1d59657e1a2392a8d47a5c.json | Update code style | editor/js/Config.js | @@ -21,7 +21,6 @@ var Config = function () {
'project/renderer/gammaOutput': false,
'project/renderer/shadows': true,
'project/renderer/showHelpers': true,
- 'project/renderer/sceneCameras': 'topRight',
'project/renderer/showSceneCameras': true,
'project/vr': false, | true |
Other | mrdoob | three.js | 37777d7cb37de4a3fc1d59657e1a2392a8d47a5c.json | Update code style | editor/js/Viewport.js | @@ -178,10 +178,11 @@ var Viewport = function ( editor ) {
var optionSelected = config.getKey( 'project/renderer/showSceneCameras' ) === true;
sceneCameraDisplay.setDisplay( optionSelected && Object.keys( cameras ).length > 0 ? 'block' : 'none' );
- if(optionSelected === false)
- {
- cameraSelect.setValue(c... | true |
Other | mrdoob | three.js | f1e6332d135f8ce4e9334dfe3783154a2295935a.json | Show support for FloatType | examples/webgl_loader_texture_hdr.html | @@ -77,27 +77,48 @@
camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
- new THREE.RGBELoader().load( 'textures/memorial.hdr', function ( texture, textureData ) {
+ var type = THREE.UnsignedByteType;
+ //var type = THREE.FloatType;
- //console.log( textureData );
- //co... | false |
Other | mrdoob | three.js | 8eac01fec0455fdbe6937e1590b0da442e2cc84f.json | Fix typo in webvr_video.html | examples/webvr_video.html | @@ -66,7 +66,7 @@
var texture = new THREE.Texture( video );
texture.generateMipmaps = false;
texture.minFilter = THREE.NearestFilter;
- texture.maxFilter = THREE.NearestFilter;
+ texture.magFilter = THREE.NearestFilter;
texture.format = THREE.RGBFormat;
setInterval( function () { | false |
Other | mrdoob | three.js | e3a3bd51a555a90cc1f67c2a164e164de233ec91.json | remove webgl_hdr.html example | examples/webgl_hdr.html | @@ -1,223 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - materials - HDR texture</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 {
- color: #fff;
- font-family:Monos... | false |
Other | mrdoob | three.js | a5d295bf2059bbd158b2b20ae6eb556aafec58b3.json | Add support for linting typescript files | package.json | @@ -25,6 +25,7 @@
"test": "test"
},
"eslintConfig": {
+ "parser": "@typescript-eslint/parser",
"extends": "mdcs",
"plugins": [
"html"
@@ -38,7 +39,7 @@
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"... | false |
Other | mrdoob | three.js | 154fd0c90cc922597dafe93758fbe64833db6d0f.json | Remove ballshooter_multivew from files | examples/files.js | @@ -206,7 +206,6 @@ var files = {
"webgl_multiple_renderers",
"webgl_multiple_scenes_comparison",
"webgl_multiple_views",
- "webgl_multiple_views_multiview",
"webgl_nearestneighbour",
"webgl_panorama_cube",
"webgl_panorama_dualfisheye", | false |
Other | mrdoob | three.js | 807d3576d3b4bcc0b41f44ba081d5390ab47d3a1.json | Fix minor style issues | examples/webgl_multiple_views_multiview.html | @@ -80,7 +80,6 @@
var ASPECT_RATIO = window.innerWidth / window.innerHeight;
- var SIZE = 1 / AMOUNT;
var WIDTH = ( window.innerWidth / AMOUNT ) * window.devicePixelRatio;
var HEIGHT = ( window.innerHeight / AMOUNT ) * window.devicePixelRatio;
| true |
Other | mrdoob | three.js | 807d3576d3b4bcc0b41f44ba081d5390ab47d3a1.json | Fix minor style issues | examples/webvr_ballshooter_multiview.html | @@ -294,9 +294,10 @@
var trender = performance.now() - ts;
// Compute average of the last frames
- for (var i = 0; i < avgCounter.length-1; ++i) avgCounter[i] = avgCounter[i+1];
- avgCounter[avgCounter.length-1] = trender;
- var avg = avgCounter.reduce(function(a, b) { return a + b; }) / avgCounter... | true |
Other | mrdoob | three.js | 807d3576d3b4bcc0b41f44ba081d5390ab47d3a1.json | Fix minor style issues | src/renderers/webgl/WebGLMultiview.js | @@ -183,7 +183,7 @@ function WebGLMultiview( renderer, requested, options ) {
function detachRenderTarget( camera ) {
- if ( renderTarget !== renderer.getRenderTarget() ) return false;
+ if ( renderTarget !== renderer.getRenderTarget() ) return;
renderer.setRenderTarget( currentRenderTarget );
flush( ca... | true |
Other | mrdoob | three.js | 16c4b71837b24cd207225d2f76d9f16f2b558dec.json | Add setNumViews() to WebGLMultiview | src/renderers/WebGLMultiviewRenderTarget.js | @@ -30,6 +30,19 @@ WebGLMultiviewRenderTarget.prototype = Object.assign( Object.create( WebGLRender
return this;
+ },
+
+ setNumViews: function ( numViews ) {
+
+ if ( this.numViews !== numViews ) {
+
+ this.numViews = numViews;
+ this.dispose();
+
+ }
+
+ return this;
+
}
} ); | true |
Other | mrdoob | three.js | 16c4b71837b24cd207225d2f76d9f16f2b558dec.json | Add setNumViews() to WebGLMultiview | src/renderers/WebGLRenderer.js | @@ -1245,9 +1245,9 @@ function WebGLRenderer( parameters ) {
state.setPolygonOffset( false );
- if ( this.multiview.isEnabled() ) {
+ if ( multiview.isEnabled() ) {
- this.multiview.detachRenderTarget( camera );
+ multiview.detachRenderTarget( camera );
}
| true |
Other | mrdoob | three.js | 16c4b71837b24cd207225d2f76d9f16f2b558dec.json | Add setNumViews() to WebGLMultiview | src/renderers/webgl/WebGLMultiview.js | @@ -11,44 +11,42 @@ function WebGLMultiview( renderer, requested, options ) {
options = Object.assign( {}, { debug: false }, options );
+ var DEFAULT_NUMVIEWS = 2;
var gl = renderer.context;
var canvas = renderer.domElement;
var capabilities = renderer.capabilities;
var properties = renderer.properties;
... | true |
Other | mrdoob | three.js | 16c4b71837b24cd207225d2f76d9f16f2b558dec.json | Add setNumViews() to WebGLMultiview | src/renderers/webgl/WebGLTextures.js | @@ -1007,11 +1007,11 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
ext.framebufferTextureMultiviewOVR( _gl.FRAMEBUFFER, _gl.DEPTH_STENCIL_ATTACHMENT, depthStencilTexture, 0, 0, numViews );
var viewFramebuffers = new Array( numViews );
- for ( var viewIndex = 0; vi... | true |
Other | mrdoob | three.js | 6509ac6bb3fd818f8200a846f3d4aef23cac9baa.json | Add WebGL multiple views with multiview example | examples/files.js | @@ -206,6 +206,7 @@ var files = {
"webgl_multiple_renderers",
"webgl_multiple_scenes_comparison",
"webgl_multiple_views",
+ "webvr_multiple_views_multiview",
"webgl_nearestneighbour",
"webgl_panorama_cube",
"webgl_panorama_dualfisheye", | true |
Other | mrdoob | three.js | 6509ac6bb3fd818f8200a846f3d4aef23cac9baa.json | Add WebGL multiple views with multiview example | examples/webgl_multiple_views_multiview.html | @@ -0,0 +1,294 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js performance - animation</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-col... | true |
Other | mrdoob | three.js | b59ce1721c59b687e0870958a4b477ea195b3269.json | Add modelview and normalview matrices | src/renderers/WebGLRenderer.js | @@ -1464,8 +1464,16 @@ function WebGLRenderer( parameters ) {
object.onBeforeRender( _this, scene, camera, geometry, material, group );
currentRenderState = renderStates.get( scene, _currentArrayCamera || camera );
- object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
- o... | true |
Other | mrdoob | three.js | b59ce1721c59b687e0870958a4b477ea195b3269.json | Add modelview and normalview matrices | src/renderers/webgl/WebGLMultiview.js | @@ -3,6 +3,8 @@
*/
import { WebGLRenderTarget } from '../WebGLRenderTarget.js';
+import { Matrix3 } from '../../math/Matrix3.js';
+import { Matrix4 } from '../../math/Matrix4.js';
function WebGLMultiview( requested, gl, canvas, extensions, capabilities, properties ) {
@@ -24,7 +26,6 @@ function WebGLMultiview... | true |
Other | mrdoob | three.js | b59ce1721c59b687e0870958a4b477ea195b3269.json | Add modelview and normalview matrices | src/renderers/webgl/WebGLProgram.js | @@ -414,11 +414,13 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
'uniform vec3 cameraPosition;',
material.supportsMultiview && renderer.multiview.isEnabled() ? [
- 'uniform mat4 modelViewMatrix;',
- 'uniform mat3 normalMatrix;',
+ 'uniform mat4 modelViewMatrices[... | true |
Other | mrdoob | three.js | fc502ee14cf6d7136a1da0e8f43745c424253707.json | Add number of objects parameter on multiview demo | examples/webvr_ballshooter_multiview.html | @@ -112,9 +112,20 @@
}
+ function addNumLink( value ) {
+
+ return `<a href="?num=${ value }&${!multiview ? '' : 'enableMultiview'}">${ value }</a>`;
+
+ }
+
// @todo Change enabled for requested and check renderer.vr.multiview
- info.innerHTML = '<b>OVR_multiview2</b> demo<br/>requested:... | false |
Other | mrdoob | three.js | f3c8c6d6e83f1f3bd99904712509a57b4d3ef84f.json | Add multiview status on example | examples/webvr_ballshooter_multiview.html | @@ -44,23 +44,12 @@
animate();
function init() {
- const urlParams = new URLSearchParams(window.location.search);
- const multiview = urlParams.has('enableMultiview');
container = document.createElement( 'div' );
document.body.appendChild( container );
- var info = document.crea... | true |
Other | mrdoob | three.js | f3c8c6d6e83f1f3bd99904712509a57b4d3ef84f.json | Add multiview status on example | src/renderers/WebGLRenderer.js | @@ -62,7 +62,7 @@ function WebGLRenderer( parameters ) {
var _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ),
_context = parameters.context !== undefined ? parameters.context : null,
- _multiview = parameters.multiview !== unde... | true |
Other | mrdoob | three.js | f3c8c6d6e83f1f3bd99904712509a57b4d3ef84f.json | Add multiview status on example | src/renderers/webgl/WebGLMultiview.js | @@ -1,3 +1,7 @@
+/**
+ * @author fernandojsg / http://fernandojsg.com
+ */
+
function WebGLMultiview( requested, gl, canvas, extensions, capabilities ) {
this.isAvailable = function () { | true |
Other | mrdoob | three.js | f3c8c6d6e83f1f3bd99904712509a57b4d3ef84f.json | Add multiview status on example | src/renderers/webgl/WebGLProgram.js | @@ -415,10 +415,10 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
renderer.multiviewEnabled ? [
'uniform mat4 modelViewMatrix;',
- 'uniform mat4 projectionMatrices[2];',
'uniform mat3 normalMatrix;',
-
'uniform mat4 viewMatrices[2];',
+ 'uniform mat4 proje... | true |
Other | mrdoob | three.js | 6f91e54fcd8b9413643cd9fe064cb492f6a14a26.json | Remove polyfill for Helio. | examples/js/vr/HelioWebXRPolyfill.js | @@ -4,6 +4,10 @@
if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
+ if ('isSessionSupported' in navigator.xr) {
+ return;
+ }
+
console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
const isHelio96 = navigator.userAgent.includes( "Chrome/73" ); | false |
Other | mrdoob | three.js | 9d018e0a463178fa28ac3043d666383c2493a788.json | Remove unneeded copy function | examples/js/lines/LineMaterial.js | @@ -373,23 +373,3 @@ THREE.LineMaterial.prototype.constructor = THREE.LineMaterial;
THREE.LineMaterial.prototype.isLineMaterial = true;
-THREE.LineMaterial.prototype.copy = function ( source ) {
-
- THREE.ShaderMaterial.prototype.copy.call( this, source );
-
- this.color.copy( source.color );
-
- this.linewidth = ... | true |
Other | mrdoob | three.js | 9d018e0a463178fa28ac3043d666383c2493a788.json | Remove unneeded copy function | examples/jsm/lines/LineMaterial.js | @@ -381,25 +381,5 @@ LineMaterial.prototype.constructor = LineMaterial;
LineMaterial.prototype.isLineMaterial = true;
-LineMaterial.prototype.copy = function ( source ) {
-
- ShaderMaterial.prototype.copy.call( this, source );
-
- this.color.copy( source.color );
-
- this.linewidth = source.linewidth;
-
- this.das... | true |
Other | mrdoob | three.js | ea7d602a0619ba2b12d81f09e2472d455f004e36.json | Remove other copy functions | examples/js/lines/LineSegmentsGeometry.js | @@ -239,20 +239,6 @@ THREE.LineSegmentsGeometry.prototype = Object.assign( Object.create( THREE.Insta
// todo
- },
-
- clone: function () {
-
- // todo
-
- },
-
- copy: function ( /* source */ ) {
-
- // todo
-
- return this;
-
}
} ); | true |
Other | mrdoob | three.js | ea7d602a0619ba2b12d81f09e2472d455f004e36.json | Remove other copy functions | examples/js/lines/Wireframe.js | @@ -52,14 +52,6 @@ THREE.Wireframe.prototype = Object.assign( Object.create( THREE.Mesh.prototype )
};
- }() ),
-
- copy: function ( /* source */ ) {
-
- // todo
-
- return this;
-
- }
+ }() )
} ); | true |
Other | mrdoob | three.js | ea7d602a0619ba2b12d81f09e2472d455f004e36.json | Remove other copy functions | examples/js/lines/WireframeGeometry2.js | @@ -19,14 +19,6 @@ THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSeg
constructor: THREE.WireframeGeometry2,
- isWireframeGeometry2: true,
-
- copy: function ( /* source */ ) {
-
- // todo
-
- return this;
-
- }
+ isWireframeGeometry2: true
} ); | true |
Other | mrdoob | three.js | f8648ce40b18a403fb0ae27052acce88e33ed1c7.json | Add version of lumin | examples/js/vr/HelioWebXRPolyfill.js | @@ -2,132 +2,166 @@
* @author mvilledieu / http://github.com/mvilledieu
*/
-if (/(Helio)/g.test(navigator.userAgent) && "xr" in navigator) {
- console.log("Helio WebXR Polyfill", navigator.xr);
+if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
- // WebXRManager - XR.supportSession() Polyfi... | false |
Other | mrdoob | three.js | 87245cb81f80266dd66df4c4e41df1501f8d4d0a.json | Follow GLTFLoader api for parse() | examples/js/loaders/LDrawLoader.js | @@ -599,11 +599,11 @@ THREE.LDrawLoader = ( function () {
},
- parse: function ( text, onParsed ) {
+ parse: function ( text, path, onLoad ) {
// Async parse. This function calls onParse with the parsed THREE.Object3D as parameter
- this.processObject( text, onProcessed, null, "" );
+ this.process... | false |
Other | mrdoob | three.js | c5024cdace6d9f11371ebab6462cc7020d4d9938.json | remove need for state.id | src/renderers/WebGLRenderer.js | @@ -1441,8 +1441,7 @@ function WebGLRenderer( parameters ) {
var lights = currentRenderState.state.lights;
var shadowsArray = currentRenderState.state.shadowsArray;
- var lightsHash = materialProperties.lightsHash;
- var lightsStateHash = lights.state.hash;
+ var lightsStateVersion = lights.state.version;
... | true |
Other | mrdoob | three.js | c5024cdace6d9f11371ebab6462cc7020d4d9938.json | remove need for state.id | src/renderers/webgl/WebGLLights.js | @@ -100,25 +100,23 @@ function UniformsCache() {
}
-var count = 0;
+var nextVersion = 0;
function WebGLLights() {
var cache = new UniformsCache();
var state = {
- id: count ++,
+ version: 0,
hash: {
- stateID: - 1,
directionalLength: - 1,
pointLength: - 1,
spotLength: - 1,
rec... | true |
Other | mrdoob | three.js | 58bd51ef3668a2c225dc168d3be4f9f1564ece69.json | Update skeleton only once in a frame | src/objects/Skeleton.js | @@ -16,6 +16,8 @@ function Skeleton( bones, boneInverses ) {
this.bones = bones.slice( 0 );
this.boneMatrices = new Float32Array( this.bones.length * 16 );
+ this.version = - 1;
+
// use the supplied bone inverses or calculate the inverses
if ( boneInverses === undefined ) { | true |
Other | mrdoob | three.js | 58bd51ef3668a2c225dc168d3be4f9f1564ece69.json | Update skeleton only once in a frame | src/renderers/WebGLRenderer.js | @@ -1306,7 +1306,14 @@ function WebGLRenderer( parameters ) {
if ( object.isSkinnedMesh ) {
- object.skeleton.update();
+ // update skeleton only once in a frame
+
+ if ( object.skeleton.version !== info.render.frame ) {
+
+ object.skeleton.update();
+ object.skeleton.version = info.rende... | true |
Other | mrdoob | three.js | 2bef01fc9c151931a685e2e1a4e0436f85fe8122.json | fix eslint issues | test/unit/src/math/Quaternion.tests.js | @@ -713,31 +713,40 @@ export default QUnit.module( 'Maths', () => {
QUnit.test( "_onChange", ( assert ) => {
-
+ var b = false;
var f = function () {
- var b = true;
+ b = true;
};
var a = new Quaternion( 11, 12, 13, 1 );
a._onChange( f );
assert.ok( a._onChangeCallback === f, "... | false |
Other | mrdoob | three.js | 2a2cafcac2af98a008b3761d2bc4e63c905ef6a3.json | add quaternion tests | test/unit/src/math/Quaternion.tests.js | @@ -358,9 +358,20 @@ export default QUnit.module( 'Maths', () => {
} );
- QUnit.todo( "clone", ( assert ) => {
+ QUnit.test( "clone", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
+
+ var a = new Quaternion().clone();
+ assert.ok( a.x == 0, "Passed!" );
+ assert.ok( a.y == 0,... | false |
Other | mrdoob | three.js | 2655e47d8cb64c003e73ad3a86ad2e0ec609be51.json | fix lint errors | examples/js/misc/GPUComputationRenderer.js | @@ -97,7 +97,7 @@
* @param {WebGLRenderer} renderer The renderer
*/
-THREE.GPUComputationRenderer = function( sizeX, sizeY, renderer ) {
+THREE.GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
this.variables = [];
@@ -118,7 +118,7 @@ THREE.GPUComputationRenderer = function( sizeX, sizeY, rend... | true |
Other | mrdoob | three.js | 2655e47d8cb64c003e73ad3a86ad2e0ec609be51.json | fix lint errors | examples/jsm/misc/GPUComputationRenderer.js | @@ -112,7 +112,7 @@ import {
WebGLRenderTarget
} from "../../../build/three.module.js";
-var GPUComputationRenderer = function( sizeX, sizeY, renderer ) {
+var GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
this.variables = [];
@@ -133,7 +133,7 @@ var GPUComputationRenderer = function( sizeX,... | true |
Other | mrdoob | three.js | d2c7ae35a46970303dbc60911d2085b13cd641f5.json | fix ocean shader for WebGL2 | examples/js/shaders/OceanShaders.js | @@ -110,9 +110,11 @@ THREE.OceanShaders[ 'ocean_initial_spectrum' ] = {
'return sqrt(G * k * (1.0 + pow2(k / KM)));',
'}',
+ '#if __VERSION__ == 100',
'float tanh (float x) {',
'return (1.0 - exp(-2.0 * x)) / (1.0 + exp(-2.0 * x));',
'}',
+ '#endif',
'void main (void) {',
'vec2 coordinates... | true |
Other | mrdoob | three.js | d2c7ae35a46970303dbc60911d2085b13cd641f5.json | fix ocean shader for WebGL2 | examples/jsm/shaders/OceanShaders.js | @@ -114,9 +114,11 @@ OceanShaders[ 'ocean_initial_spectrum' ] = {
'return sqrt(G * k * (1.0 + pow2(k / KM)));',
'}',
+ '#if __VERSION__ == 100',
'float tanh (float x) {',
'return (1.0 - exp(-2.0 * x)) / (1.0 + exp(-2.0 * x));',
'}',
+ '#endif',
'void main (void) {',
'vec2 coordinates = gl_... | true |
Other | mrdoob | three.js | 0813a98d47b243e2834ea9b52d360b532e7447fa.json | Fix typescript definition. | src/renderers/WebGLRenderer.d.ts | @@ -314,9 +314,10 @@ export class WebGLRenderer implements Renderer {
renderBufferDirect(
camera: Camera,
fog: Fog,
+ geometry: Geometry | BufferGeometry,
material: Material,
- geometryGroup: any,
- object: Object3D
+ object: Object3D,
+ geometryGroup: any
): void;
/** | false |
Other | mrdoob | three.js | a136ee0fd3d9c023aa893e7b52f622d722611aaf.json | fix alfabetic order | examples/files.js | @@ -160,8 +160,8 @@ var files = {
"webgl_materials_envmaps_exr",
"webgl_materials_envmaps_hdr",
"webgl_materials_envmaps_hdr_nodes",
- "webgl_materials_envmaps_pmrem_nodes",
"webgl_materials_envmaps_parallax",
+ "webgl_materials_envmaps_pmrem_nodes",
"webgl_materials_grass",
"webgl_materials_lightma... | false |
Other | mrdoob | three.js | cd5e51db59a65710824b18ac0f1294f4f9aaf706.json | add more unit tests | test/unit/src/math/Quaternion.tests.js | @@ -225,118 +225,119 @@ export default QUnit.module( 'Maths', () => {
} );
QUnit.test( "x", ( assert ) => {
+
var a = new Quaternion();
- assert.ok(a.x === 0, "Passed!");
+ assert.ok( a.x === 0, "Passed!" );
- a = new Quaternion(1, 2, 3);
- assert.ok(a.x === 1, "Passed!");
+ a = new Quaternion( ... | false |
Other | mrdoob | three.js | 968b226d4140eeb4182de8396382430843862185.json | remove the unnecessary words
"according to the definition of this method." | docs/api/en/extras/ShapeUtils.html | @@ -22,7 +22,7 @@ <h2>Methods</h2>
<h3>[method:Number area]( contour )</h3>
<p>
- contour -- 2D polygon. An array of THREE.Vector2(), according to the definition of this method.<br /><br />
+ contour -- 2D polygon. An array of THREE.Vector2()<br /><br />
Calculate area of a ( 2D ) contour polygon.<br /><... | false |
Other | mrdoob | three.js | 8e49e00734b261e67c781b5b152f0bf2a9f3853c.json | Optimize a loop in BufferGeometry.merge() | src/core/BufferGeometry.js | @@ -820,9 +820,10 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
var attribute2 = geometry.attributes[ key ];
var attributeArray2 = attribute2.array;
- var attributeSize = attribute2.itemSize;
+ var attributeOffset = attribute2.itemSize * offset;
+ var length = Math.... | false |
Other | mrdoob | three.js | eeb229d2f1fc036883ee58eae1ae95fde6b0cf9b.json | Remove references to THREE | src/lights/HemisphereLightProbe.js | @@ -3,6 +3,7 @@
*/
import { Color } from '../math/Color.js';
+import { Vector3 } from '../math/Vector3.js';
import { LightProbe } from './LightProbe.js';
function HemisphereLightProbe( skyColor, groundColor, intensity ) {
@@ -12,8 +13,8 @@ function HemisphereLightProbe( skyColor, groundColor, intensity ) {
v... | false |
Other | mrdoob | three.js | 3de13b171f8ba11f1256c85fac2b54f90764a1c3.json | Remove string literals for ie11 | src/helpers/LightProbeHelper.js | @@ -28,92 +28,95 @@ function LightProbeHelper( lightProbe, size ) {
},
- vertexShader: `
+ vertexShader: [
- varying vec3 vNormal;
+ 'varying vec3 vNormal;',
- void main() {
+ 'void main() {',
- vNormal = normalize( normalMatrix * normal );
+ ' vNormal = normalize( normalMatrix * normal );',... | false |
Other | mrdoob | three.js | f3edc691ddb0bdad570907c4c7733a3c19232642.json | Remove example per mrdoob request and rebase. | examples/files.js | @@ -125,7 +125,6 @@ var files = {
"webgl_loader_sea3d_skinning",
"webgl_loader_sea3d_sound",
"webgl_loader_stl",
- "webgl_loader_stl_module",
"webgl_loader_svg",
"webgl_loader_texture_dds",
"webgl_loader_texture_exr", | true |
Other | mrdoob | three.js | f3edc691ddb0bdad570907c4c7733a3c19232642.json | Remove example per mrdoob request and rebase. | examples/webgl_loader_stl_module.html | @@ -1,272 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - STL</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: #000000;... | true |
Other | mrdoob | three.js | d3a970d3f9327cf7d90d8b2e79779683415b77fa.json | Add modulrized STLLoader. | examples/webgl_loader_stl_module.html | @@ -0,0 +1,272 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - STL</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: #000000;... | false |
Other | mrdoob | three.js | 2267fe86c6a6ec6140e3775f323b1d9c21f8ccbc.json | Remove example per mrdoob request. | examples/webgl_loader_stl_module.html | @@ -1,272 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - STL</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: #000000;... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.