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 | d1c934903a41bd10c9bfa61dd3c1f88ac4f2d2c4.json | replace frustum vertex with vector3 | examples/jsm/csm/FrustumVertex.js | @@ -1,25 +0,0 @@
-/**
- * @author vHawk / https://github.com/vHawk/
- */
-
-export default class FrustumVertex {
-
- constructor( x, y, z ) {
-
- this.x = x || 0;
- this.y = y || 0;
- this.z = z || 0;
-
- }
-
- fromLerp( v1, v2, amount ) {
-
- this.x = ( 1 - amount ) * v1.x + amount * v2.x;
- this.y = ( 1 - amount... | true |
Other | mrdoob | three.js | 9fcb357600446c2f0b161196c316c4c8daff7a55.json | use projection matrix in frustum | examples/jsm/csm/CSM.js | @@ -72,6 +72,7 @@ export default class CSM {
initCascades() {
+ // TODO: Handle orthographic camera
const camera = this.camera;
const far = Math.min(camera.far, this.maxFar);
this.mainFrustum = new Frustum( {
@@ -239,7 +240,7 @@ export default class CSM {
updateUniforms() {
const far = Math.min(t... | true |
Other | mrdoob | three.js | 9fcb357600446c2f0b161196c316c4c8daff7a55.json | use projection matrix in frustum | examples/jsm/csm/Frustum.js | @@ -2,19 +2,19 @@
* @author vHawk / https://github.com/vHawk/
*/
-import { MathUtils, Vector3 } from '../../../build/three.module.js';
+import { MathUtils, Vector3, Matrix4 } from '../../../build/three.module.js';
import FrustumVertex from './FrustumVertex.js';
+const inverseProjectionMatrix = new Matrix4();
+... | true |
Other | mrdoob | three.js | cdad0aa7e536df0fa2708601d85efa732f835314.json | remove parametes redundant to camera | examples/jsm/csm/CSM.js | @@ -26,11 +26,8 @@ export default class CSM {
this.camera = data.camera;
this.parent = data.parent;
- this.fov = data.fov || this.camera.fov;
- this.near = this.camera.near;
- this.far = data.far || this.camera.far;
- this.aspect = data.aspect || this.camera.aspect;
this.cascades = data.cascades || 3;
+ ... | true |
Other | mrdoob | three.js | cdad0aa7e536df0fa2708601d85efa732f835314.json | remove parametes redundant to camera | examples/webgl_shadowmap_csm.html | @@ -65,10 +65,7 @@
};
csm = new CSM.default({
- fov: camera.fov,
- near: camera.near,
- far: params.far,
- aspect: camera.aspect,
+ maxFar: params.far,
cascades: 4,
mode: params.mode,
parent: scene,
@@ -116,7 +113,7 @@
gui.add( params, 'far', 1, 5000 ).step( 1 ).... | true |
Other | mrdoob | three.js | 8604213c9dd95ed42931b755bffce838f917ccb0.json | add author attribution to csm | examples/jsm/csm/CSM.js | @@ -1,3 +1,7 @@
+/**
+ * @author vHawk / https://github.com/vHawk/
+ */
+
import {
Vector2,
Vector3, | true |
Other | mrdoob | three.js | 8604213c9dd95ed42931b755bffce838f917ccb0.json | add author attribution to csm | examples/jsm/csm/Frustum.js | @@ -1,3 +1,7 @@
+/**
+ * @author vHawk / https://github.com/vHawk/
+ */
+
import { MathUtils, Vector3 } from '../../../build/three.module.js';
import FrustumVertex from './FrustumVertex.js';
| true |
Other | mrdoob | three.js | 8604213c9dd95ed42931b755bffce838f917ccb0.json | add author attribution to csm | examples/jsm/csm/FrustumBoundingBox.js | @@ -1,3 +1,7 @@
+/**
+ * @author vHawk / https://github.com/vHawk/
+ */
+
export default class FrustumBoundingBox {
constructor() { | true |
Other | mrdoob | three.js | 8604213c9dd95ed42931b755bffce838f917ccb0.json | add author attribution to csm | examples/jsm/csm/FrustumVertex.js | @@ -1,3 +1,7 @@
+/**
+ * @author vHawk / https://github.com/vHawk/
+ */
+
export default class FrustumVertex {
constructor( x, y, z ) { | true |
Other | mrdoob | three.js | 8604213c9dd95ed42931b755bffce838f917ccb0.json | add author attribution to csm | examples/jsm/csm/Shader.js | @@ -1,3 +1,7 @@
+/**
+ * @author vHawk / https://github.com/vHawk/
+ */
+
import { ShaderChunk } from '../../../build/three.module.js';
export default { | true |
Other | mrdoob | three.js | 66b4d70fb0d35175f7130b2bfb4e4a7fd8e2903f.json | remove transparent based on alphaMap #18705 | src/loaders/MaterialLoader.js | @@ -207,12 +207,7 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
if ( json.map !== undefined ) material.map = getTexture( json.map );
if ( json.matcap !== undefined ) material.matcap = getTexture( json.matcap );
- if ( json.alphaMap !== undefined ) {
-
- material.alphaMap =... | false |
Other | mrdoob | three.js | 421eb682b993fa4b50b0e8ad15f18d7281bae557.json | Remove redundant function | examples/jsm/csm/Frustum.js | @@ -1,6 +1,5 @@
import * as THREE from '../../../build/three.module.js';
import FrustumVertex from './FrustumVertex.js';
-import { toRad } from './Utils.js';
export default class Frustum {
@@ -22,10 +21,10 @@ export default class Frustum {
getViewSpaceVertices() {
- this.nearPlaneY = this.near * Math.tan(... | true |
Other | mrdoob | three.js | 421eb682b993fa4b50b0e8ad15f18d7281bae557.json | Remove redundant function | examples/jsm/csm/Utils.js | @@ -1,5 +0,0 @@
-export function toRad( degrees ) {
-
- return degrees * Math.PI / 180;
-
-} | true |
Other | mrdoob | three.js | 7235231a70704a20d2f25ddea482168a72abc133.json | Fix d.ts for BoxHelper constructor | src/helpers/BoxHelper.d.ts | @@ -4,7 +4,7 @@ import { LineSegments } from './../objects/LineSegments';
export class BoxHelper extends LineSegments {
- constructor( object: Object3D, color?: Color );
+ constructor( object: Object3D, color?: Color | string | number );
update( object?: Object3D ): void;
| false |
Other | mrdoob | three.js | 07b252f84d9bf69b9f0aa67ba894ec92b987ec08.json | Use ACES Filmic tone mapping | examples/webgl_materials_envmaps_exr.html | @@ -49,7 +49,6 @@
scene = new THREE.Scene();
renderer = new THREE.WebGLRenderer();
- renderer.toneMapping = THREE.LinearToneMapping;
//
@@ -108,6 +107,7 @@
container.appendChild( renderer.domElement );
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.outputEncoding... | true |
Other | mrdoob | three.js | 07b252f84d9bf69b9f0aa67ba894ec92b987ec08.json | Use ACES Filmic tone mapping | examples/webgl_materials_envmaps_hdr.html | @@ -89,7 +89,7 @@
renderer = new THREE.WebGLRenderer();
renderer.physicallyCorrectLights = true;
- renderer.toneMapping = THREE.LinearToneMapping;
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
//
| true |
Other | mrdoob | three.js | 07b252f84d9bf69b9f0aa67ba894ec92b987ec08.json | Use ACES Filmic tone mapping | examples/webgl_materials_envmaps_hdr_nodes.html | @@ -93,7 +93,6 @@
renderer = new THREE.WebGLRenderer();
renderer.physicallyCorrectLights = true;
- renderer.toneMapping = THREE.LinearToneMapping;
//
@@ -180,7 +179,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- //re... | true |
Other | mrdoob | three.js | 07b252f84d9bf69b9f0aa67ba894ec92b987ec08.json | Use ACES Filmic tone mapping | examples/webgl_materials_envmaps_pmrem_nodes.html | @@ -79,7 +79,6 @@
scene.background = new THREE.Color( 0x000000 );
renderer = new THREE.WebGLRenderer();
- renderer.toneMapping = THREE.LinearToneMapping;
//
@@ -132,7 +131,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- ... | true |
Other | mrdoob | three.js | 77248fa3252a6e197addda1087b70f50cf7ec7b9.json | Fix explanation of Quaternion.lengthSq() | docs/api/en/math/Quaternion.html | @@ -109,7 +109,7 @@ <h3>[method:Float length]()</h3>
<h3>[method:Float lengthSq]()</h3>
<p>
- Computes the [link:https://en.wikipedia.org/wiki/Euclidean_distance Euclidean length]
+ Computes the squared [link:https://en.wikipedia.org/wiki/Euclidean_distance Euclidean length]
(straight-line length) of th... | false |
Other | mrdoob | three.js | 2ca7b89846423adbe0d2ec5a98785e02c8523969.json | Update initial worker config values | examples/js/loaders/BasisTextureLoader.js | @@ -31,6 +31,7 @@ THREE.BasisTextureLoader = function ( manager ) {
this.workerConfig = {
format: null,
astcSupported: false,
+ bptcSupported: false,
etcSupported: false,
dxtSupported: false,
pvrtcSupported: false,
@@ -63,11 +64,11 @@ THREE.BasisTextureLoader.prototype = Object.assign( Object.create( ... | true |
Other | mrdoob | three.js | 2ca7b89846423adbe0d2ec5a98785e02c8523969.json | Update initial worker config values | examples/jsm/loaders/BasisTextureLoader.js | @@ -44,6 +44,7 @@ var BasisTextureLoader = function ( manager ) {
this.workerConfig = {
format: null,
astcSupported: false,
+ bptcSupported: false,
etcSupported: false,
dxtSupported: false,
pvrtcSupported: false,
@@ -76,11 +77,11 @@ BasisTextureLoader.prototype = Object.assign( Object.create( Loader.p... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | docs/api/en/lights/shadows/LightShadow.html | @@ -40,6 +40,10 @@ <h3>[property:Float bias]</h3>
The default is 0. Very tiny adjustments here (in the order of 0.0001) may help reduce artefacts in shadows
</p>
+ <h3>[property:Float normalOffset]</h3>
+ <p>Defines how much the position used to query the shadow map is offset along the object normal.</p>
+ ... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | examples/jsm/objects/Water.js | @@ -120,6 +120,8 @@ var Water = function ( geometry, options ) {
' vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );',
' gl_Position = projectionMatrix * mvPosition;',
+ '#include <beginnormal_vertex>',
+ '#include <defaultnormal_vertex>',
'#include <logdepthbuf_vertex>',
'#include <fog_... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/lights/LightShadow.d.ts | @@ -11,6 +11,7 @@ export class LightShadow {
camera: Camera;
bias: number;
+ normalOffset: number;
radius: number;
mapSize: Vector2;
map: RenderTarget; | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/lights/LightShadow.js | @@ -13,6 +13,7 @@ function LightShadow( camera ) {
this.camera = camera;
this.bias = 0;
+ this.normalOffset = 0;
this.radius = 1;
this.mapSize = new Vector2( 512, 512 ); | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js | @@ -63,19 +63,6 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
- #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
-
- struct DirectionalLightShadow {
- float shadowBias;
- float shadowRadius;
- vec2 shadowMapSize... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js | @@ -6,20 +6,49 @@ export default /* glsl */`
uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
+ struct DirectionalLightShadow {
+ float shadowBias;
+ float shadowNormalOffset;
+ float shadowRadius;
+ vec2 shadowMapSize;
+ }... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js | @@ -6,20 +6,49 @@ export default /* glsl */`
uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
+ struct DirectionalLightShadow {
+ float shadowBias;
+ float shadowNormalOffset;
+ float shadowRadius;
+ vec2 shadowMapSize;
+ };
... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js | @@ -1,12 +1,21 @@
export default /* glsl */`
#ifdef USE_SHADOWMAP
+ #if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0
+
+ // Offsetting the position used for querying occlusion along the world normal can be used to reduce shadow acne.
+ vec3 shadowWorldNormal = inverseTran... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/ShaderLib/shadow_vert.glsl.js | @@ -7,6 +7,13 @@ void main() {
#include <begin_vertex>
#include <project_vertex>
#include <worldpos_vertex>
+
+ #include <beginnormal_vertex>
+ #include <morphnormal_vertex>
+ #include <skinbase_vertex>
+ #include <skinnormal_vertex>
+ #include <defaultnormal_vertex>
+
#include <shadowmap_vertex>
#include <fo... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/UniformsLib.d.ts | @@ -73,6 +73,7 @@ export let UniformsLib: {
value: any[];
properties: {
shadowBias: {};
+ shadowNormalOffset: {};
shadowRadius: {};
shadowMapSize: {};
};
@@ -95,6 +96,7 @@ export let UniformsLib: {
value: any[];
properties: {
shadowBias: {};
+ shadowNormalOffset: {};
s... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/shaders/UniformsLib.js | @@ -119,6 +119,7 @@ var UniformsLib = {
directionalLightShadows: { value: [], properties: {
shadowBias: {},
+ shadowNormalOffset: {},
shadowRadius: {},
shadowMapSize: {}
} },
@@ -138,6 +139,7 @@ var UniformsLib = {
spotLightShadows: { value: [], properties: {
shadowBias: {},
+ shadowNor... | true |
Other | mrdoob | three.js | 892543285102f5f00ea48fa9189b221990f244e1.json | Add shadow map normal offset
This feature offsets the position used to query shadow map occlusion along the object normal. This can be used to reduce shadow acne especially in large scenes. | src/renderers/webgl/WebGLLights.js | @@ -103,6 +103,7 @@ function ShadowUniformsCache() {
case 'DirectionalLight':
uniforms = {
shadowBias: 0,
+ shadowNormalOffset: 0,
shadowRadius: 1,
shadowMapSize: new Vector2()
};
@@ -111,6 +112,7 @@ function ShadowUniformsCache() {
case 'SpotLight':
uniforms = {
... | true |
Other | mrdoob | three.js | f75df95e815b45ca9a807b5563a0234e9798875b.json | fix unique reflectnode | examples/jsm/nodes/accessors/ReflectNode.js | @@ -63,7 +63,7 @@ ReflectNode.prototype.generate = function ( builder, output ) {
if ( isUnique ) {
- builder.addNodeCode( `vec3 reflectVec = ${result};` );
+ builder.addNodeCode( `vec3 reflectVec = ${code};` );
result = 'reflectVec';
@@ -83,7 +83,7 @@ ReflectNode.prototype.generate = functio... | false |
Other | mrdoob | three.js | 41d738ad9677a09f615a919c12495c52802ea030.json | fix ibl normals in reflectnode using StandardNode | examples/jsm/nodes/accessors/NormalNode.js | @@ -87,7 +87,7 @@ NormalNode.prototype.toJSON = function ( meta ) {
};
-NodeLib.addKeyword( 'normal', function () {
+NodeLib.addKeyword( 'viewNormal', function () {
return new NormalNode();
| true |
Other | mrdoob | three.js | 41d738ad9677a09f615a919c12495c52802ea030.json | fix ibl normals in reflectnode using StandardNode | examples/jsm/nodes/accessors/ReflectNode.js | @@ -8,7 +8,7 @@ import { NormalNode } from './NormalNode.js';
function ReflectNode( scope ) {
- TempNode.call( this, 'v3', { unique: true } );
+ TempNode.call( this, 'v3' );
this.scope = scope || ReflectNode.CUBE;
@@ -22,6 +22,12 @@ ReflectNode.prototype = Object.create( TempNode.prototype );
ReflectNode.pr... | true |
Other | mrdoob | three.js | 41d738ad9677a09f615a919c12495c52802ea030.json | fix ibl normals in reflectnode using StandardNode | examples/jsm/nodes/materials/nodes/StandardNode.js | @@ -8,6 +8,7 @@ import {
} from '../../../../../build/three.module.js';
import { Node } from '../../core/Node.js';
+import { ExpressionNode } from '../../core/ExpressionNode.js';
import { ColorNode } from '../../inputs/ColorNode.js';
import { FloatNode } from '../../inputs/FloatNode.js';
import { RoughnessToBlin... | true |
Other | mrdoob | three.js | 57801e6c4693a675c4d96bea86895fe1ba7d3c09.json | fix gizmo overall scale hover | examples/js/controls/TransformControls.js | @@ -792,20 +792,20 @@ THREE.TransformControlsGizmo = function () {
[ new THREE.Line( lineGeometry, matLineBlue ), null, [ 0, - Math.PI / 2, 0 ]]
],
XYZ: [
- [ new THREE.Mesh( new THREE.OctahedronBufferGeometry( 0.1, 0 ), matWhiteTransperent ), [ 0, 0, 0 ], [ 0, 0, 0 ]]
+ [ new THREE.Mesh( new THREE.Octahe... | true |
Other | mrdoob | three.js | 57801e6c4693a675c4d96bea86895fe1ba7d3c09.json | fix gizmo overall scale hover | examples/jsm/controls/TransformControls.js | @@ -817,7 +817,7 @@ var TransformControlsGizmo = function () {
[ new Line( lineGeometry, matLineBlue ), null, [ 0, - Math.PI / 2, 0 ]]
],
XYZ: [
- [ new Mesh( new OctahedronBufferGeometry( 0.1, 0 ), matWhiteTransperent ), [ 0, 0, 0 ], [ 0, 0, 0 ]]
+ [ new Mesh( new OctahedronBufferGeometry( 0.1, 0 ), matW... | true |
Other | mrdoob | three.js | d5a7bb17026ad02f61b4e5a45af3df1db72160ba.json | remove onError callback | examples/webgl_materials_cubemap_mipmaps.html | @@ -40,12 +40,10 @@
return new Promise( function ( resolve, reject) {
- new THREE.CubeTextureLoader().load( urls,function ( cubeTexture ) {
+ new THREE.CubeTextureLoader().load( urls, function ( cubeTexture ) {
resolve( cubeTexture );
- }, function ( error ) {
-
} );
| false |
Other | mrdoob | three.js | 0a837c38c7cd751c8760af1f979c0663af41c4ab.json | fix typo error | examples/webgl_materials_cubemap_mipmaps.html | @@ -28,7 +28,7 @@
init();
animate();
- //load custmized cube texture
+ //load customized cube texture
async function loadCubeTextureWithMipmaps() {
var path = 'textures/cube/angus/'; | false |
Other | mrdoob | three.js | 77fbbe2305a741f2bdf1b18fd6caed7b704527bd.json | remove unused argument width | examples/webgl_materials_cubemap_mipmaps.html | @@ -36,7 +36,7 @@
var mipmaps = [];
var maxLevel = 8;
- async function loadCubeTexture( urls, width ) {
+ async function loadCubeTexture( urls ) {
return new Promise( function ( resolve, reject) {
| false |
Other | mrdoob | three.js | 3c5f1416cc22254e342327378f8917da6257ef32.json | Add TransparancyFactor in FBXLoader | examples/jsm/loaders/FBXLoader.js | @@ -675,6 +675,7 @@ var FBXLoader = ( function () {
break;
case 'TransparentColor':
+ case 'TransparencyFactor':
parameters.alphaMap = self.getTexture( textureMap, child.ID );
parameters.transparent = true;
break; | false |
Other | mrdoob | three.js | c3ae0c88b563fba45827f79ff02111cef755037f.json | Fix THREE.Math.degToRad in example | examples/misc_controls_transform.html | @@ -83,7 +83,7 @@
case 17: // Ctrl
control.setTranslationSnap( 100 );
- control.setRotationSnap( Math.degToRad( 15 ) );
+ control.setRotationSnap( THREE.Math.degToRad( 15 ) );
break;
case 87: // W | false |
Other | mrdoob | three.js | e26a667459dc1b0bc2d0cfea66a044d84bd98f74.json | Remove JSM version of AWDLoader. | examples/jsm/loaders/AWDLoader.d.ts | @@ -1,51 +0,0 @@
-import {
- Bone,
- BufferGeometry,
- Loader,
- LoadingManager,
- Material,
- Matrix4,
- Mesh,
- Object3D,
- Texture
-} from '../../../src/Three';
-
-export class AWDLoader extends Loader {
-
- constructor( manager?: LoadingManager );
- materialFactory: any;
- path: string;
- trunk: Object3D;
-
- getBl... | true |
Other | mrdoob | three.js | e26a667459dc1b0bc2d0cfea66a044d84bd98f74.json | Remove JSM version of AWDLoader. | examples/jsm/loaders/AWDLoader.js | @@ -1,1235 +0,0 @@
-/**
- * Author: Pierre Lepers
- * Date: 09/12/2013 17:21
- */
-
-import {
- Bone,
- BufferAttribute,
- BufferGeometry,
- FileLoader,
- ImageLoader,
- Loader,
- Matrix4,
- Mesh,
- MeshPhongMaterial,
- Object3D,
- Texture
-} from "../../../build/three.module.js";
-
-var AWDLoader = ( function () {
-
-... | true |
Other | mrdoob | three.js | aa05a29eeca32915d8e28565febe789194a04e1d.json | Remove animation loop | examples/webgl_loader_gcode.html | @@ -23,14 +23,14 @@
var camera, scene, renderer;
init();
- animate();
+ render();
function init() {
container = document.createElement( 'div' );
document.body.appendChild( container );
- camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 0.1, 10000 );
... | false |
Other | mrdoob | three.js | f5d10bc88cc029d695adb08828ccf2e6d2d87621.json | Upgrade dat.gui to 0.7.7. | examples/jsm/libs/dat.gui.module.js | @@ -285,7 +285,7 @@ var Common = {
},
isFunction: function isFunction( obj ) {
- return Object.prototype.toString.call( obj ) === '[object Function]';
+ return obj instanceof Function;
}
};
@@ -959,9 +959,10 @@ Object.defineProperty( Color.prototype, 'a', {
Object.defineProperty( Color.prototype, 'hex', {... | false |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/CameraNode.js | @@ -202,6 +202,8 @@ CameraNode.prototype.copy = function ( source ) {
}
+ return this;
+
};
CameraNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/ColorsNode.js | @@ -34,6 +34,8 @@ ColorsNode.prototype.copy = function ( source ) {
this.index = source.index;
+ return this;
+
};
ColorsNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/LightNode.js | @@ -40,6 +40,8 @@ LightNode.prototype.copy = function ( source ) {
this.scope = source.scope;
+ return this;
+
};
LightNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/NormalNode.js | @@ -84,6 +84,8 @@ NormalNode.prototype.copy = function ( source ) {
this.scope = source.scope;
+ return this;
+
};
NormalNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/PositionNode.js | @@ -114,6 +114,8 @@ PositionNode.prototype.copy = function ( source ) {
this.scope = source.scope;
+ return this;
+
};
PositionNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/ResolutionNode.js | @@ -43,6 +43,8 @@ ResolutionNode.prototype.copy = function ( source ) {
this.renderer = source.renderer;
+ return this;
+
};
ResolutionNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/ScreenUVNode.js | @@ -43,6 +43,8 @@ ScreenUVNode.prototype.copy = function ( source ) {
this.resolution = source.resolution;
+ return this;
+
};
ScreenUVNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/accessors/UVNode.js | @@ -36,6 +36,8 @@ UVNode.prototype.copy = function ( source ) {
this.index = source.index;
+ return this;
+
};
UVNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/bsdfs/BlinnExponentToRoughnessNode.js | @@ -29,6 +29,8 @@ BlinnExponentToRoughnessNode.prototype.copy = function ( source ) {
this.blinnExponent = source.blinnExponent;
+ return this;
+
};
BlinnExponentToRoughnessNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/bsdfs/RoughnessToBlinnExponentNode.js | @@ -71,6 +71,8 @@ RoughnessToBlinnExponentNode.prototype.copy = function ( source ) {
this.texture = source.texture;
+ return this;
+
};
RoughnessToBlinnExponentNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/AttributeNode.js | @@ -49,6 +49,8 @@ AttributeNode.prototype.copy = function ( source ) {
this.type = source.type;
+ return this;
+
};
AttributeNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/ConstNode.js | @@ -102,6 +102,8 @@ ConstNode.prototype.copy = function ( source ) {
this.parse( source.src, source.useDefine );
+ return this;
+
};
ConstNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/FunctionCallNode.js | @@ -70,6 +70,8 @@ FunctionCallNode.prototype.copy = function ( source ) {
this.value = source.value;
+ return this;
+
};
FunctionCallNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/FunctionNode.js | @@ -226,6 +226,8 @@ FunctionNode.prototype.copy = function ( source ) {
if ( source.type !== undefined ) this.type = source.type;
+ return this;
+
};
FunctionNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/InputNode.js | @@ -38,6 +38,8 @@ InputNode.prototype.copy = function ( source ) {
if ( source.readonly !== undefined ) this.readonly = source.readonly;
+ return this;
+
};
InputNode.prototype.createJSONNode = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/Node.js | @@ -147,6 +147,8 @@ Node.prototype = {
if ( source.userData !== undefined ) this.userData = JSON.parse( JSON.stringify( source.userData ) );
+ return this;
+
},
createJSONNode: function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/core/VarNode.js | @@ -43,6 +43,8 @@ VarNode.prototype.copy = function ( source ) {
this.type = source.type;
this.value = source.value;
+ return this;
+
};
VarNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/effects/BlurNode.js | @@ -142,6 +142,8 @@ BlurNode.prototype.copy = function ( source ) {
this.blurX = source.blurX;
this.blurY = source.blurY;
+ return this;
+
};
BlurNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/effects/ColorAdjustmentNode.js | @@ -113,6 +113,8 @@ ColorAdjustmentNode.prototype.copy = function ( source ) {
this.adjustment = source.adjustment;
this.method = source.method;
+ return this;
+
};
ColorAdjustmentNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/effects/LuminanceNode.js | @@ -52,6 +52,8 @@ LuminanceNode.prototype.copy = function ( source ) {
this.rgb = source.rgb;
+ return this;
+
};
LuminanceNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/BoolNode.js | @@ -28,6 +28,8 @@ BoolNode.prototype.copy = function ( source ) {
this.value = source.value;
+ return this;
+
};
BoolNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/ColorNode.js | @@ -33,6 +33,8 @@ ColorNode.prototype.copy = function ( source ) {
this.value.copy( source );
+ return this;
+
};
ColorNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/CubeTextureNode.js | @@ -84,6 +84,8 @@ CubeTextureNode.prototype.copy = function ( source ) {
if ( source.bias ) this.bias = source.bias;
+ return this;
+
};
CubeTextureNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/FloatNode.js | @@ -28,6 +28,8 @@ FloatNode.prototype.copy = function ( source ) {
this.value = source.value;
+ return this;
+
};
FloatNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/IntNode.js | @@ -28,6 +28,8 @@ IntNode.prototype.copy = function ( source ) {
this.value = source.value;
+ return this;
+
};
IntNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/Matrix3Node.js | @@ -51,6 +51,8 @@ Matrix3Node.prototype.copy = function ( source ) {
this.value.fromArray( source.elements );
+ return this;
+
};
Matrix3Node.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/Matrix4Node.js | @@ -50,6 +50,8 @@ Matrix4Node.prototype.copy = function ( source ) {
this.scope.value.fromArray( source.elements );
+ return this;
+
};
Matrix4Node.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/RTTNode.js | @@ -135,6 +135,8 @@ RTTNode.prototype.copy = function ( source ) {
this.saveTo = source.saveTo;
+ return this;
+
};
RTTNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/ReflectorNode.js | @@ -67,6 +67,8 @@ ReflectorNode.prototype.copy = function ( source ) {
this.scope.mirror = source.mirror;
+ return this;
+
};
ReflectorNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/TextureNode.js | @@ -89,6 +89,8 @@ TextureNode.prototype.copy = function ( source ) {
if ( source.bias ) this.bias = source.bias;
if ( source.project !== undefined ) this.project = source.project;
+ return this;
+
};
TextureNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/Vector2Node.js | @@ -33,6 +33,8 @@ Vector2Node.prototype.copy = function ( source ) {
this.value.copy( source );
+ return this;
+
};
Vector2Node.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/Vector3Node.js | @@ -33,6 +33,8 @@ Vector3Node.prototype.copy = function ( source ) {
this.value.copy( source );
+ return this;
+
};
Vector3Node.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/inputs/Vector4Node.js | @@ -33,6 +33,8 @@ Vector4Node.prototype.copy = function ( source ) {
this.value.copy( source );
+ return this;
+
};
Vector4Node.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/materials/NodeMaterial.js | @@ -144,6 +144,8 @@ NodeMaterial.prototype.copy = function ( source ) {
}
+ return this;
+
};
NodeMaterial.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/materials/nodes/PhongNode.js | @@ -372,6 +372,8 @@ PhongNode.prototype.copy = function ( source ) {
if ( source.environment ) this.environment = source.environment;
if ( source.environmentAlpha ) this.environmentAlpha = source.environmentAlpha;
+ return this;
+
};
PhongNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/materials/nodes/RawNode.js | @@ -41,6 +41,8 @@ RawNode.prototype.copy = function ( source ) {
this.value = source.value;
+ return this;
+
};
RawNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/materials/nodes/SpriteNode.js | @@ -202,6 +202,8 @@ SpriteNode.prototype.copy = function ( source ) {
if ( source.alpha ) this.alpha = source.alpha;
+ return this;
+
};
SpriteNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/materials/nodes/StandardNode.js | @@ -459,6 +459,8 @@ StandardNode.prototype.copy = function ( source ) {
if ( source.environment ) this.environment = source.environment;
+ return this;
+
};
StandardNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/math/CondNode.js | @@ -99,6 +99,8 @@ CondNode.prototype.copy = function ( source ) {
this.ifNode = source.ifNode;
this.elseNode = source.elseNode;
+ return this;
+
};
CondNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/math/MathNode.js | @@ -243,6 +243,8 @@ MathNode.prototype.copy = function ( source ) {
this.c = source.c;
this.method = source.method;
+ return this;
+
};
MathNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/math/OperatorNode.js | @@ -63,6 +63,8 @@ OperatorNode.prototype.copy = function ( source ) {
this.b = source.b;
this.op = source.op;
+ return this;
+
};
OperatorNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/misc/BumpMapNode.js | @@ -144,6 +144,8 @@ BumpMapNode.prototype.copy = function ( source ) {
this.value = source.value;
this.scale = source.scale;
+ return this;
+
};
BumpMapNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/misc/NormalMapNode.js | @@ -95,6 +95,8 @@ NormalMapNode.prototype.copy = function ( source ) {
this.value = source.value;
this.scale = source.scale;
+ return this;
+
};
NormalMapNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/postprocessing/NodePass.js | @@ -52,6 +52,8 @@ NodePass.prototype.copy = function ( source ) {
this.input = source.input;
+ return this;
+
};
NodePass.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/postprocessing/NodePostProcessing.js | @@ -97,6 +97,8 @@ NodePostProcessing.prototype = {
this.output = source.output;
+ return this;
+
},
toJSON: function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/procedural/CheckerNode.js | @@ -54,6 +54,8 @@ CheckerNode.prototype.copy = function ( source ) {
this.uv = source.uv;
+ return this;
+
};
CheckerNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/procedural/NoiseNode.js | @@ -48,6 +48,8 @@ NoiseNode.prototype.copy = function ( source ) {
this.uv = source.uv;
+ return this;
+
};
NoiseNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/utils/BypassNode.js | @@ -62,6 +62,8 @@ BypassNode.prototype.copy = function ( source ) {
this.code = source.code;
this.value = source.value;
+ return this;
+
};
BypassNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/utils/ColorSpaceNode.js | @@ -295,6 +295,8 @@ ColorSpaceNode.prototype.copy = function ( source ) {
this.input = source.input;
this.method = source.method;
+ return this;
+
};
ColorSpaceNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/utils/JoinNode.js | @@ -78,6 +78,8 @@ JoinNode.prototype.copy = function ( source ) {
}
+ return this;
+
};
JoinNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/utils/SwitchNode.js | @@ -80,6 +80,8 @@ SwitchNode.prototype.copy = function ( source ) {
this.node = source.node;
this.components = source.components;
+ return this;
+
};
SwitchNode.prototype.toJSON = function ( meta ) { | true |
Other | mrdoob | three.js | 451d16f6787156568b5df26365425f71ab9fdb09.json | Fix missing return statement in copy functions | examples/jsm/nodes/utils/TimerNode.js | @@ -75,6 +75,8 @@ TimerNode.prototype.copy = function ( source ) {
this.timeScale = source.timeScale;
+ return this;
+
};
TimerNode.prototype.toJSON = function ( meta ) { | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.