diff --git a/examples/css2d_label.html b/examples/css2d_label.html
index 043db9d17b9bc3..2ba18476ff1d1b 100644
--- a/examples/css2d_label.html
+++ b/examples/css2d_label.html
@@ -66,7 +66,7 @@
}
- }
+ };
const clock = new THREE.Clock();
const textureLoader = new THREE.TextureLoader();
diff --git a/examples/index.html b/examples/index.html
index 1658869da47ca9..0cd0146c6962df 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -312,10 +312,8 @@
function filterExample( file, exp, tags ) {
const link = links[ file ];
- const name = getName( file );
if ( file in tags ) file += ' ' + tags[ file ].join( ' ' );
const res = file.match( exp );
- let text;
if ( res && res.length > 0 ) {
diff --git a/examples/jsm/controls/ArcballControls.js b/examples/jsm/controls/ArcballControls.js
index a08d92a2127825..bd24a97985320f 100644
--- a/examples/jsm/controls/ArcballControls.js
+++ b/examples/jsm/controls/ArcballControls.js
@@ -2296,15 +2296,15 @@ class ArcballControls extends EventDispatcher {
//
- this._gizmos.traverse( function( object ) {
+ this._gizmos.traverse( function ( object ) {
if ( object.isLine ) {
-
+
object.geometry.dispose();
object.material.dispose();
-
+
}
-
+
} );
this._gizmos.clear();
diff --git a/examples/jsm/exporters/GLTFExporter.js b/examples/jsm/exporters/GLTFExporter.js
index 4a2d71fe2df916..ce1e2b70b27720 100644
--- a/examples/jsm/exporters/GLTFExporter.js
+++ b/examples/jsm/exporters/GLTFExporter.js
@@ -733,7 +733,7 @@ class GLTFWriter {
return ( c < 0.04045 ) ? c * 0.0773993808 : Math.pow( c * 0.9478672986 + 0.0521327014, 2.4 );
- }
+ };
}
@@ -741,7 +741,7 @@ class GLTFWriter {
return c;
- }
+ };
}
diff --git a/examples/jsm/loaders/KTX2Loader.js b/examples/jsm/loaders/KTX2Loader.js
index 8a3cdebe40362e..3d6cf80048666c 100644
--- a/examples/jsm/loaders/KTX2Loader.js
+++ b/examples/jsm/loaders/KTX2Loader.js
@@ -688,17 +688,17 @@ async function createDataTexture( container ) {
if ( ! _zstd ) {
- _zstd = new Promise(async (resolve) => {
+ _zstd = new Promise( async ( resolve ) => {
const zstd = new ZSTDDecoder();
await zstd.init();
- resolve(zstd);
+ resolve( zstd );
- });
+ } );
}
- levelData = (await _zstd).decode( level.levelData, level.uncompressedByteLength );
+ levelData = ( await _zstd ).decode( level.levelData, level.uncompressedByteLength );
} else {
diff --git a/examples/jsm/loaders/LDrawLoader.js b/examples/jsm/loaders/LDrawLoader.js
index 00c7efcd270f26..1c38e81477ff09 100644
--- a/examples/jsm/loaders/LDrawLoader.js
+++ b/examples/jsm/loaders/LDrawLoader.js
@@ -2413,8 +2413,7 @@ class LDrawLoader extends Loader {
lum = parseInt( token.substring( 9 ) );
- }
- else {
+ } else {
lum = parseInt( token );
diff --git a/examples/jsm/nodes/Nodes.js b/examples/jsm/nodes/Nodes.js
index dfb3fd48d88760..8d6dd64b2a23b0 100644
--- a/examples/jsm/nodes/Nodes.js
+++ b/examples/jsm/nodes/Nodes.js
@@ -80,7 +80,7 @@ import JoinNode from './utils/JoinNode.js';
import MatcapUVNode from './utils/MatcapUVNode.js';
import MaxMipLevelNode from './utils/MaxMipLevelNode.js';
import OscNode from './utils/OscNode.js';
-import RotateUVNode from './utils/RotateUVNode.js'
+import RotateUVNode from './utils/RotateUVNode.js';
import SplitNode from './utils/SplitNode.js';
import SpriteSheetUVNode from './utils/SpriteSheetUVNode.js';
import TimerNode from './utils/TimerNode.js';
diff --git a/examples/jsm/nodes/accessors/ReflectVectorNode.js b/examples/jsm/nodes/accessors/ReflectVectorNode.js
index e13efba225968c..c38814e1d5f1bc 100644
--- a/examples/jsm/nodes/accessors/ReflectVectorNode.js
+++ b/examples/jsm/nodes/accessors/ReflectVectorNode.js
@@ -14,7 +14,7 @@ class ReflectVectorNode extends Node {
getHash( /*builder*/ ) {
- return `reflectVector`;
+ return 'reflectVector';
}
diff --git a/examples/jsm/nodes/display/ColorAdjustmentNode.js b/examples/jsm/nodes/display/ColorAdjustmentNode.js
index 47b483e83ab06b..01e3ec68f931b1 100644
--- a/examples/jsm/nodes/display/ColorAdjustmentNode.js
+++ b/examples/jsm/nodes/display/ColorAdjustmentNode.js
@@ -22,7 +22,7 @@ const vibranceNode = new ShaderNode( ( { color, adjustment } ) => {
const average = div( add( color.r, color.g, color.b ), 3.0 );
const mx = max( color.r, max( color.g, color.b ) );
- const amt = mul( sub( mx, average ), mul( -3.0, adjustment ) );
+ const amt = mul( sub( mx, average ), mul( - 3.0, adjustment ) );
return mix( color.rgb, vec3( mx ), amt );
@@ -30,8 +30,8 @@ const vibranceNode = new ShaderNode( ( { color, adjustment } ) => {
const hueNode = new ShaderNode( ( { color, adjustment } ) => {
- const RGBtoYIQ = mat3( 0.299, 0.587, 0.114, 0.595716, -0.274453, -0.321263, 0.211456, -0.522591, 0.311135 );
- const YIQtoRGB = mat3( 1.0, 0.9563, 0.6210, 1.0, -0.2721, -0.6474, 1.0, -1.107, 1.7046 );
+ const RGBtoYIQ = mat3( 0.299, 0.587, 0.114, 0.595716, - 0.274453, - 0.321263, 0.211456, - 0.522591, 0.311135 );
+ const YIQtoRGB = mat3( 1.0, 0.9563, 0.6210, 1.0, - 0.2721, - 0.6474, 1.0, - 1.107, 1.7046 );
const yiq = mul( RGBtoYIQ, color );
diff --git a/examples/jsm/renderers/webgpu/WebGPURenderer.js b/examples/jsm/renderers/webgpu/WebGPURenderer.js
index dc5ceea4f7498b..fc3efd03f809dc 100644
--- a/examples/jsm/renderers/webgpu/WebGPURenderer.js
+++ b/examples/jsm/renderers/webgpu/WebGPURenderer.js
@@ -58,7 +58,7 @@ Matrix4.prototype.makeOrthographic = function ( left, right, top, bottom, near,
};
-Frustum.prototype.setFromProjectionMatrix = function( m ) {
+Frustum.prototype.setFromProjectionMatrix = function ( m ) {
const planes = this.planes;
const me = m.elements;
diff --git a/examples/misc_controls_fly.html b/examples/misc_controls_fly.html
index 01d788ed46f015..91bac272be1c89 100644
--- a/examples/misc_controls_fly.html
+++ b/examples/misc_controls_fly.html
@@ -93,9 +93,9 @@
specular: 0x333333,
shininess: 15,
- map: textureLoader.load( "textures/planets/earth_atmos_2048.jpg" ),
- specularMap: textureLoader.load( "textures/planets/earth_specular_2048.jpg" ),
- normalMap: textureLoader.load( "textures/planets/earth_normal_2048.jpg" ),
+ map: textureLoader.load( 'textures/planets/earth_atmos_2048.jpg' ),
+ specularMap: textureLoader.load( 'textures/planets/earth_specular_2048.jpg' ),
+ normalMap: textureLoader.load( 'textures/planets/earth_normal_2048.jpg' ),
// y scale is negated to compensate for normal map handedness.
normalScale: new THREE.Vector2( 0.85, - 0.85 )
@@ -115,7 +115,7 @@
const materialClouds = new THREE.MeshLambertMaterial( {
- map: textureLoader.load( "textures/planets/earth_clouds_1024.png" ),
+ map: textureLoader.load( 'textures/planets/earth_clouds_1024.png' ),
transparent: true
} );
@@ -129,7 +129,7 @@
const materialMoon = new THREE.MeshPhongMaterial( {
- map: textureLoader.load( "textures/planets/moon_1024.jpg" )
+ map: textureLoader.load( 'textures/planets/moon_1024.jpg' )
} );
diff --git a/examples/misc_exporter_collada.html b/examples/misc_exporter_collada.html
index 2117e9677ba1d0..d139f6ef585a3f 100644
--- a/examples/misc_exporter_collada.html
+++ b/examples/misc_exporter_collada.html
@@ -381,6 +381,7 @@
colors.push( r * 128, 0, b * 128 );
}
+
teapot.geometry.setAttribute( 'color', new THREE.Uint8BufferAttribute( colors, 3, true ) );
teapot.material.vertexColors = true;
teapot.material.needsUpdate = true;
diff --git a/examples/webgl2_materials_texture2darray.html b/examples/webgl2_materials_texture2darray.html
index 9ac6b15210189f..8069a6ae663e5d 100644
--- a/examples/webgl2_materials_texture2darray.html
+++ b/examples/webgl2_materials_texture2darray.html
@@ -159,7 +159,7 @@
if ( mesh ) {
- let value = mesh.material.uniforms[ "depth" ].value;
+ let value = mesh.material.uniforms[ 'depth' ].value;
value += depthStep;
@@ -172,7 +172,7 @@
}
- mesh.material.uniforms[ "depth" ].value = value;
+ mesh.material.uniforms[ 'depth' ].value = value;
}
diff --git a/examples/webgl_animation_skinning_additive_blending.html b/examples/webgl_animation_skinning_additive_blending.html
index d70e8ed5b7d6dc..74881210584a4e 100644
--- a/examples/webgl_animation_skinning_additive_blending.html
+++ b/examples/webgl_animation_skinning_additive_blending.html
@@ -203,10 +203,10 @@
const currentAction = currentSettings ? currentSettings.action : null;
const action = settings ? settings.action : null;
- if ( currentAction !== action ) {
-
+ if ( currentAction !== action ) {
+
prepareCrossFade( currentAction, action, 0.35 );
-
+
}
};
diff --git a/examples/webgl_buffergeometry_compression.html b/examples/webgl_buffergeometry_compression.html
index 64a7a1508eb1c0..68adc497956833 100644
--- a/examples/webgl_buffergeometry_compression.html
+++ b/examples/webgl_buffergeometry_compression.html
@@ -45,17 +45,17 @@
// options
const data = {
- "model": "Icosahedron",
- "wireframe": false,
- "texture": false,
- "detail": 4,
- "rotationSpeed": 0.1,
+ 'model': 'Icosahedron',
+ 'wireframe': false,
+ 'texture': false,
+ 'detail': 4,
+ 'rotationSpeed': 0.1,
- "QuantizePosEncoding": false,
- "NormEncodingMethods": "None", // for normal encodings
- "DefaultUVEncoding": false,
+ 'QuantizePosEncoding': false,
+ 'NormEncodingMethods': 'None', // for normal encodings
+ 'DefaultUVEncoding': false,
- "totalGPUMemory": "0 bytes"
+ 'totalGPUMemory': '0 bytes'
};
let memoryDisplay;
@@ -136,13 +136,13 @@
switch ( data.model ) {
- case "Icosahedron":
+ case 'Icosahedron':
return new THREE.IcosahedronGeometry( radius, data.detail );
- case "Cylinder":
+ case 'Cylinder':
return new THREE.CylinderGeometry( radius, radius, radius * 2, data.detail * 6 );
- case "Teapot":
+ case 'Teapot':
return new TeapotGeometry( radius, data.detail * 3, true, true, true, true, true );
- case "TorusKnot":
+ case 'TorusKnot':
return new THREE.TorusKnotGeometry( radius, 10, data.detail * 20, data.detail * 6, 3, 4 );
}
@@ -169,7 +169,7 @@
}
let folder = gui.addFolder( 'Scene' );
- folder.add( data, 'model', [ "Icosahedron", "Cylinder", "TorusKnot", "Teapot" ] ).onChange( generateGeometry );
+ folder.add( data, 'model', [ 'Icosahedron', 'Cylinder', 'TorusKnot', 'Teapot' ] ).onChange( generateGeometry );
folder.add( data, 'wireframe', false ).onChange( updateLineSegments );
folder.add( data, 'texture', false ).onChange( generateGeometry );
folder.add( data, 'detail', 1, 8, 1 ).onChange( generateGeometry );
@@ -181,7 +181,7 @@
folder.open();
folder = gui.addFolder( 'Normal Compression' );
- folder.add( data, 'NormEncodingMethods', [ "None", "DEFAULT", "OCT1Byte", "OCT2Byte", "ANGLES" ] ).onChange( generateGeometry );
+ folder.add( data, 'NormEncodingMethods', [ 'None', 'DEFAULT', 'OCT1Byte', 'OCT2Byte', 'ANGLES' ] ).onChange( generateGeometry );
folder.open();
folder = gui.addFolder( 'UV Compression' );
@@ -190,7 +190,7 @@
folder = gui.addFolder( 'Memory Info' );
folder.open();
- memoryDisplay = folder.add( data, 'totalGPUMemory', "0 bytes" );
+ memoryDisplay = folder.add( data, 'totalGPUMemory', '0 bytes' );
computeGPUMemory( mesh );
//
@@ -258,19 +258,19 @@
mesh.material = new THREE.MeshPhongMaterial( { color: 0xffffff, emissive: 0x111111 } );
mesh.material.map = data.texture ? texture : null;
- if ( data[ "QuantizePosEncoding" ] ) {
+ if ( data[ 'QuantizePosEncoding' ] ) {
GeometryCompressionUtils.compressPositions( mesh );
}
- if ( data[ "NormEncodingMethods" ] !== "None" ) {
+ if ( data[ 'NormEncodingMethods' ] !== 'None' ) {
- GeometryCompressionUtils.compressNormals( mesh, data[ "NormEncodingMethods" ] );
+ GeometryCompressionUtils.compressNormals( mesh, data[ 'NormEncodingMethods' ] );
}
- if ( data[ "DefaultUVEncoding" ] ) {
+ if ( data[ 'DefaultUVEncoding' ] ) {
GeometryCompressionUtils.compressUvs( mesh );
@@ -284,7 +284,7 @@
function computeGPUMemory( mesh ) {
// Use BufferGeometryUtils to do memory calculation
- memoryDisplay.setValue( BufferGeometryUtils.estimateBytesUsed( mesh.geometry ) + " bytes" );
+ memoryDisplay.setValue( BufferGeometryUtils.estimateBytesUsed( mesh.geometry ) + ' bytes' );
}
diff --git a/examples/webgl_geometry_shapes.html b/examples/webgl_geometry_shapes.html
index 363d9812bfb346..e730609d0665b6 100644
--- a/examples/webgl_geometry_shapes.html
+++ b/examples/webgl_geometry_shapes.html
@@ -71,7 +71,7 @@
scene.add( group );
const loader = new THREE.TextureLoader();
- const texture = loader.load( "textures/uv_grid_opengl.jpg" );
+ const texture = loader.load( 'textures/uv_grid_opengl.jpg' );
// it's necessary to apply these settings in order to correctly display the texture on a shape geometry
diff --git a/examples/webgl_gpgpu_birds_gltf.html b/examples/webgl_gpgpu_birds_gltf.html
index fd64fef652cf13..3a5c861d4afcaf 100644
--- a/examples/webgl_gpgpu_birds_gltf.html
+++ b/examples/webgl_gpgpu_birds_gltf.html
@@ -420,22 +420,22 @@
const valuesChanger = function () {
- velocityUniforms[ "separationDistance" ].value = effectController.separation;
- velocityUniforms[ "alignmentDistance" ].value = effectController.alignment;
- velocityUniforms[ "cohesionDistance" ].value = effectController.cohesion;
- velocityUniforms[ "freedomFactor" ].value = effectController.freedom;
- if ( materialShader ) materialShader.uniforms[ "size" ].value = effectController.size;
+ velocityUniforms[ 'separationDistance' ].value = effectController.separation;
+ velocityUniforms[ 'alignmentDistance' ].value = effectController.alignment;
+ velocityUniforms[ 'cohesionDistance' ].value = effectController.cohesion;
+ velocityUniforms[ 'freedomFactor' ].value = effectController.freedom;
+ if ( materialShader ) materialShader.uniforms[ 'size' ].value = effectController.size;
BirdGeometry.setDrawRange( 0, indicesPerBird * effectController.count );
};
valuesChanger();
- gui.add( effectController, "separation", 0.0, 100.0, 1.0 ).onChange( valuesChanger );
- gui.add( effectController, "alignment", 0.0, 100, 0.001 ).onChange( valuesChanger );
- gui.add( effectController, "cohesion", 0.0, 100, 0.025 ).onChange( valuesChanger );
- gui.add( effectController, "size", 0, 1, 0.01 ).onChange( valuesChanger );
- gui.add( effectController, "count", 0, BIRDS, 1 ).onChange( valuesChanger );
+ gui.add( effectController, 'separation', 0.0, 100.0, 1.0 ).onChange( valuesChanger );
+ gui.add( effectController, 'alignment', 0.0, 100, 0.001 ).onChange( valuesChanger );
+ gui.add( effectController, 'cohesion', 0.0, 100, 0.025 ).onChange( valuesChanger );
+ gui.add( effectController, 'size', 0, 1, 0.01 ).onChange( valuesChanger );
+ gui.add( effectController, 'count', 0, BIRDS, 1 ).onChange( valuesChanger );
gui.close();
initBirds( effectController );
@@ -457,8 +457,8 @@
fillPositionTexture( dtPosition );
fillVelocityTexture( dtVelocity );
- velocityVariable = gpuCompute.addVariable( "textureVelocity", document.getElementById( 'fragmentShaderVelocity' ).textContent, dtVelocity );
- positionVariable = gpuCompute.addVariable( "texturePosition", document.getElementById( 'fragmentShaderPosition' ).textContent, dtPosition );
+ velocityVariable = gpuCompute.addVariable( 'textureVelocity', document.getElementById( 'fragmentShaderVelocity' ).textContent, dtVelocity );
+ positionVariable = gpuCompute.addVariable( 'texturePosition', document.getElementById( 'fragmentShaderPosition' ).textContent, dtPosition );
gpuCompute.setVariableDependencies( velocityVariable, [ positionVariable, velocityVariable ] );
gpuCompute.setVariableDependencies( positionVariable, [ positionVariable, velocityVariable ] );
@@ -466,16 +466,16 @@
positionUniforms = positionVariable.material.uniforms;
velocityUniforms = velocityVariable.material.uniforms;
- positionUniforms[ "time" ] = { value: 0.0 };
- positionUniforms[ "delta" ] = { value: 0.0 };
- velocityUniforms[ "time" ] = { value: 1.0 };
- velocityUniforms[ "delta" ] = { value: 0.0 };
- velocityUniforms[ "testing" ] = { value: 1.0 };
- velocityUniforms[ "separationDistance" ] = { value: 1.0 };
- velocityUniforms[ "alignmentDistance" ] = { value: 1.0 };
- velocityUniforms[ "cohesionDistance" ] = { value: 1.0 };
- velocityUniforms[ "freedomFactor" ] = { value: 1.0 };
- velocityUniforms[ "predator" ] = { value: new THREE.Vector3() };
+ positionUniforms[ 'time' ] = { value: 0.0 };
+ positionUniforms[ 'delta' ] = { value: 0.0 };
+ velocityUniforms[ 'time' ] = { value: 1.0 };
+ velocityUniforms[ 'delta' ] = { value: 0.0 };
+ velocityUniforms[ 'testing' ] = { value: 1.0 };
+ velocityUniforms[ 'separationDistance' ] = { value: 1.0 };
+ velocityUniforms[ 'alignmentDistance' ] = { value: 1.0 };
+ velocityUniforms[ 'cohesionDistance' ] = { value: 1.0 };
+ velocityUniforms[ 'freedomFactor' ] = { value: 1.0 };
+ velocityUniforms[ 'predator' ] = { value: new THREE.Vector3() };
velocityVariable.material.defines.BOUNDS = BOUNDS.toFixed( 2 );
velocityVariable.wrapS = THREE.RepeatWrapping;
@@ -655,22 +655,22 @@
if ( delta > 1 ) delta = 1; // safety cap on large deltas
last = now;
- positionUniforms[ "time" ].value = now;
- positionUniforms[ "delta" ].value = delta;
- velocityUniforms[ "time" ].value = now;
- velocityUniforms[ "delta" ].value = delta;
- if ( materialShader ) materialShader.uniforms[ "time" ].value = now / 1000;
- if ( materialShader ) materialShader.uniforms[ "delta" ].value = delta;
+ positionUniforms[ 'time' ].value = now;
+ positionUniforms[ 'delta' ].value = delta;
+ velocityUniforms[ 'time' ].value = now;
+ velocityUniforms[ 'delta' ].value = delta;
+ if ( materialShader ) materialShader.uniforms[ 'time' ].value = now / 1000;
+ if ( materialShader ) materialShader.uniforms[ 'delta' ].value = delta;
- velocityUniforms[ "predator" ].value.set( 0.5 * mouseX / windowHalfX, - 0.5 * mouseY / windowHalfY, 0 );
+ velocityUniforms[ 'predator' ].value.set( 0.5 * mouseX / windowHalfX, - 0.5 * mouseY / windowHalfY, 0 );
mouseX = 10000;
mouseY = 10000;
gpuCompute.compute();
- if ( materialShader ) materialShader.uniforms[ "texturePosition" ].value = gpuCompute.getCurrentRenderTarget( positionVariable ).texture;
- if ( materialShader ) materialShader.uniforms[ "textureVelocity" ].value = gpuCompute.getCurrentRenderTarget( velocityVariable ).texture;
+ if ( materialShader ) materialShader.uniforms[ 'texturePosition' ].value = gpuCompute.getCurrentRenderTarget( positionVariable ).texture;
+ if ( materialShader ) materialShader.uniforms[ 'textureVelocity' ].value = gpuCompute.getCurrentRenderTarget( velocityVariable ).texture;
renderer.render( scene, camera );
diff --git a/examples/webgl_lights_physical.html b/examples/webgl_lights_physical.html
index fbf957d146f39a..82a50cc7c62125 100644
--- a/examples/webgl_lights_physical.html
+++ b/examples/webgl_lights_physical.html
@@ -44,29 +44,29 @@
// ref for lumens: http://www.power-sure.com/lumens.htm
const bulbLuminousPowers = {
- "110000 lm (1000W)": 110000,
- "3500 lm (300W)": 3500,
- "1700 lm (100W)": 1700,
- "800 lm (60W)": 800,
- "400 lm (40W)": 400,
- "180 lm (25W)": 180,
- "20 lm (4W)": 20,
- "Off": 0
+ '110000 lm (1000W)': 110000,
+ '3500 lm (300W)': 3500,
+ '1700 lm (100W)': 1700,
+ '800 lm (60W)': 800,
+ '400 lm (40W)': 400,
+ '180 lm (25W)': 180,
+ '20 lm (4W)': 20,
+ 'Off': 0
};
// ref for solar irradiances: https://en.wikipedia.org/wiki/Lux
const hemiLuminousIrradiances = {
- "0.0001 lx (Moonless Night)": 0.0001,
- "0.002 lx (Night Airglow)": 0.002,
- "0.5 lx (Full Moon)": 0.5,
- "3.4 lx (City Twilight)": 3.4,
- "50 lx (Living Room)": 50,
- "100 lx (Very Overcast)": 100,
- "350 lx (Office Room)": 350,
- "400 lx (Sunrise/Sunset)": 400,
- "1000 lx (Overcast)": 1000,
- "18000 lx (Daylight)": 18000,
- "50000 lx (Direct Sun)": 50000
+ '0.0001 lx (Moonless Night)': 0.0001,
+ '0.002 lx (Night Airglow)': 0.002,
+ '0.5 lx (Full Moon)': 0.5,
+ '3.4 lx (City Twilight)': 3.4,
+ '50 lx (Living Room)': 50,
+ '100 lx (Very Overcast)': 100,
+ '350 lx (Office Room)': 350,
+ '400 lx (Sunrise/Sunset)': 400,
+ '1000 lx (Overcast)': 1000,
+ '18000 lx (Daylight)': 18000,
+ '50000 lx (Direct Sun)': 50000
};
const params = {
@@ -117,7 +117,7 @@
bumpScale: 0.0005
} );
const textureLoader = new THREE.TextureLoader();
- textureLoader.load( "textures/hardwood2_diffuse.jpg", function ( map ) {
+ textureLoader.load( 'textures/hardwood2_diffuse.jpg', function ( map ) {
map.wrapS = THREE.RepeatWrapping;
map.wrapT = THREE.RepeatWrapping;
@@ -128,7 +128,7 @@
floorMat.needsUpdate = true;
} );
- textureLoader.load( "textures/hardwood2_bump.jpg", function ( map ) {
+ textureLoader.load( 'textures/hardwood2_bump.jpg', function ( map ) {
map.wrapS = THREE.RepeatWrapping;
map.wrapT = THREE.RepeatWrapping;
@@ -138,7 +138,7 @@
floorMat.needsUpdate = true;
} );
- textureLoader.load( "textures/hardwood2_roughness.jpg", function ( map ) {
+ textureLoader.load( 'textures/hardwood2_roughness.jpg', function ( map ) {
map.wrapS = THREE.RepeatWrapping;
map.wrapT = THREE.RepeatWrapping;
@@ -155,7 +155,7 @@
bumpScale: 0.002,
metalness: 0.2
} );
- textureLoader.load( "textures/brick_diffuse.jpg", function ( map ) {
+ textureLoader.load( 'textures/brick_diffuse.jpg', function ( map ) {
map.wrapS = THREE.RepeatWrapping;
map.wrapT = THREE.RepeatWrapping;
@@ -166,7 +166,7 @@
cubeMat.needsUpdate = true;
} );
- textureLoader.load( "textures/brick_bump.jpg", function ( map ) {
+ textureLoader.load( 'textures/brick_bump.jpg', function ( map ) {
map.wrapS = THREE.RepeatWrapping;
map.wrapT = THREE.RepeatWrapping;
@@ -182,7 +182,7 @@
roughness: 0.5,
metalness: 1.0
} );
- textureLoader.load( "textures/planets/earth_atmos_2048.jpg", function ( map ) {
+ textureLoader.load( 'textures/planets/earth_atmos_2048.jpg', function ( map ) {
map.anisotropy = 4;
map.encoding = THREE.sRGBEncoding;
@@ -190,7 +190,7 @@
ballMat.needsUpdate = true;
} );
- textureLoader.load( "textures/planets/earth_specular_2048.jpg", function ( map ) {
+ textureLoader.load( 'textures/planets/earth_specular_2048.jpg', function ( map ) {
map.anisotropy = 4;
map.encoding = THREE.sRGBEncoding;
diff --git a/examples/webgl_lines_fat_wireframe.html b/examples/webgl_lines_fat_wireframe.html
index 8cf7d3dc49280b..a879ac43468dd3 100644
--- a/examples/webgl_lines_fat_wireframe.html
+++ b/examples/webgl_lines_fat_wireframe.html
@@ -222,7 +222,7 @@
// dashed is implemented as a defines -- not as a uniform. this could be changed.
// ... or THREE.LineDashedMaterial could be implemented as a separate material
// temporary hack - renderer should do this eventually
- if ( val ) matLine.defines.USE_DASH = ""; else delete matLine.defines.USE_DASH;
+ if ( val ) matLine.defines.USE_DASH = ''; else delete matLine.defines.USE_DASH;
matLine.needsUpdate = true;
wireframe1.material = val ? matLineDashed : matLineBasic;
diff --git a/examples/webgl_loader_bvh.html b/examples/webgl_loader_bvh.html
index e8ef7569b8e50e..8eea646fef25e3 100644
--- a/examples/webgl_loader_bvh.html
+++ b/examples/webgl_loader_bvh.html
@@ -49,7 +49,7 @@
animate();
const loader = new BVHLoader();
- loader.load( "models/bvh/pirouette.bvh", function ( result ) {
+ loader.load( 'models/bvh/pirouette.bvh', function ( result ) {
skeletonHelper = new THREE.SkeletonHelper( result.skeleton.bones[ 0 ] );
skeletonHelper.skeleton = result.skeleton; // allow animation mixer to bind to THREE.SkeletonHelper directly
diff --git a/examples/webgl_loader_md2.html b/examples/webgl_loader_md2.html
index 73c22ab780de3d..9cd3c54dab57ce 100644
--- a/examples/webgl_loader_md2.html
+++ b/examples/webgl_loader_md2.html
@@ -106,7 +106,7 @@
// GROUND
- const gt = new THREE.TextureLoader().load( "textures/terrain/grasslight-big.jpg" );
+ const gt = new THREE.TextureLoader().load( 'textures/terrain/grasslight-big.jpg' );
const gg = new THREE.PlaneGeometry( 2000, 2000 );
const gm = new THREE.MeshPhongMaterial( { color: 0xffffff, map: gt } );
@@ -166,21 +166,21 @@
const config = {
- baseUrl: "models/md2/ratamahatta/",
-
- body: "ratamahatta.md2",
- skins: [ "ratamahatta.png", "ctf_b.png", "ctf_r.png", "dead.png", "gearwhore.png" ],
- weapons: [[ "weapon.md2", "weapon.png" ],
- [ "w_bfg.md2", "w_bfg.png" ],
- [ "w_blaster.md2", "w_blaster.png" ],
- [ "w_chaingun.md2", "w_chaingun.png" ],
- [ "w_glauncher.md2", "w_glauncher.png" ],
- [ "w_hyperblaster.md2", "w_hyperblaster.png" ],
- [ "w_machinegun.md2", "w_machinegun.png" ],
- [ "w_railgun.md2", "w_railgun.png" ],
- [ "w_rlauncher.md2", "w_rlauncher.png" ],
- [ "w_shotgun.md2", "w_shotgun.png" ],
- [ "w_sshotgun.md2", "w_sshotgun.png" ]
+ baseUrl: 'models/md2/ratamahatta/',
+
+ body: 'ratamahatta.md2',
+ skins: [ 'ratamahatta.png', 'ctf_b.png', 'ctf_r.png', 'dead.png', 'gearwhore.png' ],
+ weapons: [[ 'weapon.md2', 'weapon.png' ],
+ [ 'w_bfg.md2', 'w_bfg.png' ],
+ [ 'w_blaster.md2', 'w_blaster.png' ],
+ [ 'w_chaingun.md2', 'w_chaingun.png' ],
+ [ 'w_glauncher.md2', 'w_glauncher.png' ],
+ [ 'w_hyperblaster.md2', 'w_hyperblaster.png' ],
+ [ 'w_machinegun.md2', 'w_machinegun.png' ],
+ [ 'w_railgun.md2', 'w_railgun.png' ],
+ [ 'w_rlauncher.md2', 'w_rlauncher.png' ],
+ [ 'w_shotgun.md2', 'w_shotgun.png' ],
+ [ 'w_sshotgun.md2', 'w_sshotgun.png' ]
]
};
@@ -222,12 +222,12 @@
function labelize( text ) {
- const parts = text.split( "." );
+ const parts = text.split( '.' );
if ( parts.length > 1 ) {
parts.length -= 1;
- return parts.join( "." );
+ return parts.join( '.' );
}
@@ -239,7 +239,7 @@
function setupWeaponsGUI( character ) {
- const folder = gui.addFolder( "Weapons" );
+ const folder = gui.addFolder( 'Weapons' );
const generateCallback = function ( index ) {
@@ -268,7 +268,7 @@
function setupSkinsGUI( character ) {
- const folder = gui.addFolder( "Skins" );
+ const folder = gui.addFolder( 'Skins' );
const generateCallback = function ( index ) {
@@ -297,7 +297,7 @@
function setupGUIAnimations( character ) {
- const folder = gui.addFolder( "Animations" );
+ const folder = gui.addFolder( 'Animations' );
const generateCallback = function ( animationClip ) {
diff --git a/examples/webgl_materials_envmaps_groundprojected.html b/examples/webgl_materials_envmaps_groundprojected.html
index f91d087ff20b57..246d174492ee6d 100644
--- a/examples/webgl_materials_envmaps_groundprojected.html
+++ b/examples/webgl_materials_envmaps_groundprojected.html
@@ -37,8 +37,6 @@