Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pmndrs/drei
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.86.2
Choose a base ref
...
head repository: pmndrs/drei
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.86.3
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 29, 2023

  1. fix: cloud scale

    drcmda committed Sep 29, 2023
    1
    Copy the full SHA
    d3282cd View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Cloud.tsx
4 changes: 2 additions & 2 deletions src/core/Cloud.tsx
Original file line number Diff line number Diff line change
@@ -150,9 +150,9 @@ export const Clouds = React.forwardRef<Group, CloudsProps>(
for (index = 0; index < clouds.current.length; index++) {
config = clouds.current[index]
config.ref.current.matrixWorld.decompose(translation, rotation, scale)
translation.add(pos.copy(config.position).applyQuaternion(rotation))
translation.add(pos.copy(config.position).applyQuaternion(rotation).multiply(scale))
rotation.copy(cquat).multiply(qat.setFromAxisAngle(dir, (config.rotation += delta * config.rotationFactor)))
scale.addScalar(config.volume + ((1 + Math.sin(t * config.density * config.speed)) / 2) * config.growth)
scale.multiplyScalar(config.volume + ((1 + Math.sin(t * config.density * config.speed)) / 2) * config.growth)
config.matrix.compose(translation, rotation, scale).premultiply(parentMatrix)
config.dist = translation.distanceTo(cpos)
}