Clean up configs
This commit is contained in:
parent
79638d5fa4
commit
0fddad6b45
36 changed files with 375 additions and 652 deletions
|
|
@ -1,11 +1,10 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
|
||||
import { appConfig } from '../../config';
|
||||
import {
|
||||
createCachedBufferWrite,
|
||||
writeBufferIfChanged,
|
||||
} from '../../utils/graphics/cached-buffer-write';
|
||||
import { generateNoise } from '../../utils/graphics/noise';
|
||||
import { generateNoise, NOISE_TEXTURE_SIZE } from '../../utils/graphics/noise';
|
||||
|
||||
export class CommonState {
|
||||
private static readonly UNIFORM_COUNT = 4;
|
||||
|
|
@ -39,8 +38,8 @@ export class CommonState {
|
|||
|
||||
const noise = generateNoise({
|
||||
device,
|
||||
width: appConfig.pipelines.common.noiseTextureSize,
|
||||
height: appConfig.pipelines.common.noiseTextureSize,
|
||||
width: NOISE_TEXTURE_SIZE,
|
||||
height: NOISE_TEXTURE_SIZE,
|
||||
});
|
||||
this.noise = noise.texture;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue