@shapediver/viewer.rendering-engine.rendering-engine-threejs 3.3.3 → 3.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/package.json +19 -20
  2. package/src/RenderingEngine.ts +0 -1336
  3. package/src/index.ts +0 -81
  4. package/src/injectors/Tag3dGeometryCreationInjector.ts +0 -154
  5. package/src/injectors/TextureUnifierInjector.ts +0 -214
  6. package/src/interfaces/ILoader.ts +0 -3
  7. package/src/interfaces/IPostProcessingEffectDefinitions.ts +0 -402
  8. package/src/interfaces/IRenderingEngine.ts +0 -48
  9. package/src/loaders/EnvironmentMapLoader.ts +0 -357
  10. package/src/loaders/GeometryLoader.ts +0 -585
  11. package/src/loaders/HTMLElementAnchorLoader.ts +0 -107
  12. package/src/loaders/LightLoader.ts +0 -171
  13. package/src/loaders/MaterialLoader.ts +0 -1413
  14. package/src/managers/CameraManager.ts +0 -178
  15. package/src/managers/EnvironmentGeometryManager.ts +0 -224
  16. package/src/managers/PostProcessingManager.ts +0 -1181
  17. package/src/managers/RenderingManager.ts +0 -657
  18. package/src/managers/SceneTracingManager.ts +0 -127
  19. package/src/managers/SceneTreeManager.ts +0 -576
  20. package/src/managers/postprocessing/GodRaysManager.ts +0 -52
  21. package/src/managers/postprocessing/OutlineManager.ts +0 -58
  22. package/src/managers/postprocessing/SSAARenderPass.ts +0 -339
  23. package/src/managers/postprocessing/SelectiveBloomManager.ts +0 -58
  24. package/src/managers/postprocessing/ao/ao/AOEffect.ts +0 -180
  25. package/src/managers/postprocessing/ao/ao/AOPass.ts +0 -128
  26. package/src/managers/postprocessing/ao/ao/shader/ao_compose.glsl +0 -17
  27. package/src/managers/postprocessing/ao/ao/shader/ao_compose.ts +0 -19
  28. package/src/managers/postprocessing/ao/hbao/HBAOEffect.ts +0 -41
  29. package/src/managers/postprocessing/ao/hbao/shader/hbao.glsl +0 -96
  30. package/src/managers/postprocessing/ao/hbao/shader/hbao.ts +0 -98
  31. package/src/managers/postprocessing/ao/hbao/shader/hbao_utils.glsl +0 -92
  32. package/src/managers/postprocessing/ao/hbao/shader/hbao_utils.ts +0 -95
  33. package/src/managers/postprocessing/ao/poissionDenoise/PoissionDenoisePass.ts +0 -259
  34. package/src/managers/postprocessing/ao/poissionDenoise/shader/poissionDenoise.glsl +0 -125
  35. package/src/managers/postprocessing/ao/poissionDenoise/shader/poissionDenoise.ts +0 -127
  36. package/src/managers/postprocessing/ao/ssao/SSAOEffect.ts +0 -106
  37. package/src/managers/postprocessing/ao/ssao/shader/ssao.glsl +0 -128
  38. package/src/managers/postprocessing/ao/ssao/shader/ssao.ts +0 -130
  39. package/src/managers/postprocessing/ao/utils/shader/basic.glsl +0 -6
  40. package/src/managers/postprocessing/ao/utils/shader/basic.ts +0 -8
  41. package/src/managers/postprocessing/ao/utils/shader/sampleBlueNoise.glsl +0 -36
  42. package/src/managers/postprocessing/ao/utils/shader/sampleBlueNoise.ts +0 -38
  43. package/src/managers/postprocessing/utils/CopyMaterial.ts +0 -130
  44. package/src/managers/postprocessing/utils/CopyShader.ts +0 -39
  45. package/src/managers/postprocessing/utils/FullScreenQuad.ts +0 -47
  46. package/src/managers/postprocessing/utils/NormalPass.ts +0 -222
  47. package/src/managers/postprocessing/utils/RenderPass.ts +0 -366
  48. package/src/materials/GemMaterial.ts +0 -268
  49. package/src/materials/MeshUnlitMaterialParameters.ts +0 -4
  50. package/src/materials/MultiPointsMaterial.ts +0 -646
  51. package/src/materials/SpecularGlossinessMaterial.ts +0 -182
  52. package/src/objects/SDBone.ts +0 -51
  53. package/src/objects/SDColor.ts +0 -54
  54. package/src/objects/SDData.ts +0 -44
  55. package/src/objects/SDObject.ts +0 -58
  56. package/src/shaders/PCSS.ts +0 -124
  57. package/src/shaders/gem.ts +0 -579
  58. package/src/shaders/gem_frag.glsl +0 -522
  59. package/src/shaders/gem_vert.glsl +0 -53
  60. package/src/shaders/multi_points.ts +0 -291
  61. package/src/shaders/multi_points_frag.glsl +0 -166
  62. package/src/shaders/multi_points_vert.glsl +0 -120
  63. package/src/styling/viewport-css.ts +0 -113
  64. package/src/styling/viewport.css +0 -111
  65. package/src/three/font.ts +0 -2
  66. package/src/three/geometries/TextGeometry.ts +0 -58
  67. package/src/three/loaders/FontLoader.ts +0 -205
  68. package/src/three/loaders/RGBELoader.ts +0 -496
  69. package/src/types/IThreejsData.ts +0 -16
  70. package/src/types/ThreejsData.ts +0 -43
  71. package/tsconfig.json +0 -20
