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
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
examples/webgl2_multisampled_renderbuffers.html
@@ -127,7 +127,7 @@ // const size = renderer.getDrawingBufferSize( new THREE.Vector2() ); - const renderTarget = new THREE.WebGLMultisampleRenderTarget( size.width, size.height ); + const renderTarget = new THREE.WebGLRenderTarget( size.width, size.height, { samples: 4 } ); const renderPass = n...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/Three.Legacy.js
@@ -1975,3 +1975,12 @@ export function ImmediateRenderObject() { console.error( 'THREE.ImmediateRenderObject has been removed.' ); } + +export function WebGLMultisampleRenderTarget( width, height, options ) { + + console.error( 'THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and se...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/Three.js
@@ -1,7 +1,6 @@ import { REVISION } from './constants.js'; export { WebGLMultipleRenderTargets } from './renderers/WebGLMultipleRenderTargets.js'; -export { WebGLMultisampleRenderTarget } from './renderers/WebGLMultisampleRenderTarget.js'; export { WebGLCubeRenderTarget } from './renderers/WebGLCubeRenderTarget.js...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/renderers/WebGLMultisampleRenderTarget.js
@@ -1,33 +0,0 @@ -import { WebGLRenderTarget } from './WebGLRenderTarget.js'; - -class WebGLMultisampleRenderTarget extends WebGLRenderTarget { - - constructor( width, height, options = {} ) { - - super( width, height, options ); - - this.samples = 4; - - this.ignoreDepthForMultisampleCopy = options.ignoreDepth !== ...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/renderers/WebGLRenderTarget.js
@@ -37,6 +37,8 @@ class WebGLRenderTarget extends EventDispatcher { this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null; + this.samples = options.samples !== undefined ? options.samples : 0; + } setTexture( texture ) { @@ -97,6 +99,8 @@ class WebGLRenderTarget extends Even...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/renderers/WebGLRenderer.js
@@ -31,7 +31,6 @@ import { WebGLGeometries } from './webgl/WebGLGeometries.js'; import { WebGLIndexedBufferRenderer } from './webgl/WebGLIndexedBufferRenderer.js'; import { WebGLInfo } from './webgl/WebGLInfo.js'; import { WebGLMorphtargets } from './webgl/WebGLMorphtargets.js'; -import { WebGLMultisampleRenderTarge...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/renderers/webgl/WebGLTextures.js
@@ -10,8 +10,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, const maxCubemapSize = capabilities.maxCubemapSize; const maxTextureSize = capabilities.maxTextureSize; const maxSamples = capabilities.maxSamples; - const hasMultisampledRenderToTexture = extensions.has( 'WEBGL_mul...
true
Other
mrdoob
three.js
48b05d3500acc084df50be9b4c90781ad9b8cb17.json
Remove WebGLMultisampleRenderTarget. (#23455) * Remove WebGLMultisampleRenderTarget. * THREE.Legacy.js: Add WebGLMultisampleRenderTarget. * Exampels: Clean up. * WebGLRenderer: Use multisampling when possible without reporting errors. * Update WebGLRenderer.js Co-authored-by: mrdoob <info@mrdoob.com>
src/renderers/webxr/WebXRManager.js
@@ -7,7 +7,6 @@ import { WebGLAnimation } from '../webgl/WebGLAnimation.js'; import { WebGLRenderTarget } from '../WebGLRenderTarget.js'; import { WebXRController } from './WebXRController.js'; import { DepthTexture } from '../../textures/DepthTexture.js'; -import { WebGLMultisampleRenderTarget } from '../WebGLMulti...
true
Other
mrdoob
three.js
09b36f444e6edca02799ad0144d93b38cf4f9a99.json
fix default scope NormalNode.LOCAL
examples/jsm/renderers/nodes/accessors/NormalNode.js
@@ -8,11 +8,11 @@ import MathNode from '../math/MathNode.js'; class NormalNode extends Node { - static VIEW = 'view'; static LOCAL = 'local'; static WORLD = 'world'; + static VIEW = 'view'; - constructor( scope = NormalNode.VIEW ) { + constructor( scope = NormalNode.LOCAL ) { super( 'vec3' );
true
Other
mrdoob
three.js
09b36f444e6edca02799ad0144d93b38cf4f9a99.json
fix default scope NormalNode.LOCAL
examples/webgpu_nodes.html
@@ -133,14 +133,14 @@ case 'normal': - const normalNode = new NormalNode( NormalNode.VIEW ); + const normalNode = new NormalNode( NormalNode.LOCAL ); material.colorNode = normalNode; - addGui( 'scope', { - view: NormalNode.VIEW, + addGui( 'scope', { local: N...
true
Other
mrdoob
three.js
2337179cdfe586336a4626cc9beecad146c7d15a.json
fix displace with normals
examples/webgpu_sandbox.html
@@ -22,10 +22,12 @@ import AttributeNode from './jsm/renderers/nodes/core/AttributeNode.js'; import FloatNode from './jsm/renderers/nodes/inputs/FloatNode.js'; import Vector2Node from './jsm/renderers/nodes/inputs/Vector2Node.js'; + import Vector3Node from './jsm/renderers/nodes/inputs/Vector3Node.js'; ...
false
Other
mrdoob
three.js
ad7d8036ceb251c574f48becafe2cc0826f26b62.json
fix VaryNode build in vertex shader
examples/jsm/renderers/nodes/core/NodeVary.js
@@ -1,10 +1,10 @@ class NodeVary { - constructor( name, type, value ) { + constructor( name, type, snippet = '' ) { this.name = name; this.type = type; - this.value = value; + this.snippet = snippet; Object.defineProperty( this, 'isNodeVary', { value: true } );
true
Other
mrdoob
three.js
ad7d8036ceb251c574f48becafe2cc0826f26b62.json
fix VaryNode build in vertex shader
examples/jsm/renderers/nodes/core/VaryNode.js
@@ -1,4 +1,5 @@ import Node from './Node.js'; +import { NodeShaderStage } from './constants.js'; class VaryNode extends Node { @@ -22,9 +23,12 @@ class VaryNode extends Node { const type = this.getType( builder ); - const value = this.value.build( builder, type ); + // force nodeVary.snippet work in vert...
true
Other
mrdoob
three.js
ad7d8036ceb251c574f48becafe2cc0826f26b62.json
fix VaryNode build in vertex shader
examples/jsm/renderers/nodes/core/constants.js
@@ -1,3 +1,8 @@ +export const NodeShaderStage = { + Vertex: 'vertex', + Fragment: 'fragment' +}; + export const NodeUpdateType = { None: 'none', Frame: 'frame',
true
Other
mrdoob
three.js
ad7d8036ceb251c574f48becafe2cc0826f26b62.json
fix VaryNode build in vertex shader
examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js
@@ -244,7 +244,7 @@ class WebGPUNodeBuilder extends NodeBuilder { for ( const vary of this.varys ) { - snippet += `${vary.name} = ${vary.value};`; + snippet += `${vary.name} = ${vary.snippet};`; }
true
Other
mrdoob
three.js
86325122371dbd33dbed0f2b54e354ae54c599f0.json
Update setup.html (#24266) Make the language a bit clearer.
manual/en/setup.html
@@ -34,7 +34,7 @@ <h1>Setup</h1> The first article was <a href="fundamentals.html">about three.js fundamentals</a>. If you haven't read that yet you might want to start there.</p> <p>Before we go any further we need to talk about setting up your -computer to do development. In particular, for security reasons, +comp...
false
Other
mrdoob
three.js
95172e542c07d40ff89d2e716e01358eff59fad0.json
Remove input source on XR session end (#24269) Fixes error on 2nd time entering AR: Uncaught DOMException: Failed to execute 'getPose' on 'XRFrame': XRSpace and XRFrame sessions do not match.
src/renderers/webxr/WebXRManager.js
@@ -153,6 +153,8 @@ class WebXRManager extends EventDispatcher { if ( inputSource === null ) continue; + controllerInputSources[ i ] = null; + controllers[ i ].disconnect( inputSource ); }
false
Other
mrdoob
three.js
a48a395a0327b35bca6cd5013cca22f2f7d33f5b.json
add glsl annotation (#24274)
examples/jsm/shaders/MMDToonShader.js
@@ -15,7 +15,7 @@ import { UniformsUtils, ShaderLib } from 'three'; -const lights_mmd_toon_pars_fragment = ` +const lights_mmd_toon_pars_fragment = /* glsl */` varying vec3 vViewPosition; struct BlinnPhongMaterial { @@ -49,7 +49,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in Geomet...
false
Other
mrdoob
three.js
88ecb40f79cca1fc8881423672e50632aa4d4a04.json
Remove some deprecated methods (#21450)
src/Three.Legacy.js
@@ -47,7 +47,6 @@ import { DataTextureLoader } from './loaders/DataTextureLoader.js'; import { TextureLoader } from './loaders/TextureLoader.js'; import { Material } from './materials/Material.js'; import { LineBasicMaterial } from './materials/LineBasicMaterial.js'; -import { MeshPhongMaterial } from './materials/M...
false
Other
mrdoob
three.js
67cced08a9d653fc670d1c344526f149d0e4bfbb.json
Select three examples
docs/api/en/helpers/AxesHelper.html
@@ -25,9 +25,6 @@ <h2>Code Example</h2> <h2>Examples</h2> <p> - [example:css2d_label Css2d / label]<br/> - [example:misc_animation_keys Misc / animation / keys]<br/> - [example:misc_exporter_gltf Misc / exporter / gltf]<br/> [example:webgl_buffergeometry_compression WebGL / buffergeometry / compressio...
true
Other
mrdoob
three.js
67cced08a9d653fc670d1c344526f149d0e4bfbb.json
Select three examples
docs/api/zh/helpers/AxesHelper.html
@@ -24,9 +24,6 @@ <h2>代码示例</h2> <h2>例子</h2> <p> - [example:css2d_label Css2d / label]<br/> - [example:misc_animation_keys Misc / animation / keys]<br/> - [example:misc_exporter_gltf Misc / exporter / gltf]<br/> [example:webgl_buffergeometry_compression WebGL / buffergeometry / compression]<br/> [e...
true
Other
mrdoob
three.js
ac6861eb15cf2e81864e1b44255ec627020c8b0c.json
Remove original ssaa example for files.json
examples/files.json
@@ -268,7 +268,6 @@ "webgl_postprocessing_rgb_halftone", "webgl_postprocessing_masking", "webgl_postprocessing_ssaa", - "webgl_postprocessing_ssaa_unbiased", "webgl_postprocessing_outline", "webgl_postprocessing_pixel", "webgl_postprocessing_procedural",
false
Other
mrdoob
three.js
cdab337b203e855d08f5c9551742f7b6d14da757.json
Fix pixel ratio
examples/webgl_postprocessing_ssaa.html
@@ -80,10 +80,9 @@ const width = window.innerWidth || 1; const height = window.innerHeight || 1; const aspect = width / height; - const devicePixelRatio = window.devicePixelRatio || 1; renderer = new THREE.WebGLRenderer(); - renderer.setPixelRatio( devicePixelRatio ); + renderer.setPixelR...
false
Other
mrdoob
three.js
1042edb1122d7fd9938262e0093ee22d436ae516.json
Add documentation of computeMorphedBufferGeometry
docs/examples/en/utils/BufferGeometryUtils.html
@@ -74,6 +74,17 @@ <h3>[method:BufferGeometry toTrianglesDrawMode]( [param:BufferGeometry geometry] </p> + <h3>[method:Object computeMorphedBufferGeometry]( [param:Object3D object] )</h3> + <p> + object -- Instance of [page:Object3D Object3D].<br /><br /> + + Returns the current attributes (Position and Norm...
false
Other
mrdoob
three.js
4dc07db7c848cd03d4e6ce4385882312bb4473ad.json
Fix reference to BoxBufferGeometry
src/extras/PMREMGenerator.js
@@ -25,7 +25,7 @@ import { Vector3 } from '../math/Vector3.js'; import { Color } from '../math/Color.js'; import { WebGLRenderTarget } from '../renderers/WebGLRenderTarget.js'; import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js'; -import { BoxBufferGeometry } from '../geometries/BoxBufferGeometry.j...
false
Other
mrdoob
three.js
0bb92db3df41179adce5320447798b25f672d5cd.json
Fix typo in KeyframeTrack.optimize()
src/animation/KeyframeTrack.js
@@ -363,7 +363,7 @@ Object.assign( KeyframeTrack.prototype, { // remove adjacent keyframes scheduled at the same time - if ( time !== timeNext && ( i !== 1 || time !== time[ 0 ] ) ) { + if ( time !== timeNext && ( i !== 1 || time !== times[ 0 ] ) ) { if ( ! smoothInterpolation ) {
false
Other
mrdoob
three.js
7da24e39cf58bfcaa7486bfd9e5193f6230a838a.json
Fix a typo in multiple places (#24195) * Fix a typo in multiple places * Undo typo fix in build files Since the build files are auto-generated from the source, the typo should only have fixed it in the src folder. This commit fixes that Co-authored-by: Carl Lee Landskron <carl.lee.landskron@gmail.com>
src/core/InterleavedBufferAttribute.js
@@ -181,7 +181,7 @@ class InterleavedBufferAttribute { if ( data === undefined ) { - console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.' ); + console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attrib...
false
Other
mrdoob
three.js
cba85c5c6318e7ca53dd99f9f3c25eb3b79d9693.json
Improve OBJLoader (#24175) - Cache data splitter regex - Replace deprecated trimLeft calls with trimStart - Replace some let declarations with const
examples/js/loaders/OBJLoader.js
@@ -7,6 +7,7 @@ const _material_use_pattern = /^usemtl /; // usemap map_name const _map_use_pattern = /^usemap /; + const _face_vertex_data_separator_pattern = /\s+/; const _vA = new THREE.Vector3(); @@ -438,26 +439,19 @@ } const lines = text.split( '\n' ); - let line = '', - lineFirstChar = ...
true
Other
mrdoob
three.js
cba85c5c6318e7ca53dd99f9f3c25eb3b79d9693.json
Improve OBJLoader (#24175) - Cache data splitter regex - Replace deprecated trimLeft calls with trimStart - Replace some let declarations with const
examples/jsm/loaders/OBJLoader.js
@@ -23,6 +23,7 @@ const _material_library_pattern = /^mtllib /; const _material_use_pattern = /^usemtl /; // usemap map_name const _map_use_pattern = /^usemap /; +const _face_vertex_data_separator_pattern = /\s+/; const _vA = new Vector3(); const _vB = new Vector3(); @@ -503,31 +504,22 @@ class OBJLoader extends...
true
Other
mrdoob
three.js
8a774733d986c4b9636ccef8fc1363fb0426a933.json
add check if face are not undefinded (#24169) add check if face are not undefinded check with u.faces[i]
examples/jsm/modifiers/SimplifyModifier.js
@@ -342,7 +342,7 @@ function collapse( vertices, faces, u, v ) { // u and v are pointers to vertices // delete triangles on edge uv: for ( let i = u.faces.length - 1; i >= 0; i -- ) { - if ( u.faces[ i ].hasVertex( v ) ) { + if ( u.faces[ i ] && u.faces[ i ].hasVertex( v ) ) { removeFace( u.faces[ i ], fa...
false
Other
mrdoob
three.js
0f3d50013eb25afd28b2121909f8f127fccbab6d.json
fix nan on first frame
examples/webgl_shader.html
@@ -74,7 +74,7 @@ var uniforms; init(); - animate(); + animate( 0 ); function init() {
false
Other
mrdoob
three.js
dd9e041c484c7c15bcee7afa53604981baab56c1.json
remove transparency in favor of transmission
src/loaders/MaterialLoader.js
@@ -92,7 +92,6 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), { if ( json.side !== undefined ) material.side = json.side; if ( json.opacity !== undefined ) material.opacity = json.opacity; if ( json.transparent !== undefined ) material.transparent = json.transparent; - if ( js...
false
Other
mrdoob
three.js
bc788ea945ed4832f16c007c508cc1b8c8a83d1a.json
Remove SpriteMaterial.fog (zh doc)
docs/api/zh/materials/SpriteMaterial.html
@@ -64,9 +64,6 @@ <h3>[property:Texture alphaMap]</h3> <h3>[property:Color color]</h3> <p>材质的颜色([page:Color]),默认值为白色 (0xffffff)。 [page:.map]会和 color 相乘。</p> - <h3>[property:boolean fog]</h3> - <p>材质是否受场景雾的影响。默认值为*false*。</p> - <h3>[property:Texture map]</h3> <p>颜色贴图。默认为null。</p>
false
Other
mrdoob
three.js
706a375a06e963e32b9ad86af405a5170514d3ae.json
Change conditon style
examples/js/lines/LineSegments2.js
@@ -70,12 +70,7 @@ THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototy } - var threshold = 0; - if ( 'Line2' in raycaster.params ) { - - threshold = raycaster.params.Line2.threshold || 0.0; - - } + var threshold = ( raycaster.params.Line2 !== undefined ) ? raycaster.param...
true
Other
mrdoob
three.js
706a375a06e963e32b9ad86af405a5170514d3ae.json
Change conditon style
examples/jsm/lines/LineSegments2.js
@@ -81,12 +81,7 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), { } - var threshold = 0; - if ( 'Line2' in raycaster.params ) { - - threshold = raycaster.params.Line2.threshold || 0.0; - - } + var threshold = ( raycaster.params.Line2 !== undefined ) ? raycaster.params.Lin...
true
Other
mrdoob
three.js
4673a77db9193849bf2d668191504beee7a7ad37.json
remove useless code
examples/jsm/loaders/KTX2Loader.d.ts
@@ -12,13 +12,6 @@ export class KTX2Loader extends CompressedTextureLoader { detectSupport( renderer: WebGLRenderer ): KTX2Loader; initModule(): void; - load( - url: string, - onLoad: ( texture: CompressedTexture ) => void, - onProgress?: ( event: ProgressEvent ) => void, - onError?: ( event: ErrorEvent ) => ...
false
Other
mrdoob
three.js
84deae15c8944717fe5d874f1246c4d2959303c8.json
Add threshold option to Line2 raycast
examples/jsm/lines/LineSegments2.js
@@ -81,14 +81,21 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), { } + var threshold = 0; + if ( 'Line2' in raycaster.params ) { + + threshold = raycaster.params.Lines2.threshold || 0.0 + + } + var ray = raycaster.ray; var camera = raycaster.camera; var...
false
Other
mrdoob
three.js
8cfff8d8418933da5e89673578eae9a67701170b.json
Add LUT3dlLoader dts
examples/jsm/loaders/LUT3dlLoader.d.ts
@@ -0,0 +1,28 @@ +import { + Loader, + LoadingManager, + DataTexture, + DataTexture3D, +} from '../../../src/Three'; + +export interface LUT3dlResult { + + size: number; + texture: DataTexture; + texture3D: DataTexture3D; + +} + +export class LUT3dlLoader extends Loader { + + constructor( manager?: LoadingManager ); + ...
false
Other
mrdoob
three.js
e3ca45396be1c9f5f5e4431345944e457dbcb7f1.json
Add LUTCubeLoader dts
examples/jsm/loaders/LUTCubeLoader.d.ts
@@ -0,0 +1,32 @@ +import { + Loader, + LoadingManager, + Vector3, + DataTexture, + DataTexture3D, +} from '../../../src/Three'; + +export interface LUTCubeResult { + + title: string; + size: number; + domainMin: Vector3; + domainMax: Vector3; + texture: DataTexture; + texture3D: DataTexture3D; + +} + +export class LUTC...
false
Other
mrdoob
three.js
19e16a510849bd87752bbc6d2694cdb37375ce02.json
Add LUTPass dts
examples/jsm/postprocessing/LUTPass.d.ts
@@ -0,0 +1,18 @@ +import { + DataTexture, + DataTexture3D, +} from '../../../src/Three'; +import { ShaderPass } from './ShaderPass'; + +export interface LUTPassParameters { + lut?: DataTexture | DataTexture3D; + intensity?: number; +} + +export class LUTPass extends ShaderPass { + + lut?: DataTexture | DataTexture3D; +...
false
Other
mrdoob
three.js
ddbc49298fe378253c45908b1018940793b5c837.json
Use a default parameter for renderCallDepth
src/renderers/WebGLRenderer.js
@@ -874,7 +874,7 @@ function WebGLRenderer( parameters ) { this.compile = function ( scene, camera ) { - currentRenderState = renderStates.get( scene, 0 ); + currentRenderState = renderStates.get( scene ); currentRenderState.init(); scene.traverseVisible( function ( object ) {
true
Other
mrdoob
three.js
ddbc49298fe378253c45908b1018940793b5c837.json
Use a default parameter for renderCallDepth
src/renderers/webgl/WebGLRenderStates.d.ts
@@ -22,7 +22,7 @@ interface WebGLRenderState { export class WebGLRenderStates { // renderCallDepth indexes start from 0. - get( scene: Scene, renderCallDepth: number ): WebGLRenderState; + get( scene: Scene, renderCallDepth?: number ): WebGLRenderState; dispose(): void; }
true
Other
mrdoob
three.js
ddbc49298fe378253c45908b1018940793b5c837.json
Use a default parameter for renderCallDepth
src/renderers/webgl/WebGLRenderStates.js
@@ -61,7 +61,7 @@ function WebGLRenderStates() { let renderStates = new WeakMap(); - function get( scene, renderCallDepth ) { + function get( scene, renderCallDepth = 0 ) { let renderState;
true
Other
mrdoob
three.js
832e9a29f6fa6d0bc3eb32fb0cc621aeef3e1b67.json
Add example logic
examples/webgl_postprocessing_3dlut.html
@@ -24,11 +24,15 @@ import { RGBELoader } from './jsm/loaders/RGBELoader.js'; import { EffectComposer } from './jsm/postprocessing/EffectComposer.js'; import { RenderPass } from './jsm/postprocessing/RenderPass.js'; + import { LUTPass } from './jsm/postprocessing/LUTPass.js'; + import { LUTCubeLoader } ...
false
Other
mrdoob
three.js
0533e1785a069795c0f9c4fc2905447c049910b2.json
fix three path
examples/jsm/postprocessing/LUTPass.js
@@ -1,4 +1,4 @@ -import { ShaderPass } from '//unpkg.com/three@0.120.1/examples/jsm/postprocessing/ShaderPass.js'; +import { ShaderPass } from './ShaderPass.js'; const LUTShader = {
false
Other
mrdoob
three.js
4ce187587f62686b5bc29d323e3a133ffd0d2513.json
update three references
examples/jsm/loaders/LUT3dlLoader.js
@@ -10,7 +10,7 @@ import { UnsignedByteType, ClampToEdgeWrapping, LinearFilter, -} from '//unpkg.com/three@0.120.1/build/three.module.js'; +} from '../../../build/three.module.js'; export class LUT3dlLoader extends Loader {
true
Other
mrdoob
three.js
4ce187587f62686b5bc29d323e3a133ffd0d2513.json
update three references
examples/jsm/loaders/LUTCubeLoader.js
@@ -10,7 +10,7 @@ import { UnsignedByteType, ClampToEdgeWrapping, LinearFilter, -} from '//unpkg.com/three@0.120.1/build/three.module.js'; +} from '../../../build/three.module.js'; export class LUTCubeLoader extends Loader {
true
Other
mrdoob
three.js
5e176f8f2887becd164873d6669457c02545c6f4.json
Add LUT Loaders
examples/jsm/loaders/LUT3dlLoader.js
@@ -0,0 +1,143 @@ +// http://download.autodesk.com/us/systemdocs/help/2011/lustre/index.html?url=./files/WSc4e151a45a3b785a24c3d9a411df9298473-7ffd.htm,topicNumber=d0e9492 + +import { + Loader, + FileLoader, + Vector3, + DataTexture, + DataTexture3D, + RGBFormat, + UnsignedByteType, + ClampToEdgeWrapping, + LinearFilte...
true
Other
mrdoob
three.js
5e176f8f2887becd164873d6669457c02545c6f4.json
Add LUT Loaders
examples/jsm/loaders/LUTCubeLoader.js
@@ -0,0 +1,151 @@ +// https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf + +import { + Loader, + FileLoader, + Vector3, + DataTexture, + DataTexture3D, + RGBFormat, + UnsignedByteType, + ClampToEdgeWrapping, + LinearFilter, +} from '//unpkg.com/three@0.120.1/buil...
true
Other
mrdoob
three.js
9ab55519172a4472c1ff7ceab74f7bfa8c15475c.json
add initial lut demo
examples/files.json
@@ -249,6 +249,7 @@ ], "webgl / postprocessing": [ "webgl_postprocessing", + "webgl_postprocessing_3dlut", "webgl_postprocessing_advanced", "webgl_postprocessing_afterimage", "webgl_postprocessing_backgrounds",
true
Other
mrdoob
three.js
9ab55519172a4472c1ff7ceab74f7bfa8c15475c.json
add initial lut demo
examples/webgl_postprocessing_3dlut.html
@@ -0,0 +1,143 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>three.js webgl - 3d luts</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> + <link type="text/css" rel="stylesheet" href="main.css"> + </head> + + <body...
true
Other
mrdoob
three.js
8eed0bba85ee41dd43935f545a4a675554adc047.json
Add mouseButtons to TrackballControls
examples/jsm/controls/TrackballControls.d.ts
@@ -22,6 +22,7 @@ export class TrackballControls extends EventDispatcher { minDistance: number; maxDistance: number; keys: number[]; + mouseButtons: { LEFT: MOUSE; MIDDLE: MOUSE; RIGHT: MOUSE }; target: Vector3; position0: Vector3;
false
Other
mrdoob
three.js
a3e1703aebcbf1b8d7618ada1d69c18c9fafe1a0.json
Fix ReferenceError in check-coverage.js
test/e2e/check-coverage.js
@@ -13,11 +13,13 @@ const S = fs.readdirSync( './examples/screenshots' ) // files.js const F = []; -eval( fs.readFileSync( './examples/files.js' ).toString() ); -for ( var key in files ) { +// To expose files variable to out of eval scope, we need var statement, not const. +eval( fs.readFileSync( './examples/files....
false
Other
mrdoob
three.js
c29a1f8818b1907af53a8bf3efa9423a6ca186b7.json
Add unit test for Object3D.updateMatrix()
test/unit/src/core/Object3D.tests.js
@@ -500,9 +500,30 @@ export default QUnit.module( 'Core', () => { } ); - QUnit.todo( "updateMatrix", ( assert ) => { - - assert.ok( false, "everything's gonna be alright" ); + QUnit.test( "updateMatrix", ( assert ) => { + + const a = new Object3D(); + a.position.set( 2, 3, 4 ); + a.quaternion.set( 5, 6...
false
Other
mrdoob
three.js
3e231ef9008bce4ad1a7629ee674e39a83a2cc1e.json
Fix the total size of RoundedBoxBufferGeometry
examples/jsm/geometries/RoundedBoxBufferGeometry.js
@@ -78,18 +78,16 @@ class RoundedBoxBufferGeometry extends BoxBufferGeometry { for ( let i = 0, j = 0; i < positions.length; i += 3, j += 2 ) { position.fromArray( positions, i ); - normal.copy( position ).normalize(); - - positions[ i + 0 ] = box.x * Math.sign( position.x ) + normal.x * radius; - positi...
false
Other
mrdoob
three.js
334f2cf76e38944d010a1c70679706a5bb3c5b08.json
fix webgl_gpgpu_birds_gltf cohesion 0 error
examples/webgl_gpgpu_birds_gltf.html
@@ -179,8 +179,9 @@ // Attraction / Cohesion - move closer float threshDelta = 1.0 - alignmentThresh; - threshDelta = max( threshDelta, 1e-6 ); - float adjustedPercent = ( percent - alignmentThresh ) / threshDelta; + float adjustedPercent; + if( threshDelta == 0. ) adjustedPerc...
false
Other
mrdoob
three.js
16b1e6593903b0ae13e68e296a3a0941a4d1b56a.json
fix webgl_gpgpu_birds_gltf cohesion 0 error
examples/webgl_gpgpu_birds_gltf.html
@@ -179,6 +179,7 @@ // Attraction / Cohesion - move closer float threshDelta = 1.0 - alignmentThresh; + threshDelta = max( threshDelta, 1e-6 ); float adjustedPercent = ( percent - alignmentThresh ) / threshDelta; f = ( 0.5 - ( cos( adjustedPercent * PI_2 ) * -0.5 + 0.5 ) ) * de...
false
Other
mrdoob
three.js
66b7db927b6947c629c3cf9b266824a8474c5898.json
move changes into js directory rather than jsm
examples/js/loaders/SVGLoader.js
@@ -386,6 +386,9 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype var numbers = parseFloats( data ); for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) { + + // skip command if start point == end point + if( numbers[ j + 5 ] == point.x && numbers...
false
Other
mrdoob
three.js
139866dd3ff4b6a57074cd9c691aa4846393d3d6.json
move check into parse arc function
examples/jsm/loaders/SVGLoader.js
@@ -282,7 +282,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { } break; - + case 'L': var numbers = parseFloats( data ); @@ -398,25 +398,18 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { var numbers = parseFloats( data )...
false
Other
mrdoob
three.js
3ddf815fb671482d33a17ff3c49908e237b99878.json
Add WebWorker OBJLoader
docs/manual/en/introduction/Libraries-and-Plugins.html
@@ -51,6 +51,7 @@ <h3>File Formats</h3> <ul> <li>[link:https://github.com/gkjohnson/urdf-loaders/tree/master/javascript urdf-loader]</li> <li>[link:https://github.com/NASA-AMMOS/3DTilesRendererJS 3d-tiles-renderer-js]</li> + <li>[link:https://github.com/kaisalmen/WWOBJLoader WebWorker OBJLoader]</li> </...
false
Other
mrdoob
three.js
749317ff845464b0561b35f48926fa58b213d13f.json
add ECSY, official examples comments
docs/manual/en/introduction/Libraries-and-Plugins.html
@@ -26,6 +26,11 @@ <h3>Physics</h3> <h3>Postprocessing</h3> + <p> + In addition to the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm/postprocessing official three.js postprocessing effects], + support for some additional effects and frameworks are available through external libraries. + ...
false
Other
mrdoob
three.js
efcf5d26208d110a6a7f6c73a7fae57c7b28657c.json
Restore LightShadow export for now. #20147
src/Three.js
@@ -61,6 +61,7 @@ export { HemisphereLightProbe } from './lights/HemisphereLightProbe.js'; export { DirectionalLight } from './lights/DirectionalLight.js'; export { AmbientLight } from './lights/AmbientLight.js'; export { AmbientLightProbe } from './lights/AmbientLightProbe.js'; +export { LightShadow } from './light...
false
Other
mrdoob
three.js
45b2f2e585989d964ab633ecf7d42f7f1f0968cb.json
Fix types for Line2 Allow to access to the original LineGeometry and LineMaterial safely without an explicit cast
examples/jsm/lines/Line2.d.ts
@@ -4,6 +4,9 @@ import { LineMaterial } from './LineMaterial'; export class Line2 extends LineSegments2 { + geometry?: LineGeometry; + material?: LineMaterial; + constructor( geometry?: LineGeometry, material?: LineMaterial ); readonly isLine2: true;
false
Other
mrdoob
three.js
1f74b419cec9a4624e729b1e34907d9a6c6d083d.json
Adjust remaining strings
docs/api/en/math/Matrix3.html
@@ -105,7 +105,7 @@ <h3>[method:this fromArray]( [param:Array array], [param:Integer offset] )</h3> [link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major] format. </p> - <h3>[method:this invert()]()</h3> + <h3>[method:this invert]()</h3> <p> Inverts this matrix,...
true
Other
mrdoob
three.js
1f74b419cec9a4624e729b1e34907d9a6c6d083d.json
Adjust remaining strings
docs/api/zh/math/Matrix3.html
@@ -100,7 +100,7 @@ <h3>[method:this fromArray]( [param:Array array], [param:Integer offset] )</h3> 使用基于列优先格式[link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major]的数组来设置该矩阵。 </p> - <h3>[method:this invert()]()</h3> + <h3>[method:this invert]()</h3> <p> Inverts t...
true
Other
mrdoob
three.js
1f74b419cec9a4624e729b1e34907d9a6c6d083d.json
Adjust remaining strings
docs/api/zh/math/Matrix4.html
@@ -172,7 +172,7 @@ <h3>[method:this fromArray]( [param:Array array], [param:Integer offset] )</h3> 使用基于列优先格式[link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major]的数组来设置该矩阵。 </p> - <h3>[method:this invert()]()</h3> + <h3>[method:this invert]()</h3> <p> Inverts ...
true
Other
mrdoob
three.js
cc036ac817e34488da65d886d3a4d457ba00bdd5.json
Adjust Matrix4.invert docs
docs/api/en/math/Matrix4.html
@@ -186,7 +186,7 @@ <h3>[method:this fromArray]( [param:Array array], [param:Integer offset] )</h3> [link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major] format. </p> - <h3>[method:this invert()]()</h3> + <h3>[method:this invert]()</h3> <p> Inverts this matrix,...
false
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/js/exporters/GLTFExporter.js
@@ -1700,7 +1700,7 @@ THREE.GLTFExporter.prototype = { joints.push( nodeMap.get( skeleton.bones[ i ] ) ); temporaryBoneInverse.copy( skeleton.boneInverses[ i ] ); - + temporaryBoneInverse.multiply( object.bindMatrix ).toArray( inverseBindMatrices, i * 16 ); }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/exporters/GLTFExporter.js
@@ -1724,7 +1724,7 @@ GLTFExporter.prototype = { joints.push( nodeMap.get( skeleton.bones[ i ] ) ); temporaryBoneInverse.copy( skeleton.boneInverses[ i ] ); - + temporaryBoneInverse.multiply( object.bindMatrix ).toArray( inverseBindMatrices, i * 16 ); }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/3DMLoader.js
@@ -626,7 +626,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), { } else if ( geometry.isLinearLight ) { - console.warn( `THREE.3DMLoader: No conversion exists for linear lights.` ); + console.warn( 'THREE.3DMLoader: No conversion exists for linear lights.' ); ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/NodeMaterialLoader.js
@@ -23,9 +23,9 @@ var NodeMaterialLoaderUtils = { recursive = recursive !== undefined ? recursive : true; - if ( typeof uuid === "object" ) uuid = uuid.uuid; + if ( typeof uuid === 'object' ) uuid = uuid.uuid; - if ( typeof object === "object" ) { + if ( typeof object === 'object' ) { var keys = Obje...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/OBJLoader2.js
@@ -299,7 +299,7 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), { this.setCallbackOnMeshAlter( onMeshAlter ); const fileLoaderOnLoad = function ( content ) { - scope.parser.callbacks.onLoad( scope.parse( content ), "OBJLoader2#load: Parsing completed" ); + scope.parser.callbacks...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/OBJLoader2Parallel.js
@@ -73,7 +73,7 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp if ( jsmWorkerUrl === undefined || jsmWorkerUrl === null ) { - throw "The url to the jsm worker is not valid. Aborting..."; + throw 'The url to the jsm worker is not valid. Aborting...'; } @@ -165,7 +165...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/lwo/IFFParser.js
@@ -93,7 +93,7 @@ IFFParser.prototype = { if ( topForm !== 'FORM' ) { - console.warn( "LWOLoader: Top-level FORM missing." ); + console.warn( 'LWOLoader: Top-level FORM missing.' ); return; } @@ -577,7 +577,7 @@ IFFParser.prototype = { var texture = { index: this.reader.getUint32(), - fil...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/obj2/OBJLoader2Parser.js
@@ -285,7 +285,7 @@ OBJLoader2Parser.prototype = { _onLoad: function ( object3d, message ) { - console.log( "You reached parser default onLoad callback: " + message ); + console.log( 'You reached parser default onLoad callback: ' + message ); }, @@ -629,7 +629,7 @@ OBJLoader2Parser.prototype = { let sm...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/obj2/shared/MaterialHandler.js
@@ -96,7 +96,7 @@ MaterialHandler.prototype = { if ( materialCloneInstructions !== undefined && materialCloneInstructions !== null ) { let materialNameOrg = materialCloneInstructions.materialNameOrg; - materialNameOrg = ( materialNameOrg !== undefined && materialNameOrg !== null ) ? materialNameOrg : ""; + ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/obj2/utils/CodeSerializer.js
@@ -100,7 +100,7 @@ const CodeSerializer = { } else if ( typeof objectPart === 'object' ) { console.log( 'Omitting object "' + funcInstructions.getName() + '" and replace it with empty object.' ); - funcInstructions.setCode( "{}" ); + funcInstructions.setCode( '{}' ); } else {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/loaders/obj2/worker/main/WorkerExecutionSupport.js
@@ -119,9 +119,9 @@ CodeBuilderInstructions.prototype = { const WorkerExecutionSupport = function () { // check worker support first - if ( window.Worker === undefined ) throw "This browser does not support web workers!"; - if ( window.Blob === undefined ) throw "This browser does not support Blob!"; - if ( typeof...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/modifiers/CurveModifier.js
@@ -132,13 +132,13 @@ export function modifyShader( material, uniforms, numberOfCurves = 1 ) { ${shader.vertexShader} ` // chunk import moved in front of modified shader below - .replace( '#include <beginnormal_vertex>', `` ) + .replace( '#include <beginnormal_vertex>', '' ) // vec3 transformedNormal...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/CameraNode.js
@@ -15,22 +15,22 @@ function CameraNode( scope, camera ) { CameraNode.Nodes = ( function () { var depthColor = new FunctionNode( [ - "float depthColor( float mNear, float mFar ) {", + 'float depthColor( float mNear, float mFar ) {', - " #ifdef USE_LOGDEPTHBUF_EXT", + ' #ifdef USE_LOGDEPTHBUF_EXT', - " fl...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/ColorsNode.js
@@ -13,7 +13,7 @@ function ColorsNode( index ) { ColorsNode.prototype = Object.create( TempNode.prototype ); ColorsNode.prototype.constructor = ColorsNode; -ColorsNode.prototype.nodeType = "Colors"; +ColorsNode.prototype.nodeType = 'Colors'; ColorsNode.prototype.generate = function ( builder, output ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/LightNode.js
@@ -12,7 +12,7 @@ LightNode.TOTAL = 'total'; LightNode.prototype = Object.create( TempNode.prototype ); LightNode.prototype.constructor = LightNode; -LightNode.prototype.nodeType = "Light"; +LightNode.prototype.nodeType = 'Light'; LightNode.prototype.generate = function ( builder, output ) { @@ -22,7 +22,7 @@ ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/NormalNode.js
@@ -15,7 +15,7 @@ NormalNode.VIEW = 'view'; NormalNode.prototype = Object.create( TempNode.prototype ); NormalNode.prototype.constructor = NormalNode; -NormalNode.prototype.nodeType = "Normal"; +NormalNode.prototype.nodeType = 'Normal'; NormalNode.prototype.getShared = function () {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/PositionNode.js
@@ -16,7 +16,7 @@ PositionNode.PROJECTION = 'projection'; PositionNode.prototype = Object.create( TempNode.prototype ); PositionNode.prototype.constructor = PositionNode; -PositionNode.prototype.nodeType = "Position"; +PositionNode.prototype.nodeType = 'Position'; PositionNode.prototype.getType = function ( ) { ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/ReflectNode.js
@@ -16,7 +16,7 @@ ReflectNode.VECTOR = 'vector'; ReflectNode.prototype = Object.create( TempNode.prototype ); ReflectNode.prototype.constructor = ReflectNode; -ReflectNode.prototype.nodeType = "Reflect"; +ReflectNode.prototype.nodeType = 'Reflect'; ReflectNode.prototype.getUnique = function ( builder ) { @@ -1...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/ResolutionNode.js
@@ -12,7 +12,7 @@ function ResolutionNode() { ResolutionNode.prototype = Object.create( Vector2Node.prototype ); ResolutionNode.prototype.constructor = ResolutionNode; -ResolutionNode.prototype.nodeType = "Resolution"; +ResolutionNode.prototype.nodeType = 'Resolution'; ResolutionNode.prototype.updateFrame = func...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/ScreenUVNode.js
@@ -11,7 +11,7 @@ function ScreenUVNode( resolution ) { ScreenUVNode.prototype = Object.create( TempNode.prototype ); ScreenUVNode.prototype.constructor = ScreenUVNode; -ScreenUVNode.prototype.nodeType = "ScreenUV"; +ScreenUVNode.prototype.nodeType = 'ScreenUV'; ScreenUVNode.prototype.generate = function ( build...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/accessors/UVNode.js
@@ -11,7 +11,7 @@ function UVNode( index ) { UVNode.prototype = Object.create( TempNode.prototype ); UVNode.prototype.constructor = UVNode; -UVNode.prototype.nodeType = "UV"; +UVNode.prototype.nodeType = 'UV'; UVNode.prototype.generate = function ( builder, output ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/AttributeNode.js
@@ -10,7 +10,7 @@ function AttributeNode( name, type ) { AttributeNode.prototype = Object.create( Node.prototype ); AttributeNode.prototype.constructor = AttributeNode; -AttributeNode.prototype.nodeType = "Attribute"; +AttributeNode.prototype.nodeType = 'Attribute'; AttributeNode.prototype.getAttributeType = fun...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/ConstNode.js
@@ -19,7 +19,7 @@ ConstNode.EPSILON = 'EPSILON'; ConstNode.prototype = Object.create( TempNode.prototype ); ConstNode.prototype.constructor = ConstNode; -ConstNode.prototype.nodeType = "Const"; +ConstNode.prototype.nodeType = 'Const'; ConstNode.prototype.getType = function ( builder ) { @@ -31,7 +31,7 @@ Const...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/ExpressionNode.js
@@ -8,6 +8,6 @@ function ExpressionNode( src, type, keywords, extensions, includes ) { ExpressionNode.prototype = Object.create( FunctionNode.prototype ); ExpressionNode.prototype.constructor = ExpressionNode; -ExpressionNode.prototype.nodeType = "Expression"; +ExpressionNode.prototype.nodeType = 'Expression'; e...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/FunctionCallNode.js
@@ -10,7 +10,7 @@ function FunctionCallNode( func, inputs ) { FunctionCallNode.prototype = Object.create( TempNode.prototype ); FunctionCallNode.prototype.constructor = FunctionCallNode; -FunctionCallNode.prototype.nodeType = "FunctionCall"; +FunctionCallNode.prototype.nodeType = 'FunctionCall'; FunctionCallNode...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/FunctionNode.js
@@ -17,7 +17,7 @@ function FunctionNode( src, includes, extensions, keywords, type ) { FunctionNode.prototype = Object.create( TempNode.prototype ); FunctionNode.prototype.constructor = FunctionNode; -FunctionNode.prototype.nodeType = "Function"; +FunctionNode.prototype.nodeType = 'Function'; FunctionNode.protot...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/InputNode.js
@@ -18,7 +18,7 @@ InputNode.prototype.setReadonly = function ( value ) { this.readonly = value; - this.hashProperties = this.readonly ? [ "value" ] : undefined; + this.hashProperties = this.readonly ? [ 'value' ] : undefined; return this;
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/Node.js
@@ -4,7 +4,7 @@ function Node( type ) { this.uuid = MathUtils.generateUUID(); - this.name = ""; + this.name = ''; this.type = type; @@ -197,12 +197,12 @@ Node.prototype = { var data = {}; - if ( typeof this.nodeType !== "string" ) throw new Error( "Node does not allow serialization." ); + if ( type...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/NodeBuilder.js
@@ -74,28 +74,28 @@ function NodeBuilder() { this.attributes = {}; this.prefixCode = [ - "#ifdef TEXTURE_LOD_EXT", + '#ifdef TEXTURE_LOD_EXT', - " #define texCube(a, b) textureCube(a, b)", - " #define texCubeBias(a, b, c) textureCubeLodEXT(a, b, c)", + ' #define texCube(a, b) textureCube(a, b)', + ' #defi...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/NodeUtils.js
@@ -52,7 +52,7 @@ var NodeUtils = { for ( var i = 0; i < list.length; ++ i ) { - var data = list[ i ].split( "." ), + var data = list[ i ].split( '.' ), property = data[ 0 ], subProperty = data[ 1 ];
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/StructNode.js
@@ -13,7 +13,7 @@ function StructNode( src ) { StructNode.prototype = Object.create( TempNode.prototype ); StructNode.prototype.constructor = StructNode; -StructNode.prototype.nodeType = "Struct"; +StructNode.prototype.nodeType = 'Struct'; StructNode.prototype.getType = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/TempNode.js
@@ -114,7 +114,7 @@ TempNode.prototype.getUuid = function ( unique ) { var uuid = unique || unique == undefined ? this.constructor.uuid || this.uuid : this.uuid; - if ( typeof this.scope === "string" ) uuid = this.scope + '-' + uuid; + if ( typeof this.scope === 'string' ) uuid = this.scope + '-' + uuid; retu...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/core/VarNode.js
@@ -10,7 +10,7 @@ function VarNode( type, value ) { VarNode.prototype = Object.create( Node.prototype ); VarNode.prototype.constructor = VarNode; -VarNode.prototype.nodeType = "Var"; +VarNode.prototype.nodeType = 'Var'; VarNode.prototype.getType = function ( builder ) {
true