fix: make grass rotation less strong
This commit is contained in:
@@ -170,8 +170,8 @@ export default function Grass({
|
|||||||
dummy.position.set(localX, localY, localZ);
|
dummy.position.set(localX, localY, localZ);
|
||||||
|
|
||||||
dummy.rotation.y = Math.random() * Math.PI * 2;
|
dummy.rotation.y = Math.random() * Math.PI * 2;
|
||||||
dummy.rotation.x = (Math.random() - 0.5) * 0.2;
|
dummy.rotation.x = (Math.random() - 0.5) * 0.15;
|
||||||
dummy.rotation.z = (Math.random() - 0.5) * 0.2;
|
dummy.rotation.z = (Math.random() - 0.5) * 0.15;
|
||||||
|
|
||||||
const baseScale = grassSize + Math.random() * grassSize * 0.5;
|
const baseScale = grassSize + Math.random() * grassSize * 0.5;
|
||||||
const heightMult = 0.5 + Math.random() * 1.0;
|
const heightMult = 0.5 + Math.random() * 1.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user