Skip to content

Commit

Permalink
fix: VRT時に差分が発生しないようにする(端数処理)
Browse files Browse the repository at this point in the history
  • Loading branch information
mii288 committed Dec 13, 2024
1 parent cb67abf commit 9a7723a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useCases/Home/components/Hero/assets/effect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export class Effect {
const radian = p.pow(1.06, theta)
const noise = p.noise(theta, offset.y, offset.z) + 1

const x = (spacing + radian) * p.cos(theta) * noise
const y = (spacing + radian) * p.sin(theta) * noise
const x = p.round((spacing + radian) * p.cos(theta) * noise, 2)
const y = p.round((spacing + radian) * p.sin(theta) * noise, 2)

// 画面外の場合は描画を終了する
if (x < -p.width && p.height < y) break
Expand Down

0 comments on commit 9a7723a

Please sign in to comment.