Jelajahi Sumber

SoftwareRenderer: Minor improvement.

Mr.doob 11 tahun lalu
induk
melakukan
8b6e0a032b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      examples/js/renderers/SoftwareRenderer.js

+ 1 - 1
examples/js/renderers/SoftwareRenderer.js

@@ -393,7 +393,7 @@ THREE.SoftwareRenderer = function ( parameters ) {
 		var id = material.id;
 		var shader = shaders[ id ];
 
-		if ( shaders[ id ] === undefined ) {
+		if ( shader === undefined ) {
 
 			if ( material instanceof THREE.MeshBasicMaterial ||
 				 material instanceof THREE.MeshLambertMaterial ||