From 2af002ee2b519eb1422bbbd33c00ce48a14fabaa Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 26 Sep 2024 14:56:19 +0300 Subject: [PATCH] noise koef --- utils/material.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/material.ts b/utils/material.ts index 2ca8880..b36cba9 100644 --- a/utils/material.ts +++ b/utils/material.ts @@ -57,9 +57,9 @@ function generateNoiseTexture(width: number, height: number) { const color = new Color(0xffffff); for (let i = 0; i < size; i++) { - const r = Math.floor(Math.random() * 255); + const r = Math.floor(Math.random() * 255) * 0.05; const g = 0; - const b = Math.floor(Math.random() * 255); + const b = Math.floor(Math.random() * 255) * 0.05; const stride = i * 4; data[stride] = r;