UNPKG

3.69 kBTypeScriptView Raw
1// tslint:disable-next-line:interface-name
2export interface IUniform<TValue = any> {
3 value: TValue;
4}
5
6export let UniformsLib: {
7 common: {
8 diffuse: IUniform;
9 opacity: IUniform;
10 map: IUniform;
11 uvTransform: IUniform;
12 uv2Transform: IUniform;
13 alphaMap: IUniform;
14 };
15 specularmap: {
16 specularMap: IUniform;
17 };
18 envmap: {
19 envMap: IUniform;
20 flipEnvMap: IUniform;
21 reflectivity: IUniform;
22 refractionRatio: IUniform;
23 maxMipLevel: IUniform;
24 };
25 aomap: {
26 aoMap: IUniform;
27 aoMapIntensity: IUniform;
28 };
29 lightmap: {
30 lightMap: IUniform;
31 lightMapIntensity: IUniform;
32 };
33 emissivemap: {
34 emissiveMap: IUniform;
35 };
36 bumpmap: {
37 bumpMap: IUniform;
38 bumpScale: IUniform;
39 };
40 normalmap: {
41 normalMap: IUniform;
42 normalScale: IUniform;
43 };
44 displacementmap: {
45 displacementMap: IUniform;
46 displacementScale: IUniform;
47 displacementBias: IUniform;
48 };
49 roughnessmap: {
50 roughnessMap: IUniform;
51 };
52 metalnessmap: {
53 metalnessMap: IUniform;
54 };
55 gradientmap: {
56 gradientMap: IUniform;
57 };
58 fog: {
59 fogDensity: IUniform;
60 fogNear: IUniform;
61 fogFar: IUniform;
62 fogColor: IUniform;
63 };
64 lights: {
65 ambientLightColor: IUniform;
66 directionalLights: {
67 value: any[];
68 properties: {
69 direction: {};
70 color: {};
71 };
72 };
73 directionalLightShadows: {
74 value: any[];
75 properties: {
76 shadowBias: {};
77 shadowNormalBias: {};
78 shadowRadius: {};
79 shadowMapSize: {};
80 };
81 };
82 directionalShadowMap: IUniform;
83 directionalShadowMatrix: IUniform;
84 spotLights: {
85 value: any[];
86 properties: {
87 color: {};
88 position: {};
89 direction: {};
90 distance: {};
91 coneCos: {};
92 penumbraCos: {};
93 decay: {};
94 };
95 };
96 spotLightShadows: {
97 value: any[];
98 properties: {
99 shadowBias: {};
100 shadowNormalBias: {};
101 shadowRadius: {};
102 shadowMapSize: {};
103 };
104 };
105 spotShadowMap: IUniform;
106 spotShadowMatrix: IUniform;
107 pointLights: {
108 value: any[];
109 properties: {
110 color: {};
111 position: {};
112 decay: {};
113 distance: {};
114 };
115 };
116 pointLightShadows: {
117 value: any[];
118 properties: {
119 shadowBias: {};
120 shadowNormalBias: {};
121 shadowRadius: {};
122 shadowMapSize: {};
123 };
124 };
125 pointShadowMap: IUniform;
126 pointShadowMatrix: IUniform;
127 hemisphereLights: {
128 value: any[];
129 properties: {
130 direction: {};
131 skycolor: {};
132 groundColor: {};
133 };
134 };
135 rectAreaLights: {
136 value: any[];
137 properties: {
138 color: {};
139 position: {};
140 width: {};
141 height: {};
142 };
143 };
144 };
145 points: {
146 diffuse: IUniform;
147 opacity: IUniform;
148 size: IUniform;
149 scale: IUniform;
150 map: IUniform;
151 uvTransform: IUniform;
152 };
153};