Skip to content

Commit

Permalink
Merge pull request #353 from boostcampwm2023/feature/distance-limit
Browse files Browse the repository at this point in the history
[FE] 배경별 Distance limit
  • Loading branch information
bananaba authored Dec 14, 2023
2 parents c8122b3 + 0c938af commit 2e252b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function Instances({ count, size, color, isCustom }: PropsType) {

instancedMeshRef.current.getMatrixAt(index, tempMatrix);
tempObject.position.setFromMatrixPosition(tempMatrix);
tempObject.scale.set(scale, scale, scale);
if (scale > 0.5) tempObject.scale.set(scale, scale, scale);
tempObject.updateMatrix();
instancedMeshRef.current.setMatrixAt(index++, tempObject.matrix);
}
Expand Down

0 comments on commit 2e252b8

Please sign in to comment.