Add textures

This commit is contained in:
schmelczerandras 2020-10-04 10:48:26 +02:00
parent 5723b91b32
commit 7bfad8711b
25 changed files with 407 additions and 104 deletions

View file

@ -0,0 +1,22 @@
export enum WrapOptions {
CLAMP_TO_EDGE = 'CLAMP_TO_EDGE',
REPEAT = 'REPEAT',
MIRRORED_REPEAT = 'MIRRORED_REPEAT',
}
export enum FilteringOptions {
LINEAR = 'LINEAR',
NEAREST = 'NEAREST',
}
export interface TextureOptions {
wrapS: WrapOptions;
wrapT: WrapOptions;
minFilter: FilteringOptions;
maxFilter: FilteringOptions;
}
export type TextureWithOptions = {
source: TexImageSource;
overrides: Partial<TextureOptions>;
};