Skip to content

Commit

Permalink
Eslinted
Browse files Browse the repository at this point in the history
  • Loading branch information
boytchev committed Oct 6, 2024
1 parent 9276192 commit e7db145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/example-posture-blend-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,21 @@
man1.position.x = 1;
man1.stepOnGround();

function transparentMaterial( material )
{
function transparentMaterial( material ) {

material.transparent = true;
material.opacity = 0.3;
material.depthWrite = false;

}


function transparentObject( object ) {

if ( object.material ) {

if( Array.isArray( object.material ) )
for( var mat of object.material ) transparentMaterial( mat );
if ( Array.isArray( object.material ) )
for ( var mat of object.material ) transparentMaterial( mat );
else
transparentMaterial( object.material );

Expand Down
2 changes: 1 addition & 1 deletion src/shapes/LimbShape.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LimbShape extends ParametricShape {
offset = params[ 5 ],
scale = params[ 6 ],
rad = params[ 7 ];

super( null, BODY_COLORS.LIMBS, function ( u, v, target ) {

u = THREE.MathUtils.smoothstep( u, 0, 1 );
Expand Down

0 comments on commit e7db145

Please sign in to comment.