dev #84
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue