Browse Source

Examples: Rename intensity to strength in Sculpt addon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mr.doob 1 month ago
parent
commit
ab66a69976
2 changed files with 5 additions and 5 deletions
  1. 2 2
      examples/jsm/sculpt/Sculpt.js
  2. 3 3
      examples/webgl_sculpt.html

+ 2 - 2
examples/jsm/sculpt/Sculpt.js

@@ -51,7 +51,7 @@ class Sculpt {
 
 		this.tool = 'brush';
 		this.radius = 50;
-		this.intensity = 0.5;
+		this.strength = 1.5;
 		this.negative = false;
 		this.subdivision = 0.75;
 		this.decimation = 0;
@@ -367,7 +367,7 @@ class Sculpt {
 
 		const iVertsFront = getFrontVertices( sm, iVerts, this._eyeDir );
 		const center = this._interPoint;
-		const intensity = this.intensity;
+		const intensity = this.strength;
 		const negative = this.negative;
 
 		if ( tool === 'brush' ) {

+ 3 - 3
examples/webgl_sculpt.html

@@ -140,7 +140,7 @@
 				const params = {
 					tool: 'brush',
 					radius: 50,
-					intensity: 0.5,
+					strength: 1.5,
 					subdivision: 0.75,
 					decimation: 0,
 					negative: false,
@@ -162,9 +162,9 @@
 
 				} );
 
-				gui.add( params, 'intensity', 0, 1 ).onChange( function ( value ) {
+				gui.add( params, 'strength', 0, 3 ).onChange( function ( value ) {
 
-					sculpt.intensity = value;
+					sculpt.strength = value;
 
 				} );
 

粤ICP备19079148号