noise koef
Deploy / build_and_push_images (push) Successful in 1m22s Details
Deploy / deploy_to_server_dev (push) Successful in 31s Details

This commit is contained in:
Kseninia Mikhaylova 2024-09-26 14:56:19 +03:00
parent a3687808ea
commit 2af002ee2b
1 changed files with 2 additions and 2 deletions

View File

@ -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;