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
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/effects/BlurNode.js
@@ -27,36 +27,36 @@ function BlurNode( value, uv, radius, size ) { BlurNode.Nodes = ( function () { var blurX = new FunctionNode( [ - "vec4 blurX( sampler2D tex, vec2 uv, float s ) {", - " vec4 sum = vec4( 0.0 );", - " sum += texture2D( tex, vec2( uv.x - 4.0 * s, uv.y ) ) * 0.051;", - " sum += texture2D( tex, ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/effects/ColorAdjustmentNode.js
@@ -16,45 +16,45 @@ function ColorAdjustmentNode( rgb, adjustment, method ) { ColorAdjustmentNode.Nodes = ( function () { var hue = new FunctionNode( [ - "vec3 hue(vec3 rgb, float adjustment) {", + 'vec3 hue(vec3 rgb, float adjustment) {', - " const mat3 RGBtoYIQ = mat3(0.299, 0.587, 0.114, 0.595716, -0.27445...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/effects/LuminanceNode.js
@@ -12,16 +12,16 @@ function LuminanceNode( rgb ) { LuminanceNode.Nodes = ( function () { - var LUMA = new ConstNode( "vec3 LUMA vec3( 0.2125, 0.7154, 0.0721 )" ); + var LUMA = new ConstNode( 'vec3 LUMA vec3( 0.2125, 0.7154, 0.0721 )' ); var luminance = new FunctionNode( [ // Algorithm from Chapter 10 of Gr...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/BoolNode.js
@@ -10,7 +10,7 @@ function BoolNode( value ) { BoolNode.prototype = Object.create( InputNode.prototype ); BoolNode.prototype.constructor = BoolNode; -BoolNode.prototype.nodeType = "Bool"; +BoolNode.prototype.nodeType = 'Bool'; BoolNode.prototype.generateReadonly = function ( builder, output, uuid, type/*, ns, ne...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/ColorNode.js
@@ -13,13 +13,13 @@ function ColorNode( color, g, b ) { ColorNode.prototype = Object.create( InputNode.prototype ); ColorNode.prototype.constructor = ColorNode; -ColorNode.prototype.nodeType = "Color"; +ColorNode.prototype.nodeType = 'Color'; NodeUtils.addShortcuts( ColorNode.prototype, 'value', [ 'r', 'g', 'b' ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/CubeTextureNode.js
@@ -15,7 +15,7 @@ function CubeTextureNode( value, uv, bias ) { CubeTextureNode.prototype = Object.create( InputNode.prototype ); CubeTextureNode.prototype.constructor = CubeTextureNode; -CubeTextureNode.prototype.nodeType = "CubeTexture"; +CubeTextureNode.prototype.nodeType = 'CubeTexture'; CubeTextureNode.prot...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/FloatNode.js
@@ -10,7 +10,7 @@ function FloatNode( value ) { FloatNode.prototype = Object.create( InputNode.prototype ); FloatNode.prototype.constructor = FloatNode; -FloatNode.prototype.nodeType = "Float"; +FloatNode.prototype.nodeType = 'Float'; FloatNode.prototype.generateReadonly = function ( builder, output, uuid, type/...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/IntNode.js
@@ -10,7 +10,7 @@ function IntNode( value ) { IntNode.prototype = Object.create( InputNode.prototype ); IntNode.prototype.constructor = IntNode; -IntNode.prototype.nodeType = "Int"; +IntNode.prototype.nodeType = 'Int'; IntNode.prototype.generateReadonly = function ( builder, output, uuid, type/*, ns, needsUpdate...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/Matrix3Node.js
@@ -12,7 +12,7 @@ function Matrix3Node( matrix ) { Matrix3Node.prototype = Object.create( InputNode.prototype ); Matrix3Node.prototype.constructor = Matrix3Node; -Matrix3Node.prototype.nodeType = "Matrix3"; +Matrix3Node.prototype.nodeType = 'Matrix3'; Object.defineProperties( Matrix3Node.prototype, { @@ -36,7 ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/Matrix4Node.js
@@ -12,7 +12,7 @@ function Matrix4Node( matrix ) { Matrix4Node.prototype = Object.create( InputNode.prototype ); Matrix4Node.prototype.constructor = Matrix4Node; -Matrix4Node.prototype.nodeType = "Matrix4"; +Matrix4Node.prototype.nodeType = 'Matrix4'; Object.defineProperties( Matrix4Node.prototype, { @@ -36,7 ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/PropertyNode.js
@@ -11,7 +11,7 @@ function PropertyNode( object, property, type ) { PropertyNode.prototype = Object.create( InputNode.prototype ); PropertyNode.prototype.constructor = PropertyNode; -PropertyNode.prototype.nodeType = "Property"; +PropertyNode.prototype.nodeType = 'Property'; Object.defineProperties( PropertyNode...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/RTTNode.js
@@ -37,7 +37,7 @@ function RTTNode( width, height, input, options ) { RTTNode.prototype = Object.create( TextureNode.prototype ); RTTNode.prototype.constructor = RTTNode; -RTTNode.prototype.nodeType = "RTT"; +RTTNode.prototype.nodeType = 'RTT'; RTTNode.prototype.build = function ( builder, output, uuid ) { @@ ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/ReflectorNode.js
@@ -15,7 +15,7 @@ function ReflectorNode( mirror ) { ReflectorNode.prototype = Object.create( TempNode.prototype ); ReflectorNode.prototype.constructor = ReflectorNode; -ReflectorNode.prototype.nodeType = "Reflector"; +ReflectorNode.prototype.nodeType = 'Reflector'; ReflectorNode.prototype.setMirror = function (...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/ScreenNode.js
@@ -9,7 +9,7 @@ function ScreenNode( uv ) { ScreenNode.prototype = Object.create( TextureNode.prototype ); ScreenNode.prototype.constructor = ScreenNode; -ScreenNode.prototype.nodeType = "Screen"; +ScreenNode.prototype.nodeType = 'Screen'; ScreenNode.prototype.getUnique = function () {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/TextureNode.js
@@ -16,7 +16,7 @@ function TextureNode( value, uv, bias, project ) { TextureNode.prototype = Object.create( InputNode.prototype ); TextureNode.prototype.constructor = TextureNode; -TextureNode.prototype.nodeType = "Texture"; +TextureNode.prototype.nodeType = 'Texture'; TextureNode.prototype.getTexture = function...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/Vector2Node.js
@@ -13,13 +13,13 @@ function Vector2Node( x, y ) { Vector2Node.prototype = Object.create( InputNode.prototype ); Vector2Node.prototype.constructor = Vector2Node; -Vector2Node.prototype.nodeType = "Vector2"; +Vector2Node.prototype.nodeType = 'Vector2'; NodeUtils.addShortcuts( Vector2Node.prototype, 'value', [ 'x'...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/Vector3Node.js
@@ -13,13 +13,13 @@ function Vector3Node( x, y, z ) { Vector3Node.prototype = Object.create( InputNode.prototype ); Vector3Node.prototype.constructor = Vector3Node; -Vector3Node.prototype.nodeType = "Vector3"; +Vector3Node.prototype.nodeType = 'Vector3'; NodeUtils.addShortcuts( Vector3Node.prototype, 'value', [ ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/inputs/Vector4Node.js
@@ -13,13 +13,13 @@ function Vector4Node( x, y, z, w ) { Vector4Node.prototype = Object.create( InputNode.prototype ); Vector4Node.prototype.constructor = Vector4Node; -Vector4Node.prototype.nodeType = "Vector4"; +Vector4Node.prototype.nodeType = 'Vector4'; NodeUtils.addShortcuts( Vector4Node.prototype, 'value',...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/BasicNodeMaterial.js
@@ -8,7 +8,7 @@ function BasicNodeMaterial() { NodeMaterial.call( this, node, node ); - this.type = "BasicNodeMaterial"; + this.type = 'BasicNodeMaterial'; }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/MeshStandardNodeMaterial.js
@@ -8,23 +8,23 @@ function MeshStandardNodeMaterial() { NodeMaterial.call( this, node, node ); - this.type = "MeshStandardNodeMaterial"; + this.type = 'MeshStandardNodeMaterial'; } MeshStandardNodeMaterial.prototype = Object.create( NodeMaterial.prototype ); MeshStandardNodeMaterial.prototype.constructor =...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/NodeMaterial.js
@@ -24,7 +24,7 @@ function NodeMaterial( vertex, fragment ) { NodeMaterial.prototype = Object.create( ShaderMaterial.prototype ); NodeMaterial.prototype.constructor = NodeMaterial; -NodeMaterial.prototype.type = "NodeMaterial"; +NodeMaterial.prototype.type = 'NodeMaterial'; NodeMaterial.prototype.isNodeMaterial ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/PhongNodeMaterial.js
@@ -8,7 +8,7 @@ function PhongNodeMaterial() { NodeMaterial.call( this, node, node ); - this.type = "PhongNodeMaterial"; + this.type = 'PhongNodeMaterial'; }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/SpriteNodeMaterial.js
@@ -8,7 +8,7 @@ function SpriteNodeMaterial() { NodeMaterial.call( this, node, node ); - this.type = "SpriteNodeMaterial"; + this.type = 'SpriteNodeMaterial'; }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/StandardNodeMaterial.js
@@ -8,7 +8,7 @@ function StandardNodeMaterial() { NodeMaterial.call( this, node, node ); - this.type = "StandardNodeMaterial"; + this.type = 'StandardNodeMaterial'; }
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/BasicNode.js
@@ -11,7 +11,7 @@ function BasicNode() { BasicNode.prototype = Object.create( Node.prototype ); BasicNode.prototype.constructor = BasicNode; -BasicNode.prototype.nodeType = "Basic"; +BasicNode.prototype.nodeType = 'Basic'; BasicNode.prototype.generate = function ( builder ) { @@ -22,52 +22,52 @@ BasicNode.prot...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/MeshStandardNode.js
@@ -31,7 +31,7 @@ function MeshStandardNode() { MeshStandardNode.prototype = Object.create( StandardNode.prototype ); MeshStandardNode.prototype.constructor = MeshStandardNode; -MeshStandardNode.prototype.nodeType = "MeshStandard"; +MeshStandardNode.prototype.nodeType = 'MeshStandard'; MeshStandardNode.prototype...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/PhongNode.js
@@ -19,7 +19,7 @@ function PhongNode() { PhongNode.prototype = Object.create( Node.prototype ); PhongNode.prototype.constructor = PhongNode; -PhongNode.prototype.nodeType = "Phong"; +PhongNode.prototype.nodeType = 'Phong'; PhongNode.prototype.build = function ( builder ) { @@ -41,64 +41,64 @@ PhongNode.prototy...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/RawNode.js
@@ -10,7 +10,7 @@ function RawNode( value ) { RawNode.prototype = Object.create( Node.prototype ); RawNode.prototype.constructor = RawNode; -RawNode.prototype.nodeType = "Raw"; +RawNode.prototype.nodeType = 'Raw'; RawNode.prototype.generate = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/SpriteNode.js
@@ -17,7 +17,7 @@ function SpriteNode() { SpriteNode.prototype = Object.create( Node.prototype ); SpriteNode.prototype.constructor = SpriteNode; -SpriteNode.prototype.nodeType = "Sprite"; +SpriteNode.prototype.nodeType = 'Sprite'; SpriteNode.prototype.build = function ( builder ) { @@ -37,28 +37,28 @@ SpriteNo...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/materials/nodes/StandardNode.js
@@ -21,7 +21,7 @@ function StandardNode() { StandardNode.prototype = Object.create( Node.prototype ); StandardNode.prototype.constructor = StandardNode; -StandardNode.prototype.nodeType = "Standard"; +StandardNode.prototype.nodeType = 'Standard'; StandardNode.prototype.build = function ( builder ) { @@ -63,64 ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/math/CondNode.js
@@ -25,7 +25,7 @@ CondNode.OR = '||'; CondNode.prototype = Object.create( TempNode.prototype ); CondNode.prototype.constructor = CondNode; -CondNode.prototype.nodeType = "Cond"; +CondNode.prototype.nodeType = 'Cond'; CondNode.prototype.getType = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/math/MathNode.js
@@ -61,8 +61,8 @@ MathNode.FACEFORWARD = 'faceforward'; MathNode.prototype = Object.create( TempNode.prototype ); MathNode.prototype.constructor = MathNode; -MathNode.prototype.nodeType = "Math"; -MathNode.prototype.hashProperties = [ "method" ]; +MathNode.prototype.nodeType = 'Math'; +MathNode.prototype.hashProper...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/math/OperatorNode.js
@@ -17,7 +17,7 @@ OperatorNode.DIV = '/'; OperatorNode.prototype = Object.create( TempNode.prototype ); OperatorNode.prototype.constructor = OperatorNode; -OperatorNode.prototype.nodeType = "Operator"; +OperatorNode.prototype.nodeType = 'Operator'; OperatorNode.prototype.getType = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/misc/BumpMapNode.js
@@ -24,62 +24,62 @@ BumpMapNode.Nodes = ( function () { // Evaluate the derivative of the height w.r.t. screen-space using forward differencing (listing 2) - "vec2 dHdxy_fwd( sampler2D bumpMap, vec2 vUv, float bumpScale ) {", + 'vec2 dHdxy_fwd( sampler2D bumpMap, vec2 vUv, float bumpScale ) {', // Workaro...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/misc/NormalMapNode.js
@@ -69,7 +69,7 @@ NormalMapNode.Nodes = ( function () { NormalMapNode.prototype = Object.create( TempNode.prototype ); NormalMapNode.prototype.constructor = NormalMapNode; -NormalMapNode.prototype.nodeType = "NormalMap"; +NormalMapNode.prototype.nodeType = 'NormalMap'; NormalMapNode.prototype.generate = function...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/misc/TextureCubeNode.js
@@ -27,7 +27,7 @@ function TextureCubeNode( value, uv, bias ) { TextureCubeNode.prototype = Object.create( TempNode.prototype ); TextureCubeNode.prototype.constructor = TextureCubeNode; -TextureCubeNode.prototype.nodeType = "TextureCube"; +TextureCubeNode.prototype.nodeType = 'TextureCube'; TextureCubeNode.proto...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/misc/TextureCubeUVNode.js
@@ -30,10 +30,10 @@ TextureCubeUVNode.Nodes = ( function () { vec2 f; }` ); - var cubeUV_maxMipLevel = new ConstNode( `float cubeUV_maxMipLevel 8.0`, true ); - var cubeUV_minMipLevel = new ConstNode( `float cubeUV_minMipLevel 4.0`, true ); - var cubeUV_maxTileSize = new ConstNode( `float cubeUV_maxTileSize 256...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/postprocessing/NodePass.js
@@ -8,7 +8,7 @@ function NodePass() { ShaderPass.call( this ); - this.name = ""; + this.name = ''; this.uuid = MathUtils.generateUUID(); this.userData = {}; @@ -71,11 +71,11 @@ NodePass.prototype.toJSON = function ( meta ) { var data = {}; data.uuid = this.uuid; - data.type = "NodePass"; + data.ty...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/postprocessing/NodePostProcessing.js
@@ -127,11 +127,11 @@ NodePostProcessing.prototype = { var data = {}; data.uuid = this.uuid; - data.type = "NodePostProcessing"; + data.type = 'NodePostProcessing'; meta.post[ this.uuid ] = data; - if ( this.name !== "" ) data.name = this.name; + if ( this.name !== '' ) data.name = this.name; ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/procedural/CheckerNode.js
@@ -12,23 +12,23 @@ function CheckerNode( uv ) { CheckerNode.prototype = Object.create( TempNode.prototype ); CheckerNode.prototype.constructor = CheckerNode; -CheckerNode.prototype.nodeType = "Noise"; +CheckerNode.prototype.nodeType = 'Noise'; CheckerNode.Nodes = ( function () { // https://github.com/mattde...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/procedural/NoiseNode.js
@@ -12,17 +12,17 @@ function NoiseNode( uv ) { NoiseNode.prototype = Object.create( TempNode.prototype ); NoiseNode.prototype.constructor = NoiseNode; -NoiseNode.prototype.nodeType = "Noise"; +NoiseNode.prototype.nodeType = 'Noise'; NoiseNode.Nodes = ( function () { var snoise = new FunctionNode( [ - "float...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/BypassNode.js
@@ -11,7 +11,7 @@ function BypassNode( code, value ) { BypassNode.prototype = Object.create( Node.prototype ); BypassNode.prototype.constructor = BypassNode; -BypassNode.prototype.nodeType = "Bypass"; +BypassNode.prototype.nodeType = 'Bypass'; BypassNode.prototype.getType = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/ColorSpaceNode.js
@@ -29,145 +29,145 @@ ColorSpaceNode.Nodes = ( function () { // For a discussion of what this is, please read this: http://lousodrome.net/blog/light/2013/05/26/gamma-correct-and-hdr-rendering-in-a-32-bits-buffer/ var LinearToLinear = new FunctionNode( [ - "vec4 LinearToLinear( in vec4 value ) {", + 'vec4 Linear...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/JoinNode.js
@@ -16,7 +16,7 @@ function JoinNode( x, y, z, w ) { JoinNode.prototype = Object.create( TempNode.prototype ); JoinNode.prototype.constructor = JoinNode; -JoinNode.prototype.nodeType = "Join"; +JoinNode.prototype.nodeType = 'Join'; JoinNode.prototype.getNumElements = function () {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/MaxMIPLevelNode.js
@@ -12,7 +12,7 @@ function MaxMIPLevelNode( texture ) { MaxMIPLevelNode.prototype = Object.create( FloatNode.prototype ); MaxMIPLevelNode.prototype.constructor = MaxMIPLevelNode; -MaxMIPLevelNode.prototype.nodeType = "MaxMIPLevel"; +MaxMIPLevelNode.prototype.nodeType = 'MaxMIPLevel'; Object.defineProperties( Max...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/SpecularMIPLevelNode.js
@@ -17,16 +17,16 @@ SpecularMIPLevelNode.Nodes = ( function () { var getSpecularMIPLevel = new FunctionNode( [ // taken from here: http://casual-effects.blogspot.ca/2011/08/plausible-environment-lighting-in-two.html - "float getSpecularMIPLevel( const in float roughness, const in float maxMIPLevelScalar ) {", +...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/SubSlotNode.js
@@ -10,7 +10,7 @@ function SubSlotNode( slots ) { SubSlotNode.prototype = Object.create( TempNode.prototype ); SubSlotNode.prototype.constructor = SubSlotNode; -SubSlotNode.prototype.nodeType = "SubSlot"; +SubSlotNode.prototype.nodeType = 'SubSlot'; SubSlotNode.prototype.getType = function ( builder, output ) { ...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/SwitchNode.js
@@ -11,7 +11,7 @@ function SwitchNode( node, components ) { SwitchNode.prototype = Object.create( Node.prototype ); SwitchNode.prototype.constructor = SwitchNode; -SwitchNode.prototype.nodeType = "Switch"; +SwitchNode.prototype.nodeType = 'Switch'; SwitchNode.prototype.getType = function ( builder ) {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/TimerNode.js
@@ -18,7 +18,7 @@ TimerNode.DELTA = 'delta'; TimerNode.prototype = Object.create( FloatNode.prototype ); TimerNode.prototype.constructor = TimerNode; -TimerNode.prototype.nodeType = "Timer"; +TimerNode.prototype.nodeType = 'Timer'; TimerNode.prototype.getReadonly = function () {
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/UVTransformNode.js
@@ -4,7 +4,7 @@ import { UVNode } from '../accessors/UVNode.js'; function UVTransformNode( uv, position ) { - ExpressionNode.call( this, "( uvTransform * vec3( uvNode, 1 ) ).xy", "vec2" ); + ExpressionNode.call( this, '( uvTransform * vec3( uvNode, 1 ) ).xy', 'vec2' ); this.uv = uv || new UVNode(); this.posi...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/nodes/utils/VelocityNode.js
@@ -17,7 +17,7 @@ function VelocityNode( target, params ) { VelocityNode.prototype = Object.create( Vector3Node.prototype ); VelocityNode.prototype.constructor = VelocityNode; -VelocityNode.prototype.nodeType = "Velocity"; +VelocityNode.prototype.nodeType = 'Velocity'; VelocityNode.prototype.getReadonly = functi...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/utils/GeometryCompressionUtils.js
@@ -30,31 +30,31 @@ var GeometryCompressionUtils = { if ( ! mesh.geometry ) { - console.error( "Mesh must contain geometry. " ); + console.error( 'Mesh must contain geometry. ' ); } const normal = mesh.geometry.attributes.normal; if ( ! normal ) { - console.error( "Geometry must contain no...
true
Other
mrdoob
three.js
9f07bafb9b8410f55879e96be3d336e094e85cf9.json
Run lint fix on js and jsm files
examples/jsm/webxr/XRControllerModelFactory.js
@@ -259,7 +259,7 @@ var XRControllerModelFactory = ( function () { if ( ! this.gltfLoader ) { - throw new Error( `GLTFLoader not set.` ); + throw new Error( 'GLTFLoader not set.' ); }
true
Other
mrdoob
three.js
eeb8c94963a7dd2d58d2691a097980652928d300.json
Fix accented chars. Update jsm
examples/js/loaders/SVGLoader.js
@@ -665,13 +665,13 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype rx = Math.abs( rx ); ry = Math.abs( ry ); - // Compute (x1′, y1′) + // Compute (x1', y1') var dx2 = ( start.x - end.x ) / 2.0; var dy2 = ( start.y - end.y ) / 2.0; var x1p = Math.cos( x_a...
true
Other
mrdoob
three.js
eeb8c94963a7dd2d58d2691a097980652928d300.json
Fix accented chars. Update jsm
examples/jsm/loaders/SVGLoader.js
@@ -69,6 +69,8 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { var transform = getNodeTransform( node ); + var traverseChildNodes = true; + var path = null; switch ( node.nodeName ) { @@ -119,6 +121,24 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototy...
true
Other
mrdoob
three.js
bfdf0c9590d239adf20bfb771f7bcddd1429f0bb.json
Fix == to ===
examples/js/loaders/SVGLoader.js
@@ -1093,7 +1093,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype function getNodeTransform( node ) { - if ( ! ( node.hasAttribute( 'transform' ) || ( node.nodeName == 'use' && ( node.hasAttribute( 'x' ) || node.hasAttribute( 'y' ) ) ) ) ) { + if ( ! ( node.hasAttribute( ...
false
Other
mrdoob
three.js
10ba26e9fa3b060b132c7e0c3cc17a4188e734d9.json
Implement defs and use nodes. First test.
examples/jsm/loaders/SVGLoader.js
@@ -69,6 +69,8 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { var transform = getNodeTransform( node ); + var traverseChildNodes = true; + var path = null; switch ( node.nodeName ) { @@ -119,6 +121,17 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototy...
false
Other
mrdoob
three.js
a532b006a10b9efd47b76498eb17746bf0998945.json
remove redundant code
examples/jsm/loaders/3DMLoader.js
@@ -272,12 +272,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), { var _object = this._createObject( obj, material ); - if ( ! this.materials.includes( material ) ) { - - this.materials.push( material ); - - } - if ( _object === undefined ) { contin...
false
Other
mrdoob
three.js
e9297a470c147b463e4e80a87e1471c1bd2ecad8.json
set AmbientLight.castshadow to `false` set to `false` instead of `undefined`
src/lights/AmbientLight.js
@@ -6,7 +6,7 @@ function AmbientLight( color, intensity ) { this.type = 'AmbientLight'; - this.castShadow = undefined; + this.castShadow = false; }
false
Other
mrdoob
three.js
8a308ca879a1074e421b80c1bfc32ae633d360f0.json
convert EdgesGeometry to use BufferGeometry
src/geometries/EdgesGeometry.js
@@ -1,7 +1,13 @@ import { BufferGeometry } from '../core/BufferGeometry.js'; import { Float32BufferAttribute } from '../core/BufferAttribute.js'; -import { Geometry } from '../core/Geometry.js'; import { MathUtils } from '../math/MathUtils.js'; +import { Triangle } from '../math/Triangle.js'; +import { Vector3 } fro...
false
Other
mrdoob
three.js
0ebb935ab54f79f8a45e7e86e67e041654557b0b.json
remove line about array index notation
docs/api/en/materials/ShaderMaterial.html
@@ -54,9 +54,6 @@ <h1>[name]</h1> <li> The loop variable has to be *i*. </li> - <li> - Array accesses within the loop must include spaces around the index: <b>array[ i ]</b>. - </li> <li> The value *UNROLLED_LOOP_INDEX* will be replaced with the explicity value of *i* for th...
true
Other
mrdoob
three.js
0ebb935ab54f79f8a45e7e86e67e041654557b0b.json
remove line about array index notation
docs/api/zh/materials/ShaderMaterial.html
@@ -43,9 +43,6 @@ <h1>着色器材质([name])</h1> <li> 循环变量必须是*i*。 </li> - <li> - Array accesses within the loop must include spaces around the index: <b>array[ i ]</b>. - </li> <li> The value *UNROLLED_LOOP_INDEX* will be replaced with the explicity value of *i* for the given iterat...
true
Other
mrdoob
three.js
aa9270b79956874c49ca7780bd6b92a6c8fab37a.json
update chinese docs
docs/api/zh/materials/ShaderMaterial.html
@@ -43,6 +43,12 @@ <h1>着色器材质([name])</h1> <li> 循环变量必须是*i*。 </li> + <li> + Array accesses within the loop must include spaces around the index: <b>array[ i ]</b>. + </li> + <li> + The value *UNROLL_LOOP_INDEX* will be replaced with the explicity value of *i* for the given iterati...
false
Other
mrdoob
three.js
56146c57d9ec136339f9f83dbf66d059d07dfca3.json
Add instanceMatrix to shader documentation This change documents some speed bumps I ran into while trying to write a shader for instanced objects. There are enough levels of indirection in reading ShaderChunks from source that figuring out how instanceMatrix is used there was too difficult for me. Thankfully someone...
docs/api/en/renderers/webgl/WebGLProgram.html
@@ -92,6 +92,16 @@ <h3>Vertex shader (conditional):</h3> attribute vec4 skinWeight; #endif </code> + <code> + #ifdef USE_INSTANCING + // Note that modelViewMatrix is not set when rendering an instanced model, + // but can be calculated from viewMatrix * modelMatrix. + // + // Basic Usage: + // g...
false
Other
mrdoob
three.js
a31539c59f4e26b89a8add347ecde70d3a527e86.json
Use setter function
examples/jsm/math/MeshSurfaceSampler.js
@@ -35,6 +35,7 @@ var MeshSurfaceSampler = ( function () { } this.geometry = geometry; + this.randomFunction = Math.random; this.positionAttribute = this.geometry.getAttribute( 'position' ); this.weightAttribute = null; @@ -104,17 +105,18 @@ var MeshSurfaceSampler = ( function () { }, - getRand...
false
Other
mrdoob
three.js
02bcf34c04c3f817b87e37602e0050375342523d.json
fix space error
src/animation/AnimationClip.d.ts
@@ -45,6 +45,6 @@ export class AnimationClip { animation: any, bones: Bone[] ): AnimationClip; - static toJSON( json: any): any; + static toJSON( json: any ): any; }
false
Other
mrdoob
three.js
d8c856bae45c76b0efde8677f27a84925374b097.json
Adjust box material in instanced demo
examples/webgl_modifier_curve_instanced.html
@@ -51,7 +51,7 @@ camera.lookAt( scene.position ); const boxGeometry = new THREE.BoxBufferGeometry( 0.1, 0.1, 0.1 ); - const boxMaterial = new THREE.MeshBasicMaterial( 0x99ff99 ); + const boxMaterial = new THREE.MeshBasicMaterial(); const curves = [[ { x: 1, y: - 0.5, z: - 1 },
false
Other
mrdoob
three.js
11597dc6e407129d66f843713061011d45200a76.json
Add missing vertex projection
examples/jsm/modifiers/CurveModifier.js
@@ -180,7 +180,13 @@ vec3 transformed = basis + spinePos; vec3 transformedNormal = normalMatrix * (basis * objectNormal); -`); +`).replace( + '#include <project_vertex>', +` +vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 ); +gl_Position = projectionMatrix * mvPosition; +` +); shader.vertexShader ...
true
Other
mrdoob
three.js
11597dc6e407129d66f843713061011d45200a76.json
Add missing vertex projection
examples/webgl_modifier_curve.html
@@ -58,7 +58,7 @@ ]; const boxGeometry = new THREE.BoxBufferGeometry( 0.1, 0.1, 0.1 ); - const boxMaterial = new THREE.MeshBasicMaterial( { color: 0x99ff99 } ); + const boxMaterial = new THREE.MeshBasicMaterial(); for ( const handlePos of initialPoints ) { @@ -116,7 +116,9 @@ geometry...
true
Other
mrdoob
three.js
6419e92e139861c0d8c1dc633003b226f96dd26a.json
assure a minimum pointCount of 2
examples/jsm/loaders/3DMLoader.js
@@ -1303,7 +1303,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () { if ( curve instanceof rhino.ArcCurve ) { pointCount = Math.floor( curve.angleDegrees / 5 ); - pointCount = pointCount < 1 ? 2 : pointCount; + pointCount = pointCount < 2 ? 2 : pointCount; // alternative to this hardcoded version: https...
false
Other
mrdoob
three.js
f6f8d939c351d31454068b7ac26a4b8cc2e350e9.json
remove displaced character
examples/jsm/loaders/3DMLoader.js
@@ -494,7 +494,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), { brepObject.userData[ 'attributes' ] = attributes; brepObject.userData[ 'objectType' ] = obj.objectType; -< if( attributes.name ) { + if( attributes.name ) { brepObject.name = attributes.name; ...
false
Other
mrdoob
three.js
77fc77918ca1507da0eb1f9956b624017cad851f.json
Read object name from .3dm file
examples/jsm/loaders/3DMLoader.js
@@ -442,6 +442,9 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), { var points = new Points( geometry, material ); points.userData[ 'attributes' ] = attributes; points.userData[ 'objectType' ] = obj.objectType; + if( attributes.name ) { + points.name = attributes.nam...
false
Other
mrdoob
three.js
75818b124dd31734d79bf2caf8c40f98af3d1216.json
remove vertical offset
examples/webgl_shadow_contact.html
@@ -137,7 +137,6 @@ } ); fillPlane = new THREE.Mesh( planeGeometry, fillPlaneMaterial ); fillPlane.rotateX( Math.PI ); - fillPlane.position.y -= 0.00001; shadowGroup.add( fillPlane ); // the camera to render the depth material from
false
Other
mrdoob
three.js
e4702c1b0f2bcab36ffcd3585ba3e77bbe3fce83.json
Add Color import
src/renderers/WebGLRenderer.js
@@ -38,6 +38,7 @@ import { WebGLUniforms } from './webgl/WebGLUniforms.js'; import { WebGLUtils } from './webgl/WebGLUtils.js'; import { WebXRManager } from './webxr/WebXRManager.js'; import { WebGLMaterials } from "./webgl/WebGLMaterials.js"; +import { Color } from '../math/Color.js'; function createCanvasElemen...
false
Other
mrdoob
three.js
e3b7148455ade60b594547478d1aff5a8ee1cf4a.json
update js examples
examples/js/postprocessing/ClearPass.js
@@ -6,6 +6,7 @@ THREE.ClearPass = function ( clearColor, clearAlpha ) { this.clearColor = ( clearColor !== undefined ) ? clearColor : 0x000000; this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0; + this.oldClearColor = new THREE.Color(); }; @@ -15,11 +16,11 @@ THREE.ClearPass.prototype = Object....
true
Other
mrdoob
three.js
e3b7148455ade60b594547478d1aff5a8ee1cf4a.json
update js examples
examples/js/postprocessing/RenderPass.js
@@ -13,6 +13,7 @@ THREE.RenderPass = function ( scene, camera, overrideMaterial, clearColor, clear this.clear = true; this.clearDepth = false; this.needsSwap = false; + this.oldClearColor = new THREE.Color(); }; @@ -25,7 +26,7 @@ THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype...
true
Other
mrdoob
three.js
e3b7148455ade60b594547478d1aff5a8ee1cf4a.json
update js examples
examples/js/postprocessing/SSAARenderPass.js
@@ -21,6 +21,7 @@ THREE.SSAARenderPass = function ( scene, camera, clearColor, clearAlpha ) { // as we need to clear the buffer in this pass, clearColor must be set to something, defaults to black. this.clearColor = ( clearColor !== undefined ) ? clearColor : 0x000000; this.clearAlpha = ( clearAlpha !== undefined...
true
Other
mrdoob
three.js
380067c434f2afcbce6a2f33e72b711039d2b955.json
Add target to getClearColor
src/renderers/WebGLRenderer.js
@@ -532,9 +532,17 @@ function WebGLRenderer( parameters ) { // Clearing - this.getClearColor = function () { + this.getClearColor = function ( target ) { - return background.getClearColor(); + if ( target === undefined ) { + + console.warn( 'WebGLRenderer: .getClearColor() now requires a Color as an argumen...
false
Other
mrdoob
three.js
2a6c961acef8052ca2cd28ed601e672596aeecbd.json
Fix UASTC to BC7 target format selection
examples/jsm/loaders/KTX2Loader.js
@@ -467,7 +467,7 @@ class KTX2Container { } else if ( config.bptcSupported && texFormat === TextureFormat.UASTC4x4 ) { - targetFormat = hasAlpha ? TranscodeTarget.BC7_M5_RGBA : BC7_M6_RGB; + targetFormat = TranscodeTarget.BC7_M5_RGBA; this.transcodedFormat = RGBA_BPTC_Format; } else if ( config.dxtS...
false
Other
mrdoob
three.js
db511ff51ad7d583b6f688779d7b67317cf8c1db.json
add LUT tag
examples/tags.json
@@ -86,6 +86,7 @@ "webgl_postprocessing_ssao": [ "ambient occlusion" ], "webgl_postprocessing_unreal_bloom": [ "glow" ], "webgl_postprocessing_unreal_bloom_selective": [ "glow" ], + "webgl_postprocessing_3dlut": [ "color grading" ], "webgl_materials_modified": [ "onBeforeCompile" ], "webgl_shadowmap_csm": [ "...
false
Other
mrdoob
three.js
911722fa6eb9f2e503e8f564406adb9634bc4fc0.json
update node snippets
examples/jsm/renderers/webgpu/ShaderLib.js
@@ -30,12 +30,36 @@ const ShaderLib = { layout(set = 0, binding = 3) uniform sampler mySampler; layout(set = 0, binding = 4) uniform texture2D myTexture; + #ifdef NODE_UNIFORMS + + layout(set = 0, binding = 5) uniform NodeUniforms { + NODE_UNIFORMS + } nodeUniforms; + + #endif + layout(location = 0) in...
false
Other
mrdoob
three.js
60defe3864a5bb62858b9f6bc7745b1697abb118.json
Remove manual render state setting Nested render calls now automatically restore the correct render state from the stack. getRenderState/setRenderState are not part of the public API so they can be safely removed from WebGLRenderer.
src/renderers/WebGLRenderer.js
@@ -1768,18 +1768,6 @@ function WebGLRenderer( parameters ) { }; - this.getRenderState = function () { - - return currentRenderState; - - }; - - this.setRenderState = function ( renderState ) { - - currentRenderState = renderState; - - }; - this.getRenderTarget = function () { return _currentRenderTarget...
true
Other
mrdoob
three.js
60defe3864a5bb62858b9f6bc7745b1697abb118.json
Remove manual render state setting Nested render calls now automatically restore the correct render state from the stack. getRenderState/setRenderState are not part of the public API so they can be safely removed from WebGLRenderer.
src/renderers/webgl/WebGLCubeMaps.js
@@ -42,15 +42,13 @@ function WebGLCubeMaps( renderer ) { const currentRenderList = renderer.getRenderList(); const currentRenderTarget = renderer.getRenderTarget(); - const currentRenderState = renderer.getRenderState(); const renderTarget = new WebGLCubeRenderTarget( image.height / 2 ); ...
true
Other
mrdoob
three.js
8ef5d5fcf91edba4c48e1d9f29f4649d145018e7.json
Remove regenerator-runtime (#21448) * Remove regenerator-runtime * Remove unnecessary nodeResolve as well
package-lock.json
@@ -18,7 +18,6 @@ "eslint": "^7.21.0", "eslint-config-mdcs": "^5.0.0", "eslint-plugin-html": "^6.1.1", - "regenerator-runtime": "^0.13.7", "rollup": "^2.40.0", "rollup-plugin-filesize": "^9.1.1", "rollup-plugin-terser": "^7.0.2",
true
Other
mrdoob
three.js
8ef5d5fcf91edba4c48e1d9f29f4649d145018e7.json
Remove regenerator-runtime (#21448) * Remove regenerator-runtime * Remove unnecessary nodeResolve as well
package.json
@@ -93,7 +93,6 @@ "eslint": "^7.21.0", "eslint-config-mdcs": "^5.0.0", "eslint-plugin-html": "^6.1.1", - "regenerator-runtime": "^0.13.7", "rollup": "^2.40.0", "rollup-plugin-filesize": "^9.1.1", "rollup-plugin-terser": "^7.0.2",
true
Other
mrdoob
three.js
8ef5d5fcf91edba4c48e1d9f29f4649d145018e7.json
Remove regenerator-runtime (#21448) * Remove regenerator-runtime * Remove unnecessary nodeResolve as well
utils/build/rollup.config.js
@@ -1,5 +1,4 @@ import babel from '@rollup/plugin-babel'; -import { nodeResolve } from '@rollup/plugin-node-resolve'; import { terser } from 'rollup-plugin-terser'; function glconstants() { @@ -272,29 +271,6 @@ ${ code }`; } -function polyfills() { - - return { - - transform( code, filePath ) { - - if ( fi...
true
Other
mrdoob
three.js
976404aa285c092cdf5dd3d2bd282b4d9b3be94a.json
Fix resize issue in OutlinePass (#21436)
examples/js/postprocessing/OutlinePass.js
@@ -134,6 +134,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype setSize: function ( width, height ) { this.renderTargetMaskBuffer.setSize( width, height ); + this.renderTargetDepthBuffer.setSize( width, height ); var resx = Math.round( width / this.downSampleRatio ); ...
true
Other
mrdoob
three.js
976404aa285c092cdf5dd3d2bd282b4d9b3be94a.json
Fix resize issue in OutlinePass (#21436)
examples/jsm/postprocessing/OutlinePass.js
@@ -154,6 +154,7 @@ OutlinePass.prototype = Object.assign( Object.create( Pass.prototype ), { setSize: function ( width, height ) { this.renderTargetMaskBuffer.setSize( width, height ); + this.renderTargetDepthBuffer.setSize( width, height ); var resx = Math.round( width / this.downSampleRatio ); var re...
true
Other
mrdoob
three.js
6f86fda4d312996e3f4281ceccc02f0419e55c0d.json
Fix MMDAnimationHelper lint errors (#21398)
examples/js/animation/MMDAnimationHelper.js
@@ -220,7 +220,7 @@ THREE.MMDAnimationHelper = ( function () { mesh.updateMatrixWorld( true ); // PMX animation system special path - if ( this.configuration.pmxAnimation && + if ( this.configuration.pmxAnimation && mesh.geometry.userData.MMD && mesh.geometry.userData.MMD.format === 'pmx' ) { ...
true
Other
mrdoob
three.js
6f86fda4d312996e3f4281ceccc02f0419e55c0d.json
Fix MMDAnimationHelper lint errors (#21398)
examples/jsm/animation/MMDAnimationHelper.js
@@ -229,7 +229,7 @@ var MMDAnimationHelper = ( function () { mesh.updateMatrixWorld( true ); // PMX animation system special path - if ( this.configuration.pmxAnimation && + if ( this.configuration.pmxAnimation && mesh.geometry.userData.MMD && mesh.geometry.userData.MMD.format === 'pmx' ) { v...
true
Other
mrdoob
three.js
fa43b759e76cc81aeebbe6e9e7df743e50773c1f.json
use DataTextureLoader and custom onLoad
examples/js/loaders/TGALoader.js
@@ -1,43 +1,28 @@ THREE.TGALoader = function ( manager ) { - THREE.Loader.call( this, manager ); + THREE.DataTextureLoader.call( this, manager ); }; -THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype ), { +THREE.TGALoader.prototype = Object.assign( Object.create( THREE.DataTexture...
true
Other
mrdoob
three.js
fa43b759e76cc81aeebbe6e9e7df743e50773c1f.json
use DataTextureLoader and custom onLoad
examples/jsm/loaders/TGALoader.js
@@ -1,51 +1,34 @@ import { - DataTexture, - FileLoader, + DataTextureLoader, LinearFilter, - LinearMipmapLinearFilter, - Loader + LinearMipmapLinearFilter } from '../../../build/three.module.js'; var TGALoader = function ( manager ) { - Loader.call( this, manager ); + DataTextureLoader.call( this, manager ); ...
true
Other
mrdoob
three.js
16ffe39a867ee15723a7ffb2c97e773f3920cd29.json
use modularize.js to generate jsm
examples/js/loaders/TGALoader.js
@@ -1,41 +1,13 @@ THREE.TGALoader = function ( manager ) { - THREE.Loader.call( this, manager ); + THREE.DataTextureLoader.call( this, manager ); }; -THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype ), { +THREE.TGALoader.prototype = Object.assign( Object.create( THREE.DataTexture...
true
Other
mrdoob
three.js
16ffe39a867ee15723a7ffb2c97e773f3920cd29.json
use modularize.js to generate jsm
examples/jsm/loaders/TGALoader.js
@@ -1,5 +1,5 @@ import { - DataTextureLoader, + DataTextureLoader } from '../../../build/three.module.js'; var TGALoader = function ( manager ) {
true
Other
mrdoob
three.js
f1048891d978beb69b81a34c604641cf4caa2f47.json
translate curve.html to chinese (#22599)
docs/api/zh/extras/core/Curve.html
@@ -10,111 +10,102 @@ <h1>[name]</h1> <p class="desc"> - An abstract base class for creating a [name] object that contains methods for interpolation. - For an array of [name]s see [page:CurvePath]. + 用于创建包含插值方法的[name]对象的抽象基类。 + 有关[name]的数组,请参见[page:CurvePath]。 </p> <h2>Constructor</h2> <h3>...
false
Other
mrdoob
three.js
7de6e2976bf4fb5ab2c7f172d6aa65fa0f52353e.json
Restore missing fill-rule (#22511) (#22597)
examples/jsm/loaders/SVGLoader.js
@@ -1007,6 +1007,7 @@ class SVGLoader extends Loader { addStyle( 'fill', 'fill' ); addStyle( 'fill-opacity', 'fillOpacity', clamp ); + addStyle( 'fill-rule', 'fillRule' ); addStyle( 'opacity', 'opacity', clamp ); addStyle( 'stroke', 'stroke' ); addStyle( 'stroke-opacity', 'strokeOpacity', clamp ...
false
Other
mrdoob
three.js
78a12767f0223cf429df04099353b7c0437915c0.json
fix rgb output
examples/jsm/exporters/USDZExporter.js
@@ -381,7 +381,7 @@ function buildMaterial( material, textures ) { float outputs:g float outputs:b float outputs:a - float3 outputs:rgba + float3 outputs:rgb }`; }
false
Other
mrdoob
three.js
5b654654adc27595f917c07066cb4d5cfbd9de21.json
add CheckerNode (#22592)
examples/jsm/renderers/nodes/Nodes.js
@@ -68,6 +68,9 @@ import SplitNode from './utils/SplitNode.js'; import SpriteSheetUVNode from './utils/SpriteSheetUVNode.js'; import TimerNode from './utils/TimerNode.js'; +// procedural +import CheckerNode from './procedural/CheckerNode.js'; + // core export * from './core/constants.js'; @@ -151,6 +154,9 @@ ex...
true
Other
mrdoob
three.js
5b654654adc27595f917c07066cb4d5cfbd9de21.json
add CheckerNode (#22592)
examples/jsm/renderers/nodes/procedural/CheckerNode.js
@@ -0,0 +1,36 @@ +import FunctionNode from '../core/FunctionNode.js'; +import Node from '../core/Node.js'; +import UVNode from '../accessors/UVNode.js'; + +const checker = new FunctionNode( ` +float ( vec2 uv ) { + + uv *= 2.0; + + float cx = floor( uv.x ); + float cy = floor( uv.y ); + float result = mod( cx + cy, 2.0...
true
Other
mrdoob
three.js
061ac286ba1f92bc01ff95a4f6f99edc95ff5c8a.json
Update USDZExporter.js (#22591)
examples/jsm/exporters/USDZExporter.js
@@ -380,7 +380,8 @@ function buildMaterial( material, textures ) { float outputs:r float outputs:g float outputs:b - float3 outputs:rgb + float outputs:a + float3 outputs:rgba }`; } @@ -449,7 +450,23 @@ function buildMaterial( material...
false