Pārlūkot izejas kodu

Rename .colorSpace -> .colorSpaced (#27238)

sunag 1 gadu atpakaļ
vecāks
revīzija
3b2deb6c36

+ 1 - 1
examples/jsm/nodes/materials/MeshNormalNodeMaterial.js

@@ -17,7 +17,7 @@ class MeshNormalNodeMaterial extends NodeMaterial {
 
 		this.isMeshNormalNodeMaterial = true;
 
-		this.colorSpace = false;
+		this.colorSpaced = false;
 
 		this.setDefaultValues( defaultValues );
 

+ 3 - 2
examples/jsm/nodes/materials/NodeMaterial.js

@@ -37,7 +37,8 @@ class NodeMaterial extends ShaderMaterial {
 		this.fog = true;
 		this.lights = true;
 		this.normals = true;
-		this.colorSpace = true;
+
+		this.colorSpaced = true;
 
 		this.lightsNode = null;
 		this.envNode = null;
@@ -334,7 +335,7 @@ class NodeMaterial extends ShaderMaterial {
 
 		// ENCODING
 
-		if ( this.colorSpace === true ) {
+		if ( this.colorSpaced === true ) {
 
 			const renderTarget = renderer.getRenderTarget();