@@ -1,646 +0,0 @@
1
- import * as THREE from 'three';
2
- import { frag, vert } from '../shaders/multi_points';
3
-
4
- // #region Interfaces (1)
5
-
6
- export interface MultiPointsMaterialParameters extends THREE.PointsMaterialParameters {
7
- // #region Properties (21)
8
-
9
- alphaMap_0?: THREE.Texture | null | undefined;
10
- alphaMap_1?: THREE.Texture | null | undefined;
11
- alphaMap_2?: THREE.Texture | null | undefined;
12
- alphaMap_3?: THREE.Texture | null | undefined;
13
- alphaMap_4?: THREE.Texture | null | undefined;
14
- alphaMap_5?: THREE.Texture | null | undefined;
15
- alphaMap_6?: THREE.Texture | null | undefined;
16
- alphaMap_7?: THREE.Texture | null | undefined;
17
- color_0?: THREE.ColorRepresentation | undefined;
18
- color_1?: THREE.ColorRepresentation | undefined;
19
- color_2?: THREE.ColorRepresentation | undefined;
20
- color_3?: THREE.ColorRepresentation | undefined;
21
- color_4?: THREE.ColorRepresentation | undefined;
22
- color_5?: THREE.ColorRepresentation | undefined;
23
- color_6?: THREE.ColorRepresentation | undefined;
24
- color_7?: THREE.ColorRepresentation | undefined;
25
- fog?: boolean | undefined;
26
- map_0?: THREE.Texture | null | undefined;
27
- map_1?: THREE.Texture | null | undefined;
28
- map_2?: THREE.Texture | null | undefined;
29
- map_3?: THREE.Texture | null | undefined;
30
- map_4?: THREE.Texture | null | undefined;
31
- map_5?: THREE.Texture | null | undefined;
32
- map_6?: THREE.Texture | null | undefined;
33
- map_7?: THREE.Texture | null | undefined;
34
- materialIndexDataTexture?: THREE.DataTexture | null | undefined;
35
- materialIndexDataTextureSize?: number | undefined;
36
- sizeAttenuation_0?: boolean | undefined;
37
- sizeAttenuation_1?: boolean | undefined;
38
- sizeAttenuation_2?: boolean | undefined;
39
- sizeAttenuation_3?: boolean | undefined;
40
- sizeAttenuation_4?: boolean | undefined;
41
- sizeAttenuation_5?: boolean | undefined;
42
- sizeAttenuation_6?: boolean | undefined;
43
- sizeAttenuation_7?: boolean | undefined;
44
- size_0?: number | undefined;
45
- size_1?: number | undefined;
46
- size_2?: number | undefined;
47
- size_3?: number | undefined;
48
- size_4?: number | undefined;
49
- size_5?: number | undefined;
50
- size_6?: number | undefined;
51
- size_7?: number | undefined;
52
-
53
- // #endregion Properties (21)
54
- }
55
-
56
- // #endregion Interfaces (1)
57
-
58
- // #region Classes (1)
59
-
60
- export class MultiPointsMaterial extends THREE.PointsMaterial {
61
- // #region Properties (22)
62
-
63
- public alphaMap_0: THREE.Texture | null = null;
64
- public alphaMap_1: THREE.Texture | null = null;
65
- public alphaMap_2: THREE.Texture | null = null;
66
- public alphaMap_3: THREE.Texture | null = null;
67
- public alphaMap_4: THREE.Texture | null = null;
68
- public alphaMap_5: THREE.Texture | null = null;
69
- public alphaMap_6: THREE.Texture | null = null;
70
- public alphaMap_7: THREE.Texture | null = null;
71
- public color_0: THREE.Color = new THREE.Color(0xffffff);
72
- public color_1: THREE.Color = new THREE.Color(0xffffff);
73
- public color_2: THREE.Color = new THREE.Color(0xffffff);
74
- public color_3: THREE.Color = new THREE.Color(0xffffff);
75
- public color_4: THREE.Color = new THREE.Color(0xffffff);
76
- public color_5: THREE.Color = new THREE.Color(0xffffff);
77
- public color_6: THREE.Color = new THREE.Color(0xffffff);
78
- public color_7: THREE.Color = new THREE.Color(0xffffff);
79
- public isMultiPointsMaterial: boolean;
80
- public map_0: THREE.Texture | null = null;
81
- public map_1: THREE.Texture | null = null;
82
- public map_2: THREE.Texture | null = null;
83
- public map_3: THREE.Texture | null = null;
84
- public map_4: THREE.Texture | null = null;
85
- public map_5: THREE.Texture | null = null;
86
- public map_6: THREE.Texture | null = null;
87
- public map_7: THREE.Texture | null = null;
88
- public materialIndexDataTexture: THREE.DataTexture | null = null;
89
- public materialIndexDataTextureSize: number = 1024;
90
- public sizeAttenuation_0: boolean = false;
91
- public sizeAttenuation_1: boolean = false;
92
- public sizeAttenuation_2: boolean = false;
93
- public sizeAttenuation_3: boolean = false;
94
- public sizeAttenuation_4: boolean = false;
95
- public sizeAttenuation_5: boolean = false;
96
- public sizeAttenuation_6: boolean = false;
97
- public sizeAttenuation_7: boolean = false;
98
- public size_0: number = 1.0;
99
- public size_1: number = 1.0;
100
- public size_2: number = 1.0;
101
- public size_3: number = 1.0;
102
- public size_4: number = 1.0;
103
- public size_5: number = 1.0;
104
- public size_6: number = 1.0;
105
- public size_7: number = 1.0;
106
-
107
- // #endregion Properties (22)
108
-
109
- // #region Constructors (1)
110
-
111
- constructor(params: MultiPointsMaterialParameters) {
112
- super();
113
-
114
- this.isMultiPointsMaterial = true;
115
-
116
- const uniforms: { [key: string]: { value: unknown } } = {
117
- materialIndexDataTexture: { value: null },
118
- materialIndexDataTextureSize: { value: 1024 },
119
-
120
- map_0: { value: null },
121
- color_0: { value: new THREE.Color(0xff0000) },
122
- alphaMap_0: { value: null },
123
- size_0: { value: 1.0 },
124
- sizeAttenuation_0: { value: false },
125
-
126
- map_1: { value: null },
127
- color_1: { value: new THREE.Color(0x00ff00) },
128
- alphaMap_1: { value: null },
129
- size_1: { value: 1.0 },
130
- sizeAttenuation_1: { value: false },
131
-
132
- map_2: { value: null },
133
- color_2: { value: new THREE.Color(0x0000ff) },
134
- alphaMap_2: { value: null },
135
- size_2: { value: 1.0 },
136
- sizeAttenuation_2: { value: false },
137
-
138
- map_3: { value: null },
139
- color_3: { value: new THREE.Color(0x0000ff) },
140
- alphaMap_3: { value: null },
141
- size_3: { value: 1.0 },
142
- sizeAttenuation_3: { value: false },
143
-
144
- map_4: { value: null },
145
- color_4: { value: new THREE.Color(0x0000ff) },
146
- alphaMap_4: { value: null },
147
- size_4: { value: 1.0 },
148
- sizeAttenuation_4: { value: false },
149
-
150
- map_5: { value: null },
151
- color_5: { value: new THREE.Color(0x0000ff) },
152
- alphaMap_5: { value: null },
153
- size_5: { value: 1.0 },
154
- sizeAttenuation_5: { value: false },
155
-
156
- map_6: { value: null },
157
- color_6: { value: new THREE.Color(0x0000ff) },
158
- alphaMap_6: { value: null },
159
- size_6: { value: 1.0 },
160
- sizeAttenuation_6: { value: false },
161
-
162
- map_7: { value: null },
163
- color_7: { value: new THREE.Color(0x0000ff) },
164
- alphaMap_7: { value: null },
165
- size_7: { value: 1.0 },
166
- sizeAttenuation_7: { value: false }
167
- };
168
-
169
- (this as any)._extraUniforms = uniforms;
170
-
171
- this.onBeforeCompile = function (shader) {
172
- for (const uniformName in uniforms) {
173
- shader.uniforms[uniformName] = uniforms[uniformName];
174
- }
175
- shader.vertexShader = vert;
176
- shader.fragmentShader = frag;
177
- };
178
-
179
- Object.defineProperties(this, {
180
- materialIndexDataTexture: {
181
- get: function () {
182
- return uniforms.materialIndexDataTexture.value;
183
- },
184
- set: function (v) {
185
- uniforms.materialIndexDataTexture.value = v;
186
- }
187
- },
188
- materialIndexDataTextureSize: {
189
- get: function () {
190
- return uniforms.materialIndexDataTextureSize.value;
191
- },
192
- set: function (v) {
193
- uniforms.materialIndexDataTextureSize.value = v;
194
- }
195
- },
196
- map_0: {
197
- get: function () {
198
- return uniforms.map_0.value;
199
- },
200
- set: function (v) {
201
- uniforms.map_0.value = v;
202
- }
203
- },
204
- color_0: {
205
- get: function () {
206
- return uniforms.color_0.value;
207
- },
208
- set: function (v) {
209
- uniforms.color_0.value = v;
210
- }
211
- },
212
- alphaMap_0: {
213
- get: function () {
214
- return uniforms.alphaMap_0.value;
215
- },
216
- set: function (v) {
217
- uniforms.alphaMap_0.value = v;
218
- }
219
- },
220
- size_0: {
221
- get: function () {
222
- return uniforms.size_0.value;
223
- },
224
- set: function (v) {
225
- uniforms.size_0.value = v;
226
- }
227
- },
228
- sizeAttenuation_0: {
229
- get: function () {
230
- return uniforms.sizeAttenuation_0.value;
231
- },
232
- set: function (v) {
233
- uniforms.sizeAttenuation_0.value = v;
234
- }
235
- },
236
-
237
- map_1: {
238
- get: function () {
239
- return uniforms.map_1.value;
240
- },
241
- set: function (v) {
242
- uniforms.map_1.value = v;
243
- }
244
- },
245
- color_1: {
246
- get: function () {
247
- return uniforms.color_1.value;
248
- },
249
- set: function (v) {
250
- uniforms.color_1.value = v;
251
- }
252
- },
253
- alphaMap_1: {
254
- get: function () {
255
- return uniforms.alphaMap_1.value;
256
- },
257
- set: function (v) {
258
- uniforms.alphaMap_1.value = v;
259
- }
260
- },
261
- size_1: {
262
- get: function () {
263
- return uniforms.size_1.value;
264
- },
265
- set: function (v) {
266
- uniforms.size_1.value = v;
267
- }
268
- },
269
- sizeAttenuation_1: {
270
- get: function () {
271
- return uniforms.sizeAttenuation_1.value;
272
- },
273
- set: function (v) {
274
- uniforms.sizeAttenuation_1.value = v;
275
- }
276
- },
277
-
278
- map_2: {
279
- get: function () {
280
- return uniforms.map_2.value;
281
- },
282
- set: function (v) {
283
- uniforms.map_2.value = v;
284
- }
285
- },
286
- color_2: {
287
- get: function () {
288
- return uniforms.color_2.value;
289
- },
290
- set: function (v) {
291
- uniforms.color_2.value = v;
292
- }
293
- },
294
- alphaMap_2: {
295
- get: function () {
296
- return uniforms.alphaMap_2.value;
297
- },
298
- set: function (v) {
299
- uniforms.alphaMap_2.value = v;
300
- }
301
- },
302
- size_2: {
303
- get: function () {
304
- return uniforms.size_2.value;
305
- },
306
- set: function (v) {
307
- uniforms.size_2.value = v;
308
- }
309
- },
310
- sizeAttenuation_2: {
311
- get: function () {
312
- return uniforms.sizeAttenuation_2.value;
313
- },
314
- set: function (v) {
315
- uniforms.sizeAttenuation_2.value = v;
316
- }
317
- },
318
-
319
-
320
- map_3: {
321
- get: function () {
322
- return uniforms.map_3.value;
323
- },
324
- set: function (v) {
325
- uniforms.map_3.value = v;
326
- }
327
- },
328
- color_3: {
329
- get: function () {
330
- return uniforms.color_3.value;
331
- },
332
- set: function (v) {
333
- uniforms.color_3.value = v;
334
- }
335
- },
336
- alphaMap_3: {
337
- get: function () {
338
- return uniforms.alphaMap_3.value;
339
- },
340
- set: function (v) {
341
- uniforms.alphaMap_3.value = v;
342
- }
343
- },
344
- size_3: {
345
- get: function () {
346
- return uniforms.size_3.value;
347
- },
348
- set: function (v) {
349
- uniforms.size_3.value = v;
350
- }
351
- },
352
- sizeAttenuation_3: {
353
- get: function () {
354
- return uniforms.sizeAttenuation_3.value;
355
- },
356
- set: function (v) {
357
- uniforms.sizeAttenuation_3.value = v;
358
- }
359
- },
360
-
361
- map_4: {
362
- get: function () {
363
- return uniforms.map_4.value;
364
- },
365
- set: function (v) {
366
- uniforms.map_4.value = v;
367
- }
368
- },
369
- color_4: {
370
- get: function () {
371
- return uniforms.color_4.value;
372
- },
373
- set: function (v) {
374
- uniforms.color_4.value = v;
375
- }
376
- },
377
- alphaMap_4: {
378
- get: function () {
379
- return uniforms.alphaMap_4.value;
380
- },
381
- set: function (v) {
382
- uniforms.alphaMap_4.value = v;
383
- }
384
- },
385
- size_4: {
386
- get: function () {
387
- return uniforms.size_4.value;
388
- },
389
- set: function (v) {
390
- uniforms.size_4.value = v;
391
- }
392
- },
393
- sizeAttenuation_4: {
394
- get: function () {
395
- return uniforms.sizeAttenuation_4.value;
396
- },
397
- set: function (v) {
398
- uniforms.sizeAttenuation_4.value = v;
399
- }
400
- },
401
-
402
- map_5: {
403
- get: function () {
404
- return uniforms.map_5.value;
405
- },
406
- set: function (v) {
407
- uniforms.map_5.value = v;
408
- }
409
- },
410
- color_5: {
411
- get: function () {
412
- return uniforms.color_5.value;
413
- },
414
- set: function (v) {
415
- uniforms.color_5.value = v;
416
- }
417
- },
418
- alphaMap_5: {
419
- get: function () {
420
- return uniforms.alphaMap_5.value;
421
- },
422
- set: function (v) {
423
- uniforms.alphaMap_5.value = v;
424
- }
425
- },
426
- size_5: {
427
- get: function () {
428
- return uniforms.size_5.value;
429
- },
430
- set: function (v) {
431
- uniforms.size_5.value = v;
432
- }
433
- },
434
- sizeAttenuation_5: {
435
- get: function () {
436
- return uniforms.sizeAttenuation_5.value;
437
- },
438
- set: function (v) {
439
- uniforms.sizeAttenuation_5.value = v;
440
- }
441
- },
442
-
443
- map_6: {
444
- get: function () {
445
- return uniforms.map_6.value;
446
- },
447
- set: function (v) {
448
- uniforms.map_6.value = v;
449
- }
450
- },
451
- color_6: {
452
- get: function () {
453
- return uniforms.color_6.value;
454
- },
455
- set: function (v) {
456
- uniforms.color_6.value = v;
457
- }
458
- },
459
- alphaMap_6: {
460
- get: function () {
461
- return uniforms.alphaMap_6.value;
462
- },
463
- set: function (v) {
464
- uniforms.alphaMap_6.value = v;
465
- }
466
- },
467
- size_6: {
468
- get: function () {
469
- return uniforms.size_6.value;
470
- },
471
- set: function (v) {
472
- uniforms.size_6.value = v;
473
- }
474
- },
475
- sizeAttenuation_6: {
476
- get: function () {
477
- return uniforms.sizeAttenuation_6.value;
478
- },
479
- set: function (v) {
480
- uniforms.sizeAttenuation_6.value = v;
481
- }
482
- },
483
-
484
- map_7: {
485
- get: function () {
486
- return uniforms.map_7.value;
487
- },
488
- set: function (v) {
489
- uniforms.map_7.value = v;
490
- }
491
- },
492
- color_7: {
493
- get: function () {
494
- return uniforms.color_7.value;
495
- },
496
- set: function (v) {
497
- uniforms.color_7.value = v;
498
- }
499
- },
500
- alphaMap_7: {
501
- get: function () {
502
- return uniforms.alphaMap_7.value;
503
- },
504
- set: function (v) {
505
- uniforms.alphaMap_7.value = v;
506
- }
507
- },
508
- size_7: {
509
- get: function () {
510
- return uniforms.size_7.value;
511
- },
512
- set: function (v) {
513
- uniforms.size_7.value = v;
514
- }
515
- },
516
- sizeAttenuation_7: {
517
- get: function () {
518
- return uniforms.sizeAttenuation_7.value;
519
- },
520
- set: function (v) {
521
- uniforms.sizeAttenuation_7.value = v;
522
- }
523
- }
524
- });
525
-
526
- this.materialIndexDataTexture = params.materialIndexDataTexture ?? null;
527
- this.materialIndexDataTextureSize = params.materialIndexDataTextureSize ?? 1024;
528
-
529
- this.map_0 = params.map_0 ?? null;
530
- this.color_0 = new THREE.Color(params.color_0 ?? 0xffffff);
531
- this.alphaMap_0 = params.alphaMap_0 ?? null;
532
- this.size_0 = params.size_0 ?? 1.0;
533
- this.sizeAttenuation_0 = params.sizeAttenuation_0 ?? false;
534
-
535
- this.map_1 = params.map_1 ?? null;
536
- this.color_1 = new THREE.Color(params.color_1 ?? 0xffffff);
537
- this.alphaMap_1 = params.alphaMap_1 ?? null;
538
- this.size_1 = params.size_1 ?? 1.0;
539
- this.sizeAttenuation_1 = params.sizeAttenuation_1 ?? false;
540
-
541
- this.map_2 = params.map_2 ?? null;
542
- this.color_2 = new THREE.Color(params.color_2 ?? 0xffffff);
543
- this.alphaMap_2 = params.alphaMap_2 ?? null;
544
- this.size_2 = params.size_2 ?? 1.0;
545
- this.sizeAttenuation_2 = params.sizeAttenuation_2 ?? false;
546
-
547
- this.map_3 = params.map_3 ?? null;
548
- this.color_3 = new THREE.Color(params.color_3 ?? 0xffffff);
549
- this.alphaMap_3 = params.alphaMap_3 ?? null;
550
- this.size_3 = params.size_3 ?? 1.0;
551
- this.sizeAttenuation_3 = params.sizeAttenuation_3 ?? false;
552
-
553
- this.map_4 = params.map_4 ?? null;
554
- this.color_4 = new THREE.Color(params.color_4 ?? 0xffffff);
555
- this.alphaMap_4 = params.alphaMap_4 ?? null;
556
- this.size_4 = params.size_4 ?? 1.0;
557
- this.sizeAttenuation_4 = params.sizeAttenuation_4 ?? false;
558
-
559
- this.map_5 = params.map_5 ?? null;
560
- this.color_5 = new THREE.Color(params.color_5 ?? 0xffffff);
561
- this.alphaMap_5 = params.alphaMap_5 ?? null;
562
- this.size_5 = params.size_5 ?? 1.0;
563
- this.sizeAttenuation_5 = params.sizeAttenuation_5 ?? false;
564
-
565
- this.map_6 = params.map_6 ?? null;
566
- this.color_6 = new THREE.Color(params.color_6 ?? 0xffffff);
567
- this.alphaMap_6 = params.alphaMap_6 ?? null;
568
- this.size_6 = params.size_6 ?? 1.0;
569
- this.sizeAttenuation_6 = params.sizeAttenuation_6 ?? false;
570
-
571
- this.map_7 = params.map_7 ?? null;
572
- this.color_7 = new THREE.Color(params.color_7 ?? 0xffffff);
573
- this.alphaMap_7 = params.alphaMap_7 ?? null;
574
- this.size_7 = params.size_7 ?? 1.0;
575
- this.sizeAttenuation_7 = params.sizeAttenuation_7 ?? false;
576
-
577
- this.setValues(params);
578
- }
579
-
580
- // #endregion Constructors (1)
581
-
582
- // #region Public Methods (1)
583
-
584
- public copy(s: THREE.Material) {
585
- super.copy(s);
586
-
587
- const source = s as MultiPointsMaterial;
588
-
589
- this.materialIndexDataTexture = source.materialIndexDataTexture;
590
- this.materialIndexDataTextureSize = source.materialIndexDataTextureSize;
591
-
592
- this.map_0 = source.map_0;
593
- this.color_0.copy(source.color_0);
594
- this.alphaMap_0 = source.alphaMap_0;
595
- this.size_0 = source.size_0;
596
- this.sizeAttenuation_0 = source.sizeAttenuation_0;
597
-
598
- this.map_1 = source.map_1;
599
- this.color_1.copy(source.color_1);
600
- this.alphaMap_1 = source.alphaMap_1;
601
- this.size_1 = source.size_1;
602
- this.sizeAttenuation_1 = source.sizeAttenuation_1;
603
-
604
- this.map_2 = source.map_2;
605
- this.color_2.copy(source.color_2);
606
- this.alphaMap_2 = source.alphaMap_2;
607
- this.size_2 = source.size_2;
608
- this.sizeAttenuation_2 = source.sizeAttenuation_2;
609
-
610
- this.map_3 = source.map_3;
611
- this.color_3.copy(source.color_3);
612
- this.alphaMap_3 = source.alphaMap_3;
613
- this.size_3 = source.size_3;
614
- this.sizeAttenuation_3 = source.sizeAttenuation_3;
615
-
616
- this.map_4 = source.map_4;
617
- this.color_4.copy(source.color_4);
618
- this.alphaMap_4 = source.alphaMap_4;
619
- this.size_4 = source.size_4;
620
- this.sizeAttenuation_4 = source.sizeAttenuation_4;
621
-
622
- this.map_5 = source.map_5;
623
- this.color_5.copy(source.color_5);
624
- this.alphaMap_5 = source.alphaMap_5;
625
- this.size_5 = source.size_5;
626
- this.sizeAttenuation_5 = source.sizeAttenuation_5;
627
-
628
- this.map_6 = source.map_6;
629
- this.color_6.copy(source.color_6);
630
- this.alphaMap_6 = source.alphaMap_6;
631
- this.size_6 = source.size_6;
632
- this.sizeAttenuation_6 = source.sizeAttenuation_6;
633
-
634
- this.map_7 = source.map_7;
635
- this.color_7.copy(source.color_7);
636
- this.alphaMap_7 = source.alphaMap_7;
637
- this.size_7 = source.size_7;
638
- this.sizeAttenuation_7 = source.sizeAttenuation_7;
639
-
640
- return this;
641
- }
642
-
643
- // #endregion Public Methods (1)
644
- }
645
-
646
- // #endregion Classes (1)