Prechádzať zdrojové kódy

example url argument

sunag 8 rokov pred
rodič
commit
ab8bdf4e03
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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号