Explorar o código

materials -> programs

Garrett Johnson %!s(int64=5) %!d(string=hai) anos
pai
achega
50926bcc3f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      example/index.js

+ 2 - 2
example/index.js

@@ -626,8 +626,8 @@ function render() {
 	if ( params.enableRendererStats ) {
 
 		const memory = renderer.info.memory;
-		const materialCount = renderer.info.programs.length;
-		str += `<br/>Geometries: ${ memory.geometries } Textures: ${ memory.textures } Materials: ${ materialCount }`;
+		const programCount = renderer.info.programs.length;
+		str += `<br/>Geometries: ${ memory.geometries } Textures: ${ memory.textures } Programs: ${ programCount }`;
 
 	}