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
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/misc/MorphAnimMesh.d.ts
@@ -9,7 +9,7 @@ import { export class MorphAnimMesh extends Mesh { - constructor( geometry: BufferGeometry | Geometry, material: Material ); + constructor( geometry: BufferGeometry | Geometry, material: Material ); mixer: AnimationMixer; activeAction: AnimationAction | null;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/misc/MorphBlendMesh.d.ts
@@ -7,7 +7,7 @@ import { export class MorphBlendMesh extends Mesh { - constructor( geometry: BufferGeometry | Geometry, material: Material ); + constructor( geometry: BufferGeometry | Geometry, material: Material ); animationsMap: object; animationsList: object[];
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/accessors/CameraNode.d.ts
@@ -10,10 +10,10 @@ export class CameraNode extends TempNode { constructor( scope?: string, camera?: Camera ); scope: string; - near: FloatNode | undefined; - far: FloatNode | undefined; - camera: Camera | undefined; - updateFrame: boolean | undefined; + near: FloatNode | undefined; + far: FloatNode | undefined; ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/core/FunctionNode.d.ts
@@ -15,15 +15,15 @@ export class FunctionNode extends TempNode { nodeType: string; useKeywords: boolean; - inputs: FunctionNodeInput[] | undefined; - includes: object[] | undefined; - extensions: object | undefined; - keywords: object | undefined; + inputs: FunctionNodeInput[] | undefined; + includes: object[] | ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/core/Node.d.ts
@@ -6,10 +6,10 @@ export class Node { uuid: string; name: string; - type: string | undefined; + type: string | undefined; userData: object; isNode: boolean; - frameId: number | undefined; + frameId: number | undefined; analyze( builder: NodeBuilder, settings?: object ): void; analyzeAndFlow( builder: No...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/core/NodeFrame.d.ts
@@ -10,9 +10,9 @@ export class NodeFrame { constructor( time: number ); time: number; id: number; - delta: number | undefined; - renderer: WebGLRenderer | undefined; - renderTexture: Texture | undefined; + delta: number | undefined; + renderer: WebGLRenderer | undefined; + renderTexture: Texture | undefined; ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/core/NodeUniform.d.ts
@@ -10,10 +10,10 @@ export interface NodeUniformParams { export class NodeUniform { constructor( params?: NodeUniformParams ); - name: string | undefined; - type: string | undefined; - node: Node | undefined; - needsUpdate: boolean | undefined; + name: string | undefined; + type: string | undefined; + node: Node |...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/effects/ColorAdjustmentNode.d.ts
@@ -8,7 +8,7 @@ export class ColorAdjustmentNode extends TempNode { constructor( rgb: Node, adjustment?: FloatNode, method?: string ); rgb: Node; - adjustment: FloatNode | undefined; + adjustment: FloatNode | undefined; method: string; nodeType: string;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/inputs/ColorNode.d.ts
@@ -5,7 +5,7 @@ import { NodeBuilder } from '../core/NodeBuilder'; export class ColorNode extends InputNode { - constructor( color: Color | number | string, g?: number, b?: number ); + constructor( color: Color | number | string, g?: number, b?: number ); value: Color; nodeType: string;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/inputs/CubeTextureNode.d.ts
@@ -9,8 +9,8 @@ export class CubeTextureNode extends InputNode { constructor( value: CubeTexture, uv?: Node, bias?: Node ); value: CubeTexture; - uv: Node | undefined; - bias: Node | undefined; + uv: Node | undefined; + bias: Node | undefined; nodeType: string; getTexture( builder: NodeBuilder, output: stri...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/inputs/Vector2Node.d.ts
@@ -5,7 +5,7 @@ import { NodeBuilder } from '../core/NodeBuilder'; export class Vector2Node extends InputNode { - constructor( x: Vector2 | number, y?: number ); + constructor( x: Vector2 | number, y?: number ); value: Vector2; nodeType: string;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/inputs/Vector3Node.d.ts
@@ -5,7 +5,7 @@ import { NodeBuilder } from '../core/NodeBuilder'; export class Vector3Node extends InputNode { - constructor( x: Vector3 | number, y?: number, z?: number ); + constructor( x: Vector3 | number, y?: number, z?: number ); value: Vector3; nodeType: string;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/inputs/Vector4Node.d.ts
@@ -5,7 +5,7 @@ import { NodeBuilder } from '../core/NodeBuilder'; export class Vector4Node extends InputNode { - constructor( x: Vector4 | number, y?: number, z?: number, w?: number ); + constructor( x: Vector4 | number, y?: number, z?: number, w?: number ); value: Vector4; nodeType: string;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/math/MathNode.d.ts
@@ -4,11 +4,11 @@ import { Node } from '../core/Node'; export class MathNode extends TempNode { - constructor( a: Node, bOrMethod: Node | string, cOrMethod?: Node | string, method?: string ); + constructor( a: Node, bOrMethod: Node | string, cOrMethod?: Node | string, method?: string ); a: Node; b: Node | st...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/utils/BypassNode.d.ts
@@ -5,7 +5,7 @@ export class BypassNode extends Node { constructor( code: Node, value?: Node ); code: Node; - value: Node | undefined; + value: Node | undefined; nodeType: string; copy( source: BypassNode ): this;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/utils/ColorSpaceNode.d.ts
@@ -7,7 +7,7 @@ export class ColorSpaceNode extends TempNode { constructor( input: Node, method?: string ); input: Node; - method: string | undefined; + method: string | undefined; nodeType: string; fromEncoding( encoding: number );
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/utils/JoinNode.d.ts
@@ -6,8 +6,8 @@ export class JoinNode extends TempNode { x: Node; y: Node; - z: Node | undefined; - w: Node | undefined; + z: Node | undefined; + w: Node | undefined; nodeType: string; getNumElements(): number;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/nodes/utils/VelocityNode.d.ts
@@ -17,10 +17,10 @@ export class VelocityNode extends Vector3Node { constructor( target: Object3D, params?: VelocityNodeParams ); velocity: Vector3; - moment: Vector3 | undefined; - speed: Vector3 | undefined; - springVelocity: Vector3 | undefined; - lastVelocity: Vector3 | undefined; + moment: Vector3 | undefine...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/jsm/webxr/VRButton.d.ts
@@ -2,10 +2,10 @@ import { WebGLRenderer } from '../../../src/Three'; -export interface WebXROptions { +export interface WebXROptions { referenceSpaceType: string; } export namespace VRButton { - export function createButton( renderer: WebGLRenderer, options?: WebXROptions  ): HTMLElement; + export function ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
examples/webgl_shading_physical.html
@@ -68,7 +68,7 @@ // CUBE CAMERA - cubeCamera = new THREE.CubeCamera( 1, 10000, 128, { encoding: THREE.sRGBEncoding } ); + cubeCamera = new THREE.CubeCamera( 1, 10000, 128, { encoding: THREE.sRGBEncoding } ); // TEXTURES var textureLoader = new THREE.TextureLoader();
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/audio/Audio.d.ts
@@ -19,7 +19,7 @@ export class Audio extends Object3D { loopStart: number; loopEnd: number; offset: number; - duration: number | undefined; + duration: number | undefined; playbackRate: number; isPlaying: boolean; hasPlaybackControl: boolean;
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshDepthMaterial.d.ts
@@ -4,9 +4,9 @@ import { Texture } from './../textures/Texture'; export interface MeshDepthMaterialParameters extends MaterialParameters { map?: Texture | null; - alphaMap?: Texture | null; + alphaMap?: Texture | null; depthPacking?: DepthPackingStrategies; - displacementMap?: Texture | null; + displacementMap?:...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshDistanceMaterial.d.ts
@@ -4,8 +4,8 @@ import { Texture } from './../textures/Texture'; export interface MeshDistanceMaterialParameters extends MaterialParameters { map?: Texture | null; - alphaMap?: Texture | null; - displacementMap?: Texture | null; + alphaMap?: Texture | null; + displacementMap?: Texture | null; displacementScale?:...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshLambertMaterial.d.ts
@@ -7,15 +7,15 @@ export interface MeshLambertMaterialParameters extends MaterialParameters { color?: Color | string | number; emissive?: Color | string | number; emissiveIntensity?: number; - emissiveMap?: Texture | null; - map?: Texture | null; - lightMap?: Texture | null; + emissiveMap?: Texture | null; + map?...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshMatcapMaterial.d.ts
@@ -7,17 +7,17 @@ import { NormalMapTypes } from '../constants'; export interface MeshMatcapMaterialParameters extends MaterialParameters { color?: Color | string | number; - matcap?: Texture | null; - map?: Texture | null; - bumpMap?: Texture | null; + matcap?: Texture | null; + map?: Texture | null; + bumpMap?: ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshNormalMaterial.d.ts
@@ -5,12 +5,12 @@ import { NormalMapTypes } from '../constants'; export interface MeshNormalMaterialParameters extends MaterialParameters { - bumpMap?: Texture | null; + bumpMap?: Texture | null; bumpScale?: number; - normalMap?: Texture | null; + normalMap?: Texture | null; normalMapType?: NormalMapTypes; n...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshPhongMaterial.d.ts
@@ -10,25 +10,25 @@ export interface MeshPhongMaterialParameters extends MaterialParameters { specular?: Color | string | number; shininess?: number; opacity?: number; - map?: Texture | null; - lightMap?: Texture | null; + map?: Texture | null; + lightMap?: Texture | null; lightMapIntensity?: number; - aoMap?: ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshPhysicalMaterial.d.ts
@@ -15,7 +15,7 @@ export interface MeshPhysicalMaterialParameters sheen?: Color; clearcoatNormalScale?: Vector2; - clearcoatNormalMap?: Texture | null; + clearcoatNormalMap?: Texture | null; } export class MeshPhysicalMaterial extends MeshStandardMaterial {
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshStandardMaterial.d.ts
@@ -8,26 +8,26 @@ export interface MeshStandardMaterialParameters extends MaterialParameters { color?: Color | string | number; roughness?: number; metalness?: number; - map?: Texture | null; - lightMap?: Texture | null; + map?: Texture | null; + lightMap?: Texture | null; lightMapIntensity?: number; - aoMap?: ...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/MeshToonMaterial.d.ts
@@ -10,25 +10,25 @@ export interface MeshToonMaterialParameters extends MaterialParameters { specular?: Color | string | number; shininess?: number; opacity?: number; - gradientMap?: Texture | null; - map?: Texture | null; - lightMap?: Texture | null; + gradientMap?: Texture | null; + map?: Texture | null; + ligh...
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/PointsMaterial.d.ts
@@ -26,7 +26,7 @@ export class MultiMaterial extends Material { export interface PointsMaterialParameters extends MaterialParameters { color?: Color | string | number; map?: Texture | null; - alphaMap?: Texture | null; + alphaMap?: Texture | null; size?: number; sizeAttenuation?: boolean; }
true
Other
mrdoob
three.js
8aeac464bf796f15bd17b46312c3e5436b939d43.json
Remove non-breaking space from code.
src/materials/SpriteMaterial.d.ts
@@ -4,8 +4,8 @@ import { MaterialParameters, Material } from './Material'; export interface SpriteMaterialParameters extends MaterialParameters { color?: Color | string | number; - map?: Texture | null; - alphaMap?: Texture | null; + map?: Texture | null; + alphaMap?: Texture | null; rotation?: number; sizeAtt...
true
Other
mrdoob
three.js
14d2c6f8b07e3ca0b3897f6926e04ccdf99007a3.json
Fix MaterialCreator.setCrossOrigin d.ts signature
examples/jsm/loaders/MTLLoader.d.ts
@@ -87,7 +87,7 @@ export namespace MTLLoader { wrap : Wrapping; crossOrigin : string; - setCrossOrigin( value: string ) : void; + setCrossOrigin( value: string ) : this; setManager( value: LoadingManager ) : void; setMaterials( materialsInfo: {[key: string]: MaterialInfo} ) : void; convert( materials...
false
Other
mrdoob
three.js
a9f43b83b9ac50b5eea047fa0c2359f79ef9c2a3.json
Improve readability of computeTangents()
examples/js/utils/BufferGeometryUtils.js
@@ -67,42 +67,20 @@ THREE.BufferGeometryUtils = { uvB.fromArray( uvs, b * 2 ); uvC.fromArray( uvs, c * 2 ); - var x1 = vB.x - vA.x; - var x2 = vC.x - vA.x; + vB.sub( vA ); + vC.sub( vA ); - var y1 = vB.y - vA.y; - var y2 = vC.y - vA.y; + uvB.sub( uvA ); + uvC.sub( uvA ); - var z1 = vB.z ...
true
Other
mrdoob
three.js
a9f43b83b9ac50b5eea047fa0c2359f79ef9c2a3.json
Improve readability of computeTangents()
examples/jsm/utils/BufferGeometryUtils.js
@@ -79,42 +79,20 @@ var BufferGeometryUtils = { uvB.fromArray( uvs, b * 2 ); uvC.fromArray( uvs, c * 2 ); - var x1 = vB.x - vA.x; - var x2 = vC.x - vA.x; + vB.sub( vA ); + vC.sub( vA ); - var y1 = vB.y - vA.y; - var y2 = vC.y - vA.y; + uvB.sub( uvA ); + uvC.sub( uvA ); - var z1 = vB.z - ...
true
Other
mrdoob
three.js
c6af18d61f4cec13b40d07a7170d2ec8c170e160.json
Replace non-breaking with regular space
src/renderers/webgl/WebGLProgram.js
@@ -120,7 +120,7 @@ function generateExtensions( extensions, parameters, rendererExtensions ) { extensions = extensions || {}; var chunks = [ - ( extensions.derivatives || parameters.envMapCubeUV || parameters.bumpMap || parameters.tangentSpaceNormalMap || parameters.clearcoatNormalMap || parameters.flatShading ...
false
Other
mrdoob
three.js
447d9dd95897527b504ace0b173056a30f3fe59e.json
Remove extra scene parameter from jsm version
examples/jsm/renderers/CSS2DRenderer.js
@@ -109,7 +109,7 @@ var CSS2DRenderer = function () { for ( var i = 0, l = object.children.length; i < l; i ++ ) { - renderObject( object.children[ i ], scene, camera ); + renderObject( object.children[ i ], camera ); }
false
Other
mrdoob
three.js
8d44d2619dd4fe319ab371643e5b4ddd518beded.json
Move changes from jsm to js version
examples/js/renderers/CSS2DRenderer.js
@@ -32,6 +32,8 @@ THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject; THREE.CSS2DRenderer = function () { + var _this = this; + var _width, _height; var _widthHalf, _heightHalf; @@ -70,10 +72,12 @@ THREE.CSS2DRenderer = function () { }; - var renderObject = function ( object, camera ) { + var ...
true
Other
mrdoob
three.js
8d44d2619dd4fe319ab371643e5b4ddd518beded.json
Move changes from jsm to js version
examples/jsm/renderers/CSS2DRenderer.js
@@ -38,8 +38,6 @@ CSS2DObject.prototype.constructor = CSS2DObject; var CSS2DRenderer = function () { - var _this = this; - var _width, _height; var _widthHalf, _heightHalf; @@ -78,12 +76,10 @@ var CSS2DRenderer = function () { }; - var renderObject = function ( object, scene, camera ) { + var renderObj...
true
Other
mrdoob
three.js
e66acabfd373d8d296f2bfac05d96112da021c72.json
Remove unused numXxxx members of WebGLLights
src/renderers/webgl/WebGLLights.d.ts
@@ -30,10 +30,6 @@ export class WebGLLights { pointShadowMap: Array<any>; pointShadowMatrix: Array<any>; hemi: Array<any>; - - numDirectionalShadows: number; - numPointShadows: number; - numSpotShadows: number; }; get( light: any ): any;
true
Other
mrdoob
three.js
e66acabfd373d8d296f2bfac05d96112da021c72.json
Remove unused numXxxx members of WebGLLights
src/renderers/webgl/WebGLLights.js
@@ -142,10 +142,6 @@ function WebGLLights() { pointShadowMatrix: [], hemi: [], - numDirectionalShadows: - 1, - numPointShadows: - 1, - numSpotShadows: - 1 - }; for ( var i = 0; i < 9; i ++ ) state.probe.push( new Vector3() );
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/js/libs/three-csm.module.js
@@ -1,531 +0,0 @@ -import { Vector3, ShaderChunk, DirectionalLight, Vector2, LineBasicMaterial, Object3D, Geometry, Line } from '../../../build/three.module.js'; - -class FrustumVertex { - constructor(x, y, z) { - this.x = x || 0; - this.y = y || 0; - this.z = z || 0; - } - - fromLerp(v1, v2, amount) { - this.x = (...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/CSM.js
@@ -0,0 +1,264 @@ +import * as THREE from '../../../build/three.module.js'; +import Frustum from './Frustum.js'; +import FrustumBoundingBox from './FrustumBoundingBox.js'; +import Shader from './Shader.js'; + +export default class CSM { + constructor(data) { + data = data || {}; + + this.camera = data.camera; + this...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/Frustum.js
@@ -0,0 +1,92 @@ +import * as THREE from '../../../build/three.module.js'; +import FrustumVertex from './FrustumVertex.js'; +import {toRad} from './Utils.js'; + +export default class Frustum { + constructor(data) { + data = data || {}; + + this.fov = data.fov || 70; + this.near = data.near || 0.1; + this.far = data...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/FrustumBoundingBox.js
@@ -0,0 +1,65 @@ +export default class FrustumBoundingBox { + constructor() { + this.min = { + x: 0, + y: 0, + z: 0 + }; + this.max = { + x: 0, + y: 0, + z: 0 + }; + } + + fromFrustum(frustum) { + const vertices = []; + + for(let i = 0; i < 4; i++) { + vertices.push(frustum.vertices.near[i]); + ve...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/FrustumVertex.js
@@ -0,0 +1,15 @@ +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) * v1.y + amount * v2.y; + this.z = (1 - amount) * v1.z + amount * v2.z...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/Shader.js
@@ -0,0 +1,94 @@ +import * as THREE from '../../../build/three.module.js'; + +export default { + lights_fragment_begin: ` +GeometricContext geometry; +geometry.position = - vViewPosition; +geometry.normal = normal; +geometry.viewDir = normalize( vViewPosition ); +#ifdef CLEARCOAT + geometry.clearcoatNormal = clearcoatN...
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/jsm/csm/Utils.js
@@ -0,0 +1,3 @@ +export function toRad(degrees) { + return degrees * Math.PI / 180; +} \ No newline at end of file
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
examples/webgl_cascadedshadowmaps.html
@@ -20,7 +20,7 @@ import { OrbitControls } from './jsm/controls/OrbitControls.js'; import { GUI } from './jsm/libs/dat.gui.module.js'; - import * as CSM from './js/libs/three-csm.module.js'; + import * as CSM from './jsm/csm/CSM.js'; var renderer, scene, camera, controls, csm;
true
Other
mrdoob
three.js
90b50ac1d846cd06ee41a904039203178e9a5d37.json
Use source files instead of bundle
utils/modularize.js
@@ -58,8 +58,6 @@ var files = [ { path: 'interactive/SelectionBox.js', dependencies: [], ignoreList: [] }, { path: 'interactive/SelectionHelper.js', dependencies: [], ignoreList: [] }, - { path: 'libs/three-csm.module.js', dependencies: [], ignoreList: [] }, - { path: 'lights/LightProbeGenerator.js', dependenci...
true
Other
mrdoob
three.js
4c7d6f467a2a44ec18612692498932379f10472d.json
add example in file list
examples/files.js
@@ -159,6 +159,7 @@ var files = { "webgl_materials_envmaps", "webgl_materials_envmaps_exr", "webgl_materials_envmaps_hdr", + "webgl_materials_envmaps_hdr_nodes", "webgl_materials_envmaps_parallax", "webgl_materials_grass", "webgl_materials_lightmap",
true
Other
mrdoob
three.js
4c7d6f467a2a44ec18612692498932379f10472d.json
add example in file list
examples/webgl_materials_envmaps_hdr_nodes.html
@@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> - <title>threejs webgl - materials - hdr environment mapping</title> + <title>threejs webgl - node material - hdr environment mapping</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0,...
true
Other
mrdoob
three.js
529b619de444a4e5545a40ae675e42b893c31106.json
add euler unittests
test/unit/src/math/Euler.tests.js
@@ -70,34 +70,104 @@ export default QUnit.module( 'Maths', () => { } ); // STATIC STUFF - QUnit.todo( "RotationOrders", ( assert ) => { + QUnit.test( "RotationOrders", ( assert ) => { - assert.ok( false, "everything's gonna be alright" ); + assert.ok( Array.isArray( Euler.RotationOrders ), "Passed!" ); ...
false
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/accessors/ReflectNode.js
@@ -15,6 +15,7 @@ function ReflectNode( scope ) { ReflectNode.CUBE = 'cube'; ReflectNode.SPHERE = 'sphere'; ReflectNode.VECTOR = 'vector'; +ReflectNode.VECTOR2 = 'vector2'; ReflectNode.prototype = Object.create( TempNode.prototype ); ReflectNode.prototype.constructor = ReflectNode; @@ -50,6 +51,14 @@ ReflectNode...
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/core/Node.js
@@ -54,6 +54,7 @@ Node.prototype = { var data = { result: this.build( builder.addFlow( settings.slot, settings.cache, settings.context ), output ) }; data.code = builder.clearNodeCode(); + data.extra = builder.context.extra; builder.removeFlow();
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/core/NodeBuilder.js
@@ -13,6 +13,8 @@ import { Vector3Node } from '../inputs/Vector3Node.js'; import { Vector4Node } from '../inputs/Vector4Node.js'; import { TextureNode } from '../inputs/TextureNode.js'; import { CubeTextureNode } from '../inputs/CubeTextureNode.js'; +import { TextureCubeNode } from '../misc/TextureCubeNode.js'; + ...
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/materials/nodes/StandardNode.js
@@ -370,6 +370,12 @@ StandardNode.prototype.build = function ( builder ) { output.push( "radiance += " + environment.result + ";" ); + if ( environment.extra.irradiance ) { + + output.push( "irradiance += " + environment.extra.irradiance + ";" ); + + } + } output.push(
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/misc/TextureCubeNode.js
@@ -3,46 +3,71 @@ */ import { TempNode } from '../core/TempNode.js'; +import { FloatNode } from '../inputs/FloatNode.js'; +import { ExpressionNode } from '../core/ExpressionNode.js'; import { TextureCubeUVNode } from './TextureCubeUVNode.js'; +import { ReflectNode } from '../accessors/ReflectNode.js'; import { C...
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/js/nodes/utils/ColorSpaceNode.js
@@ -4,15 +4,17 @@ import { TempNode } from '../core/TempNode.js'; import { ConstNode } from '../core/ConstNode.js'; +import { FloatNode } from '../inputs/FloatNode.js'; import { FunctionNode } from '../core/FunctionNode.js'; +import { ExpressionNode } from '../core/ExpressionNode.js'; function ColorSpaceNode( i...
true
Other
mrdoob
three.js
d254847f7b290e551cdbdaec3fc7020fc6889361.json
fix TextureCubeNode and new features
examples/webgl_materials_envmaps_nodes.html
@@ -69,8 +69,7 @@ var container, stats; var camera, scene, renderer, controls; - var torusMesh, planeMesh; - var nodeMaterial; + var torusMesh, torusMeshNode, planeMesh; var ldrCubeRenderTarget, hdrCubeRenderTarget, rgbmCubeRenderTarget; var ldrCubeMap, hdrCubeMap, rgbmCubeMap; @@ -94,31 +93,2...
true
Other
mrdoob
three.js
a58f98edd316dfea85cb477071da9362df21ab74.json
remove unneccessary assignement
examples/js/geometries/LightningStrike.js
@@ -831,8 +831,7 @@ THREE.LightningStrike.prototype.createDefaultSubrayCreationCallbacks = function var childSubraySeed = random1() * ( currentCycle + 1 ); var isActive = phase % period <= dutyCycle * period; - - probability = lightningStrike.subrayProbability; + var probability = 0; if ( isActive ) ...
true
Other
mrdoob
three.js
a58f98edd316dfea85cb477071da9362df21ab74.json
remove unneccessary assignement
examples/jsm/geometries/LightningStrike.js
@@ -841,8 +841,7 @@ LightningStrike.prototype.createDefaultSubrayCreationCallbacks = function () { var childSubraySeed = random1() * ( currentCycle + 1 ); var isActive = phase % period <= dutyCycle * period; - - probability = lightningStrike.subrayProbability; + var probability = 0; if ( isActive ) {
true
Other
mrdoob
three.js
9d0f2651c22183341fb694f8a4796f7293be0f19.json
remove LGTM Errors
examples/js/loaders/XLoader.js
@@ -204,7 +204,7 @@ THREE.XLoader = ( function () { classCallCheck( this, XLoader ); this.debug = false; - this.manager = manager !== undefined ? manager : new THREE.DefaultLoadingManager(); + this.manager = manager !== undefined ? manager : THREE.DefaultLoadingManager; this.texloader = new THREE.Text...
true
Other
mrdoob
three.js
9d0f2651c22183341fb694f8a4796f7293be0f19.json
remove LGTM Errors
examples/jsm/loaders/XLoader.js
@@ -226,7 +226,7 @@ var XLoader = ( function () { classCallCheck( this, XLoader ); this.debug = false; - this.manager = manager !== undefined ? manager : new DefaultLoadingManager(); + this.manager = manager !== undefined ? manager : DefaultLoadingManager; this.texloader = new TextureLoader( this.mana...
true
Other
mrdoob
three.js
e1bfbac95bcba147debae2c51d921d7ea0e24833.json
remove functions from closures in Color
src/math/Color.js
@@ -42,6 +42,29 @@ function Color( r, g, b ) { } +function hue2rgb( p, q, t ) { + + if ( t < 0 ) t += 1; + if ( t > 1 ) t -= 1; + if ( t < 1 / 6 ) return p + ( q - p ) * 6 * t; + if ( t < 1 / 2 ) return q; + if ( t < 2 / 3 ) return p + ( q - p ) * 6 * ( 2 / 3 - t ); + return p; + +} + +function SRGBToLinear( c ) {...
false
Other
mrdoob
three.js
8f43ad2e7f84e630ee775f960e1f864ca13de3b9.json
add modularized VRMLLoader
examples/jsm/loaders/VRMLLoader.js
@@ -1893,7 +1893,7 @@ var VRMLLoader = ( function () { // an index of -1 indicates that the current face has ended and the next one begins - if ( index[ i + 3 ] === - 1 ) { + if ( index[ i + 3 ] === - 1 || i + 3 >= l ) { i += 3; start = i + 1; @@ -1924,7 +1924,7 @@ var VRMLLoader = ( f...
false
Other
mrdoob
three.js
76d1e9d1b95633b52228d595b878052f41e8fed8.json
Fix parsing of CoordIndex when not ending with -1 According to [1](http://www.graphics.stanford.edu/courses/cs248-98-fall/Assignments/Assignment3/VRML2_Specification/spec/part1/nodesRef.html#IndexedFaceSet) 'The last face may (but does not have to be) followed by a -1.'
examples/js/loaders/VRMLLoader.js
@@ -1860,7 +1860,7 @@ THREE.VRMLLoader = ( function () { // an index of -1 indicates that the current face has ended and the next one begins - if ( index[ i + 3 ] === - 1 ) { + if ( index[ i + 3 ] === - 1 || i + 3 >= l ) { i += 3; start = i + 1; @@ -1891,7 +1891,7 @@ THREE.VRMLLoader =...
false
Other
mrdoob
three.js
9b7de2df47f49d3c0895039b21ea32750928e587.json
Remove cache from Array of Vectors uniforms
src/renderers/webgl/WebGLUniforms.js
@@ -523,41 +523,26 @@ function setValue1iv( gl, v ) { function setValueV2a( gl, v ) { - var cache = this.cache; var data = flatten( v, this.size, 2 ); - if ( arraysEqual( cache, data ) ) return; - gl.uniform2fv( this.addr, data ); - this.updateCache( data ); - } function setValueV3a( gl, v ) { - var ...
false
Other
mrdoob
three.js
92b3f3a6d08be690053ad1689266931ec7278f67.json
Remove cache from Array of Textures uniforms
src/renderers/webgl/WebGLUniforms.js
@@ -590,17 +590,11 @@ function setValueM4a( gl, v ) { function setValueT1a( gl, v, textures ) { - var cache = this.cache; var n = v.length; var units = allocTexUnits( textures, n ); - if ( arraysEqual( cache, units ) === false ) { - - gl.uniform1iv( this.addr, units ); - copyArray( cache, units ); - - } ...
false
Other
mrdoob
three.js
310bd2b38764b33f3c61820b4b7aecef86ad3c74.json
Remove cache from Array of Matrices uniforms
src/renderers/webgl/WebGLUniforms.js
@@ -564,41 +564,26 @@ function setValueV4a( gl, v ) { function setValueM2a( gl, v ) { - var cache = this.cache; var data = flatten( v, this.size, 4 ); - if ( arraysEqual( cache, data ) ) return; - gl.uniformMatrix2fv( this.addr, false, data ); - this.updateCache( data ); - } function setValueM3a( gl, v...
false
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/AxesHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/Box3Helper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/BoxHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/CameraHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/FaceNormalsHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/GridHelper.html
@@ -8,8 +8,8 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:Line] &rarr; - + [page:Object3D] &rarr; [page:Line] &rarr; + <h1>[name]</h1> <p class="desc">The GridHelper is an object to define grids. Grids are two-dimensional arrays of lines.</p>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/PlaneHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:LineSegments] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/PointLightHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:Mesh] &rarr; + [page:Object3D] &rarr; [page:Mesh] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/PolarGridHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:Line] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/helpers/VertexNormalsHelper.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:Line] &rarr; + [page:Object3D] &rarr; [page:Line] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
4ebaeb20e31d0d4109c9999c2acce28b33831d5c.json
Update remaining issues
docs/api/en/materials/RawShaderMaterial.html
@@ -8,7 +8,7 @@ <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> - [page:ShaderMaterial] &rarr; + [page:Material] &rarr; [page:ShaderMaterial] &rarr; <h1>[name]</h1>
true
Other
mrdoob
three.js
c9bf463989f1e27eaac9e558cea66dbdcb2d11e3.json
Fix documentation related to MTLLoader materials MTLLoader returns materials as MTLLoader.MaterialCreator, not as an array, and this is the type that OBJLoader.setMaterials takes as a parameter.
docs/examples/loaders/MTLLoader.html
@@ -94,7 +94,7 @@ <h3>[method:MTLLoaderMaterialCreator parse]( [param:String text, param:String pa [page:String path] — The path to the MTL file. </p> <p> - Parse a <em>mtl</em> text structure and return a [page:MTLLoaderMaterialCreator] instance.<br /> + Parse a <em>mtl</em> text structure and return a [...
true
Other
mrdoob
three.js
c9bf463989f1e27eaac9e558cea66dbdcb2d11e3.json
Fix documentation related to MTLLoader materials MTLLoader returns materials as MTLLoader.MaterialCreator, not as an array, and this is the type that OBJLoader.setMaterials takes as a parameter.
docs/examples/loaders/OBJLoader.html
@@ -89,12 +89,12 @@ <h3>[method:Object3D parse]( [param:String text] )</h3> If an <em>obj</em> object or group uses multiple materials while declaring faces, geometry groups and an array of materials are used. </p> - <h3>[method:OBJLoader setMaterials]( [param:Array materials] )</h3> + <h3>[method:OBJLoader s...
true
Other
mrdoob
three.js
789f648d85ba6acef485d6ded83514affc2de31d.json
fix code example
docs/api/en/helpers/BoxHelper.html
@@ -30,23 +30,30 @@ <h2>Example</h2> <code> // Creating the object whose bounding box we want to compute var sphereGeom = new THREE.SphereGeometry(); - var sphereObject = new THREE.Mesh( sphereGeom, new THREE.MeshBasicMaterial( 0xff0000 ) ); + var sphereObject = new THREE.Mesh( + sphereGeom, + new THRE...
false
Other
mrdoob
three.js
6dca3f00903117704898a799552b6ffad34f709d.json
Upgrade dev dependencies
package-lock.json
@@ -1,6 +1,6 @@ { "name": "three", - "version": "0.102.1", + "version": "0.104.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -30,6 +30,12 @@ "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", "dev": true },...
true
Other
mrdoob
three.js
6dca3f00903117704898a799552b6ffad34f709d.json
Upgrade dev dependencies
package.json
@@ -56,13 +56,13 @@ "homepage": "https://threejs.org/", "devDependencies": { "concurrently": "^4.1.0", - "eslint": "^5.15.0", + "eslint": "^5.16.0", "eslint-config-mdcs": "^4.2.3", "eslint-plugin-html": "^5.0.3", - "google-closure-compiler": "20190215.0.2", + "google-closure-compiler": ...
true
Other
mrdoob
three.js
aed16bcf5b585bad668a23fdca81bcb0322d3017.json
correct box3 description
docs/api/en/math/Box3.html
@@ -12,8 +12,7 @@ <h1>[name]</h1> <p class="desc"> Represents a box or cube in 3D space. The main purpose of this is to represent - the [link:https://en.wikipedia.org/wiki/Minimum_bounding_box Minimum Bounding Boxes] - for objects. + the world-axis-aligned bounding boxes for objects, which are used for f...
false
Other
mrdoob
three.js
13bb3315c5b0e74f3b4251b8833f1f04f3c64387.json
change minimum to axis-aligned bounding boxes
docs/api/en/helpers/BoxHelper.html
@@ -14,7 +14,7 @@ <h1>[name]</h1> <p class="desc"> Helper object to show the world-axis-aligned bounding box around an object. - It can be used in synergy with [page:Box3] items in order to easily compute the [link:https://en.wikipedia.org/wiki/Minimum_bounding_box Minimum Bounding Boxes] for objects, and u...
false
Other
mrdoob
three.js
469b9679049419329e7d17479875c6db00ee95e8.json
fix typos in code example
docs/api/en/helpers/BoxHelper.html
@@ -34,20 +34,20 @@ <h2>Example</h2> var sphereObject = new THREE.Mesh( sphereGeom, new THREE.MeshBasicMaterial( 0xff0000 ) ); // Creating the helper and displaying it in the scene - var helper = new THREE.BoxHelper( object, 0xffff00 ); + var helper = new THREE.BoxHelper( sphereObject, 0xffff00 ); scene.ad...
false
Other
mrdoob
three.js
11721f4feec1c181380d44e7d8415ff62199ee2a.json
improve docs for BoxHelper
docs/api/en/helpers/BoxHelper.html
@@ -13,7 +13,8 @@ <h1>[name]</h1> <p class="desc"> - Helper object to show the world-axis-aligned bounding box around an object. + Helper object to show the world-axis-aligned bounding box around an object. + It can be used to work with [page:Box3] items in order to easily compute the [link:https://en.wi...
false
Other
mrdoob
three.js
11ae6232065d52fb0412172bf1f5014ae5023efc.json
Add comment to WebGLBindingStates
src/renderers/webgl/WebGLBindingStates.js
@@ -162,6 +162,9 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) { } + // If we sacrifice some BufferGeometry/Attribute API flexibility + // needsUpdate() and saveCache() can be much simpler. See #16287 + function needsUpdate( geometry ) { var cachedAttributes = currentState.attr...
false
Other
mrdoob
three.js
7e3c98a138476411472700d48fde3e4a6f7af3d3.json
Update LOD documents
docs/api/en/objects/LOD.html
@@ -55,9 +55,9 @@ <h2>Properties</h2> <h3>[property:boolean autoUpdate]</h3> <p> - Default is true. If set, then the renderer calls [page:.update] every frame. - When it isn't, then you have to manually call by yourself in the render loop - for levels of detail to be updated dynamically. + Whether the LOD o...
true
Other
mrdoob
three.js
7e3c98a138476411472700d48fde3e4a6f7af3d3.json
Update LOD documents
docs/api/zh/objects/LOD.html
@@ -53,9 +53,9 @@ <h2>属性</h2> <h3>[property:boolean autoUpdate]</h3> <p> - Default is true. If set, then the renderer calls [page:.update] every frame. - When it isn't, then you have to manually call by yourself in the render loop - for levels of detail to be updated dynamically. + Whether the LOD object is...
true
Other
mrdoob
three.js
a03fdbedeacb5c39352eae7d90bf529cc8d517b1.json
Improve inline comments
examples/webgl_materials_physical_transparency.html
@@ -96,8 +96,8 @@ envMap: hdrCubeRenderTarget.texture, envMapIntensity: params.envMapIntensity, depthWrite: false, - opacity: 1, // set to 1 when transparency is non-zero - transparency: params.transparency, + transparency: params.transparency, // use material.transparency for glass materi...
false
Other
mrdoob
three.js
74d0bca4fa8c78ea00b1132f3c5f03b89d3d1887.json
Remove unused FrustumBoundingBox file
examples/jsm/csm/FrustumBoundingBox.js
@@ -1,83 +0,0 @@ -/** - * @author vHawk / https://github.com/vHawk/ - */ - -export default class FrustumBoundingBox { - - constructor() { - - this.min = { - x: 0, - y: 0, - z: 0 - }; - this.max = { - x: 0, - y: 0, - z: 0 - }; - - } - - fromFrustum( frustum ) { - - const vertices = []; - - for ( let i ...
false
Other
mrdoob
three.js
b28423f06196d2dbac84a3653aad8897af8558fc.json
replace use of FrustumBoundingBox with Box3
examples/jsm/csm/CSM.js
@@ -13,17 +13,18 @@ import { BufferGeometry, BufferAttribute, Line, - Matrix4 + Matrix4, + Box3 } from '../../../build/three.module.js'; import Frustum from './Frustum.js'; -import FrustumBoundingBox from './FrustumBoundingBox.js'; import Shader from './Shader.js'; const _cameraToLightMatrix = new Matrix4()...
false
Other
mrdoob
three.js
52ef30f65d0ab028c0b24ff60ef3d1ada7b54668.json
Add fade between cascades
examples/jsm/csm/Shader.js
@@ -78,20 +78,30 @@ IncidentLight directLight; DirectionalLightShadow directionalLightShadow; #endif - #pragma unroll_loop for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { directionalLight = directionalLights[ i ]; getDirectionalDirectLightIrradiance( directionalLight, geometry, directLight ); - #if defin...
false
Other
mrdoob
three.js
df1c4369ebe7201eb6e97504b4acc574090450fc.json
Use the same coding style as the other lines
examples/js/postprocessing/RenderPass.js
@@ -29,16 +29,16 @@ THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype var oldAutoClear = renderer.autoClear; renderer.autoClear = false; - var oldOverrideMaterial = this.scene.overrideMaterial; + var oldClearColor, oldClearAlpha, oldOverrideMaterial; if ( this.overrideMateri...
true
Other
mrdoob
three.js
df1c4369ebe7201eb6e97504b4acc574090450fc.json
Use the same coding style as the other lines
examples/jsm/postprocessing/RenderPass.js
@@ -32,9 +32,16 @@ RenderPass.prototype = Object.assign( Object.create( Pass.prototype ), { var oldAutoClear = renderer.autoClear; renderer.autoClear = false; - this.scene.overrideMaterial = this.overrideMaterial; - var oldClearColor, oldClearAlpha; + var oldClearColor, oldClearAlpha, oldOverrideMaterial; ...
true
Other
mrdoob
three.js
2a52d5246bd82bfe6309f8f538c9b79136affa9f.json
Use .union() instead
src/math/Box3.js
@@ -262,8 +262,7 @@ Object.assign( Box3.prototype, { _box.copy( geometry.boundingBox ); _box.applyMatrix4( object.matrixWorld ); - this.expandByPoint( _box.min ); - this.expandByPoint( _box.max ); + this.union( _box ); }
false