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 PointsMaterialParameters extends MaterialParameters {
|
6 | color?: ColorRepresentation | undefined;
|
7 | map?: Texture | null | undefined;
|
8 | alphaMap?: Texture | null | undefined;
|
9 | size?: number | undefined;
|
10 | sizeAttenuation?: boolean | undefined;
|
11 | fog?: boolean | undefined;
|
12 | }
|
13 |
|
14 | export class PointsMaterial extends Material {
|
15 | constructor(parameters?: PointsMaterialParameters);
|
16 |
|
17 | /**
|
18 | * Read-only flag to check if a given object is of type {@link PointsMaterial}.
|
19 | * @remarks This is a _constant_ value
|
20 | * @defaultValue `true`
|
21 | */
|
22 | readonly isPointsMaterial: true;
|
23 |
|
24 | |
25 |
|
26 |
|
27 | color: Color;
|
28 |
|
29 | |
30 |
|
31 |
|
32 | map: Texture | null;
|
33 |
|
34 | |
35 |
|
36 |
|
37 | alphaMap: Texture | null;
|
38 |
|
39 | |
40 |
|
41 |
|
42 | size: number;
|
43 |
|
44 | |
45 |
|
46 |
|
47 | sizeAttenuation: boolean;
|
48 |
|
49 | |
50 |
|
51 |
|
52 |
|
53 | fog: boolean;
|
54 |
|
55 | setValues(parameters: PointsMaterialParameters): void;
|
56 | }
|