1 | import { Color, ColorRepresentation } from "../math/Color.js";
|
2 | import { Texture } from "../textures/Texture.js";
|
3 | import { Material, MaterialParameters } from "./Material.js";
|
4 |
|
5 | export interface SpriteMaterialParameters extends MaterialParameters {
|
6 | color?: ColorRepresentation | undefined;
|
7 | map?: Texture | null | undefined;
|
8 | alphaMap?: Texture | null | undefined;
|
9 | rotation?: number | undefined;
|
10 | sizeAttenuation?: boolean | undefined;
|
11 | fog?: boolean | undefined;
|
12 | }
|
13 |
|
14 | export class SpriteMaterial extends Material {
|
15 | constructor(parameters?: SpriteMaterialParameters);
|
16 | /**
|
17 | * Read-only flag to check if a given object is of type {@link SpriteMaterial}.
|
18 | * @remarks This is a _constant_ value
|
19 | * @defaultValue `true`
|
20 | */
|
21 | readonly isSpriteMaterial: true;
|
22 |
|
23 | |
24 |
|
25 |
|
26 | color: Color;
|
27 |
|
28 | |
29 |
|
30 |
|
31 | map: Texture | null;
|
32 |
|
33 | |
34 |
|
35 |
|
36 | alphaMap: Texture | null;
|
37 |
|
38 | |
39 |
|
40 |
|
41 | rotation: number;
|
42 |
|
43 | |
44 |
|
45 |
|
46 | sizeAttenuation: boolean;
|
47 |
|
48 | |
49 |
|
50 |
|
51 | transparent: boolean;
|
52 |
|
53 | |
54 |
|
55 |
|
56 |
|
57 | fog: boolean;
|
58 |
|
59 | setValues(parameters: SpriteMaterialParameters): void;
|
60 | copy(source: SpriteMaterial): this;
|
61 | }
|