Browse Source

Examples: fix minor errors (#30798)

Co-authored-by: Samuel Rigaud <rigaud@gmail.com>
Samuel Rigaud 11 months ago
parent
commit
f3f3ed345a

+ 0 - 1
examples/webgl_geometry_extrude_shapes.html

@@ -43,7 +43,6 @@
 				info.style.width = '100%';
 				info.style.textAlign = 'center';
 				info.style.color = '#fff';
-				info.style.link = '#f80';
 				info.innerHTML = '<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - geometry extrude shapes';
 				document.body.appendChild( info );
 

+ 2 - 2
examples/webgl_loader_ldraw.html

@@ -200,7 +200,7 @@
 								newMaterial.opacity = material.opacity;
 								newMaterial.transparent = material.transparent;
 								newMaterial.depthWrite = material.depthWrite;
-								newMaterial.toneMapping = false;
+								newMaterial.toneMapped = false;
 
 								return newMaterial;
 
@@ -339,7 +339,7 @@
 
 					updateProgressBar( xhr.loaded / xhr.total );
 
-					console.log( Math.round( xhr.loaded / xhr.total * 100, 2 ) + '% downloaded' );
+					console.log( Math.round( xhr.loaded / xhr.total * 100 ) + '% downloaded' );
 
 				}
 

+ 4 - 4
examples/webgl_loader_texture_pvrtc.html

@@ -88,10 +88,10 @@
 				flare_2bpp_rgba.minFilter =
 				flare_2bpp_rgba.magFilter = THREE.LinearFilter;
 
-				disturb_2bpp_rgb.encoding =
-				flare_4bpp_rgba.encoding =
-				disturb_4bpp_rgb.encoding =
-				disturb_4bpp_rgb_v3.encoding =
+				disturb_2bpp_rgb.colorSpace =
+				flare_4bpp_rgba.colorSpace =
+				disturb_4bpp_rgb.colorSpace =
+				disturb_4bpp_rgb_v3.colorSpace =
 				flare_2bpp_rgba.colorSpace = THREE.SRGBColorSpace;
 
 				const material1 = new THREE.MeshBasicMaterial( { map: disturb_4bpp_rgb } );

+ 2 - 2
examples/webgl_renderer_pathtracer.html

@@ -264,7 +264,7 @@
 				updateProgressBar( 0 );
 
 				pathTracer.setScene( scene, camera );
-			
+
 				renderer.setAnimationLoop( animate );
 
 			}
@@ -363,7 +363,7 @@
 
 					updateProgressBar( xhr.loaded / xhr.total );
 
-					console.log( Math.round( xhr.loaded / xhr.total * 100, 2 ) + '% downloaded' );
+					console.log( Math.round( xhr.loaded / xhr.total * 100 ) + '% downloaded' );
 
 				}
 

粤ICP备19079148号