Pārlūkot izejas kodu

WebGPURenderer: Fix Light+NormalMaterial (#28747)

* fix lights=false

* cleanup
sunag 1 gadu atpakaļ
vecāks
revīzija
6d29751817

+ 2 - 2
examples/jsm/nodes/materials/MeshMatcapNodeMaterial.js

@@ -14,10 +14,10 @@ class MeshMatcapNodeMaterial extends NodeMaterial {
 
 
 		super();
 		super();
 
 
-		this.isMeshMatcapNodeMaterial = true;
-
 		this.lights = false;
 		this.lights = false;
 
 
+		this.isMeshMatcapNodeMaterial = true;
+
 		this.setDefaultValues( defaultValues );
 		this.setDefaultValues( defaultValues );
 
 
 		this.setValues( parameters );
 		this.setValues( parameters );

+ 2 - 0
examples/jsm/nodes/materials/MeshNormalNodeMaterial.js

@@ -15,6 +15,8 @@ class MeshNormalNodeMaterial extends NodeMaterial {
 
 
 		super();
 		super();
 
 
+		this.lights = false;
+
 		this.isMeshNormalNodeMaterial = true;
 		this.isMeshNormalNodeMaterial = true;
 
 
 		this.setDefaultValues( defaultValues );
 		this.setDefaultValues( defaultValues );