Explorar el Código

example url argument

sunag hace 7 años
padre
commit
ab8bdf4e03
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/webgl_materials_nodes.html

+ 1 - 1
examples/webgl_materials_nodes.html

@@ -144,7 +144,7 @@
 			spherical: { url: 'textures/envmap.png' }
 		};
 
-		var param = { example: 'mesh-standard' };
+		var param = { example: new URL(window.location.href).searchParams.get('e') || 'mesh-standard' };
 
 		function getTexture( name ) {
 

粤ICP备19079148号