Browse Source

Update PassNode.js

Clean up.
Michael Herzog 3 months ago
parent
commit
660853cabd
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/nodes/display/PassNode.js

+ 7 - 7
src/nodes/display/PassNode.js

@@ -392,24 +392,24 @@ class PassNode extends TempNode {
 	}
 
 	/**
-	 * Sets the resolution for the pass.
-	 * The resolution is a factor that is multiplied with the renderer's width and height.
+	 * Sets the resolution scale for the pass.
+	 * The resolution scale is a factor that is multiplied with the renderer's width and height.
 	 *
-	 * @param {number} resolution - The resolution to set. A value of `1` means full resolution.
+	 * @param {number} resolutionScale - The resolution scale to set. A value of `1` means full resolution.
 	 * @return {PassNode} A reference to this pass.
 	 */
-	setResolutionScale( resolution ) {
+	setResolutionScale( resolutionScale ) {
 
-		this._resolutionScale = resolution;
+		this._resolutionScale = resolutionScale;
 
 		return this;
 
 	}
 
 	/**
-	 * Gets the current resolution of the pass.
+	 * Gets the current resolution scale of the pass.
 	 *
-	 * @return {number} The current resolution. A value of `1` means full resolution.
+	 * @return {number} The current resolution scale. A value of `1` means full resolution.
 	 */
 	getResolutionScale() {
 

粤ICP备19079148号