فهرست منبع

Rename .colorSpace -> .colorSpaced (#27238)

sunag 1 سال پیش
والد
کامیت
3b2deb6c36
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 1 1
      examples/jsm/nodes/materials/MeshNormalNodeMaterial.js
  2. 3 2
      examples/jsm/nodes/materials/NodeMaterial.js

+ 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();