three-base 2.0.129 → 2.0.134

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 (123) hide show
  1. package/ApngTexture.d.ts +13 -13
  2. package/ApngTexture.js +61 -61
  3. package/ApngTextureManage.d.ts +18 -18
  4. package/ApngTextureManage.js +87 -87
  5. package/DirectionalLight.d.ts +6 -0
  6. package/DirectionalLight.js +68 -0
  7. package/EventMesh.d.ts +18 -18
  8. package/EventMesh.js +59 -59
  9. package/ExtrudeMesh.d.ts +112 -112
  10. package/ExtrudeMesh.js +366 -366
  11. package/FPScontrol.d.ts +71 -50
  12. package/FPScontrol.js +505 -232
  13. package/Fire/Fire.d.ts +28 -28
  14. package/Fire/Fire.js +79 -79
  15. package/Fire/FireGromtry.d.ts +9 -9
  16. package/Fire/FireGromtry.js +40 -40
  17. package/Fire/FireMaterial.d.ts +28 -28
  18. package/Fire/FireMaterial.js +32 -32
  19. package/Fire/index.d.ts +1 -1
  20. package/Fire/index.js +1 -1
  21. package/Grass/Grass.d.ts +8 -8
  22. package/Grass/Grass.js +38 -38
  23. package/Grass/index.d.ts +1 -1
  24. package/Grass/index.js +1 -1
  25. package/Ground1/Ground1.d.ts +11 -11
  26. package/Ground1/Ground1.js +54 -54
  27. package/Ground1/index.d.ts +1 -1
  28. package/Ground1/index.js +1 -1
  29. package/InstancedMeshBase.d.ts +39 -39
  30. package/InstancedMeshBase.js +293 -293
  31. package/KeyFrameAnimation.d.ts +25 -25
  32. package/KeyFrameAnimation.js +78 -78
  33. package/MeshBase.d.ts +35 -35
  34. package/MeshBase.js +223 -223
  35. package/Mirror.d.ts +25 -25
  36. package/Mirror.js +139 -139
  37. package/PipeMesh/PathGeometry.d.ts +44 -44
  38. package/PipeMesh/PathGeometry.js +300 -300
  39. package/PipeMesh/PathPoint.d.ts +17 -17
  40. package/PipeMesh/PathPoint.js +31 -31
  41. package/PipeMesh/PathPointList.d.ts +31 -31
  42. package/PipeMesh/PathPointList.js +208 -208
  43. package/PipeMesh/PathTubeGeometry.d.ts +25 -25
  44. package/PipeMesh/PathTubeGeometry.js +130 -130
  45. package/PipeMesh/PipeMesh.d.ts +25 -25
  46. package/PipeMesh/PipeMesh.js +63 -63
  47. package/PipeMesh/index.d.ts +1 -1
  48. package/PipeMesh/index.js +1 -1
  49. package/PlaneModal1/PlaneModal1.d.ts +31 -31
  50. package/PlaneModal1/PlaneModal1.js +105 -105
  51. package/PlaneModal1/index.d.ts +1 -1
  52. package/PlaneModal1/index.js +1 -1
  53. package/PlaneText.d.ts +39 -39
  54. package/PlaneText.js +30 -30
  55. package/PlaneWithHtml.d.ts +11 -11
  56. package/PlaneWithHtml.js +63 -68
  57. package/PointLight/PointLight.d.ts +14 -13
  58. package/PointLight/PointLight.js +70 -64
  59. package/PointLight/index.d.ts +1 -1
  60. package/PointLight/index.js +1 -1
  61. package/Sky/Sky.d.ts +9 -9
  62. package/Sky/Sky.js +22 -22
  63. package/Sky/index.d.ts +1 -1
  64. package/Sky/index.js +1 -1
  65. package/SpotLight.d.ts +6 -0
  66. package/SpotLight.js +72 -0
  67. package/SpriteModal1/SpriteModal1.d.ts +30 -30
  68. package/SpriteModal1/SpriteModal1.js +110 -110
  69. package/SpriteModal1/index.d.ts +1 -1
  70. package/SpriteModal1/index.js +1 -1
  71. package/SpriteText.d.ts +45 -45
  72. package/SpriteText.js +163 -163
  73. package/SpriteText2.d.ts +47 -47
  74. package/SpriteText2.js +198 -198
  75. package/SpriteWithHtml.d.ts +7 -7
  76. package/SpriteWithHtml.js +44 -49
  77. package/Text3D/Text3D.d.ts +20 -20
  78. package/Text3D/Text3D.js +62 -62
  79. package/Text3D/fontController.d.ts +59 -59
  80. package/Text3D/fontController.js +199 -199
  81. package/Text3D/index.d.ts +1 -1
  82. package/Text3D/index.js +1 -1
  83. package/ThreeBase.d.ts +97 -81
  84. package/ThreeBase.js +613 -559
  85. package/ThreeMouse.d.ts +40 -40
  86. package/ThreeMouse.js +407 -409
  87. package/Transition.d.ts +40 -40
  88. package/Transition.js +210 -207
  89. package/Water/Water.d.ts +5 -0
  90. package/Water/Water.js +26 -0
  91. package/Water/waternormals.jpg +0 -0
  92. package/declare.d.ts +167 -0
  93. package/index.d.ts +1 -1
  94. package/index.js +2 -2
  95. package/keyContorls.d.ts +25 -25
  96. package/keyContorls.js +98 -98
  97. package/package.json +1 -1
  98. package/pass/bloom_pass.d.ts +2 -2
  99. package/pass/bloom_pass.js +99 -99
  100. package/pass/cover_pass.d.ts +2 -2
  101. package/pass/cover_pass.js +95 -95
  102. package/pass/frosted_glass_pass.d.ts +2 -0
  103. package/pass/frosted_glass_pass.js +275 -0
  104. package/pass/fsQuad.d.ts +9 -9
  105. package/pass/fsQuad.js +28 -28
  106. package/pass/glow_pass.d.ts +2 -2
  107. package/pass/glow_pass.js +310 -254
  108. package/pass/ssao_pass.d.ts +11 -0
  109. package/pass/ssao_pass.js +294 -0
  110. package/pass/stroke_pass.d.ts +2 -2
  111. package/pass/stroke_pass.js +199 -199
  112. package/shaders/FXAAShaderMaterial.d.ts +3 -3
  113. package/shaders/FXAAShaderMaterial.js +21 -21
  114. package/shaders/baseTextureToRenderShader.d.ts +2 -2
  115. package/shaders/baseTextureToRenderShader.js +14 -14
  116. package/shaders/copyShader.d.ts +3 -3
  117. package/shaders/copyShader.js +14 -14
  118. package/shaders.d.ts +5 -5
  119. package/shaders.js +42 -42
  120. package/threeLoader.d.ts +34 -34
  121. package/threeLoader.js +527 -527
  122. package/threeUtils.d.ts +52 -52
  123. package/threeUtils.js +330 -330
package/MeshBase.js CHANGED
@@ -1,223 +1,223 @@
1
- import { AnimationMixer, Clock, Group, Vector3, } from "three";
2
- import threeUtils from "./threeUtils";
3
- import threeLoader from "./threeLoader";
4
- import * as SkeletonUtils from "three/examples/jsm/utils/SkeletonUtils";
5
- import { isString } from "lodash";
6
- // 模型基类
7
- export default class MeshBase extends Group {
8
- constructor(url) {
9
- super();
10
- url && this.loadModel(url);
11
- }
12
- url = "";
13
- // 模型对象
14
- static models = new Map();
15
- // 模型是否在加载中
16
- static loadModeling = new Map();
17
- // 加载完成
18
- loaded = false;
19
- // 是否有动画
20
- hasAnimation = false;
21
- //动画混合器
22
- mixer;
23
- //动画剪辑对象数组
24
- animationActions = {};
25
- // 获取文件名的后缀
26
- getSuffix(filename) {
27
- const match = filename.match(/\.([^\.]+)$/);
28
- return match ? match[1].toLowerCase() : "";
29
- }
30
- // 重置子元素
31
- reset(...object) {
32
- threeUtils.dipose(this);
33
- super.clear();
34
- super.add(...object);
35
- return this;
36
- }
37
- // 如果url 是blob地址的话,就用suffix字段来制定模型的类型
38
- async loadModel(url, filename = "") {
39
- //获取模型文件的地址
40
- const modelurl = await (async () => {
41
- if (isString(url)) {
42
- return url;
43
- }
44
- else if (url instanceof File) {
45
- return url.name;
46
- }
47
- else if (url instanceof Array) {
48
- let modelurl = "";
49
- const suffixs = [
50
- "zip",
51
- "obj",
52
- "glb",
53
- "gltf",
54
- "fbx",
55
- "dae",
56
- "stl",
57
- "usdz",
58
- ];
59
- for (let file of url) {
60
- if (suffixs.includes(threeUtils.getSuffix(file.name))) {
61
- modelurl = file.name;
62
- }
63
- }
64
- return modelurl;
65
- }
66
- })();
67
- this.url = modelurl || "";
68
- if (!modelurl) {
69
- return;
70
- }
71
- this.loaded = false;
72
- // 没有模型并且没有加载任务时就去加载模型
73
- if (!MeshBase.models.get(modelurl) &&
74
- !MeshBase.loadModeling.get(modelurl)) {
75
- MeshBase.loadModeling.set(modelurl, true);
76
- // 万能加载器
77
- let modal = await threeLoader.loadModel(url, filename);
78
- MeshBase.models.set(modelurl, modal);
79
- MeshBase.loadModeling.set(modelurl, false);
80
- }
81
- // 如果模型还在加载中, 就等待模型加载完成
82
- do {
83
- await new Promise((resolve) => setTimeout(resolve, 50));
84
- } while (MeshBase.loadModeling.get(modelurl));
85
- if (MeshBase.models.get(modelurl)) {
86
- const mesh = MeshBase.models.get(modelurl);
87
- // 判断是否有动画
88
- this.hasAnimation = mesh.animations.length > 0;
89
- if (this.hasAnimation) {
90
- const model = SkeletonUtils.clone(mesh);
91
- this.mixer = new AnimationMixer(model);
92
- this.animationActions = {};
93
- mesh.animations.map((animation) => {
94
- const animationAction = this.mixer.clipAction(animation).play();
95
- animationAction.weight = 0;
96
- this.animationActions[animation.name] = animationAction;
97
- });
98
- this.reset(model);
99
- }
100
- else {
101
- this.reset(mesh.clone(true));
102
- }
103
- }
104
- await new Promise((resolve) => requestAnimationFrame(resolve));
105
- this.loaded = true;
106
- // 加载完成事件
107
- this.dispatchEvent({ type: "loaded" });
108
- }
109
- // 超出绘制区域时不绘制
110
- frustumCulled = false;
111
- // 创建阴影
112
- castShadow = false;
113
- // 接受阴影
114
- receiveShadow = false;
115
- // promise.resole 队列
116
- resoles = [];
117
- // 等待加载加载完成
118
- async awaitLoaded() {
119
- if (!this.loaded) {
120
- await new Promise((resolve) => {
121
- if (this.resoles.length === 0) {
122
- (async () => {
123
- while (!this.loaded) {
124
- await new Promise((resolve) => requestAnimationFrame(resolve));
125
- }
126
- while (this.resoles.length > 0) {
127
- const resole = this.resoles.pop();
128
- resole && resole();
129
- }
130
- })();
131
- }
132
- this.resoles.unshift(resolve);
133
- });
134
- }
135
- }
136
- //遍历模型
137
- async traverseMesh(callback) {
138
- // 等待加载完成
139
- await this.awaitLoaded();
140
- this.traverse((obj) => {
141
- const mesh = obj;
142
- if (mesh.isMesh) {
143
- callback(mesh);
144
- }
145
- });
146
- }
147
- clock = new Clock();
148
- //设置动画的权重
149
- async setClipActionWeight(weights = {}) {
150
- // 等待加载完成
151
- await this.awaitLoaded();
152
- for (let key in this.animationActions) {
153
- this.animationActions[key].weight = weights[key] || 0;
154
- }
155
- }
156
- //获取动画列表
157
- getAnimas() {
158
- return Object.keys(this.animationActions);
159
- }
160
- //播放指定动画
161
- setAnimas(anima = "") {
162
- this.setClipActionWeight({ [anima]: 1 });
163
- }
164
- //停止所有动画
165
- stop() {
166
- this.setClipActionWeight();
167
- }
168
- updateMatrix() {
169
- //播放动画
170
- if (this.mixer) {
171
- this.mixer.update(this.clock.getDelta());
172
- }
173
- // 深度应用属性
174
- this.traverse((obj) => {
175
- const mesh = obj;
176
- if (mesh.isMesh) {
177
- mesh.frustumCulled = this.frustumCulled;
178
- mesh.castShadow = this.castShadow;
179
- mesh.receiveShadow = this.receiveShadow;
180
- }
181
- });
182
- super.updateMatrix();
183
- }
184
- // 获取模型的尺寸
185
- async getSize() {
186
- await this.awaitLoaded();
187
- return threeUtils.getSize(this);
188
- }
189
- // 居中
190
- async center() {
191
- await this.awaitLoaded();
192
- threeUtils.center(this);
193
- }
194
- //底对齐
195
- async alignBottom(y = 0) {
196
- await this.awaitLoaded();
197
- threeUtils.alignBottom(this, y);
198
- }
199
- // 放大到指定尺寸
200
- async scaleTo(size = 1, key = ["x", "y", "z"]) {
201
- await this.awaitLoaded();
202
- threeUtils.scaleTo(this, size, key);
203
- }
204
- //按照法线拓展
205
- expandBynormal(length) {
206
- this.traverseMesh((mesh) => {
207
- // 没有法线就计算法线
208
- mesh.geometry = mesh.geometry.clone();
209
- if (!mesh.geometry.getAttribute("normal")) {
210
- mesh.geometry.computeVertexNormals();
211
- }
212
- const normal = mesh.geometry.getAttribute("normal");
213
- const position = mesh.geometry.getAttribute("position");
214
- const v3 = new Vector3(0, 0, 0);
215
- for (let i = 0; i < position.count; i++) {
216
- v3.set(normal.getX(i), normal.getY(i), normal.getZ(i));
217
- v3.setLength(length);
218
- position.setXYZ(i, position.getX(i) + v3.x, position.getY(i) + v3.y, position.getZ(i) + v3.z);
219
- }
220
- position.needsUpdate = true;
221
- });
222
- }
223
- }
1
+ import { AnimationMixer, Clock, Group, Vector3, } from "three";
2
+ import threeUtils from "./threeUtils";
3
+ import threeLoader from "./threeLoader";
4
+ import * as SkeletonUtils from "three/examples/jsm/utils/SkeletonUtils";
5
+ import { isString } from "lodash";
6
+ // 模型基类
7
+ export default class MeshBase extends Group {
8
+ constructor(url) {
9
+ super();
10
+ url && this.loadModel(url);
11
+ }
12
+ url = "";
13
+ // 模型对象
14
+ static models = new Map();
15
+ // 模型是否在加载中
16
+ static loadModeling = new Map();
17
+ // 加载完成
18
+ loaded = false;
19
+ // 是否有动画
20
+ hasAnimation = false;
21
+ //动画混合器
22
+ mixer;
23
+ //动画剪辑对象数组
24
+ animationActions = {};
25
+ // 获取文件名的后缀
26
+ getSuffix(filename) {
27
+ const match = filename.match(/\.([^\.]+)$/);
28
+ return match ? match[1].toLowerCase() : "";
29
+ }
30
+ // 重置子元素
31
+ reset(...object) {
32
+ threeUtils.dipose(this);
33
+ super.clear();
34
+ super.add(...object);
35
+ return this;
36
+ }
37
+ // 如果url 是blob地址的话,就用suffix字段来制定模型的类型
38
+ async loadModel(url, filename = "") {
39
+ //获取模型文件的地址
40
+ const modelurl = await (async () => {
41
+ if (isString(url)) {
42
+ return url;
43
+ }
44
+ else if (url instanceof File) {
45
+ return url.name;
46
+ }
47
+ else if (url instanceof Array) {
48
+ let modelurl = "";
49
+ const suffixs = [
50
+ "zip",
51
+ "obj",
52
+ "glb",
53
+ "gltf",
54
+ "fbx",
55
+ "dae",
56
+ "stl",
57
+ "usdz",
58
+ ];
59
+ for (let file of url) {
60
+ if (suffixs.includes(threeUtils.getSuffix(file.name))) {
61
+ modelurl = file.name;
62
+ }
63
+ }
64
+ return modelurl;
65
+ }
66
+ })();
67
+ this.url = modelurl || "";
68
+ if (!modelurl) {
69
+ return;
70
+ }
71
+ this.loaded = false;
72
+ // 没有模型并且没有加载任务时就去加载模型
73
+ if (!MeshBase.models.get(modelurl) &&
74
+ !MeshBase.loadModeling.get(modelurl)) {
75
+ MeshBase.loadModeling.set(modelurl, true);
76
+ // 万能加载器
77
+ let modal = await threeLoader.loadModel(url, filename);
78
+ MeshBase.models.set(modelurl, modal);
79
+ MeshBase.loadModeling.set(modelurl, false);
80
+ }
81
+ // 如果模型还在加载中, 就等待模型加载完成
82
+ do {
83
+ await new Promise((resolve) => setTimeout(resolve, 50));
84
+ } while (MeshBase.loadModeling.get(modelurl));
85
+ if (MeshBase.models.get(modelurl)) {
86
+ const mesh = MeshBase.models.get(modelurl);
87
+ // 判断是否有动画
88
+ this.hasAnimation = mesh.animations.length > 0;
89
+ if (this.hasAnimation) {
90
+ const model = SkeletonUtils.clone(mesh);
91
+ this.mixer = new AnimationMixer(model);
92
+ this.animationActions = {};
93
+ mesh.animations.map((animation) => {
94
+ const animationAction = this.mixer.clipAction(animation).play();
95
+ animationAction.weight = 0;
96
+ this.animationActions[animation.name] = animationAction;
97
+ });
98
+ this.reset(model);
99
+ }
100
+ else {
101
+ this.reset(mesh.clone(true));
102
+ }
103
+ }
104
+ await new Promise((resolve) => requestAnimationFrame(resolve));
105
+ this.loaded = true;
106
+ // 加载完成事件
107
+ this.dispatchEvent({ type: "loaded" });
108
+ }
109
+ // 超出绘制区域时不绘制
110
+ frustumCulled = false;
111
+ // 创建阴影
112
+ castShadow = false;
113
+ // 接受阴影
114
+ receiveShadow = false;
115
+ // promise.resole 队列
116
+ resoles = [];
117
+ // 等待加载加载完成
118
+ async awaitLoaded() {
119
+ if (!this.loaded) {
120
+ await new Promise((resolve) => {
121
+ if (this.resoles.length === 0) {
122
+ (async () => {
123
+ while (!this.loaded) {
124
+ await new Promise((resolve) => requestAnimationFrame(resolve));
125
+ }
126
+ while (this.resoles.length > 0) {
127
+ const resole = this.resoles.pop();
128
+ resole && resole();
129
+ }
130
+ })();
131
+ }
132
+ this.resoles.unshift(resolve);
133
+ });
134
+ }
135
+ }
136
+ //遍历模型
137
+ async traverseMesh(callback) {
138
+ // 等待加载完成
139
+ await this.awaitLoaded();
140
+ this.traverse((obj) => {
141
+ const mesh = obj;
142
+ if (mesh.isMesh) {
143
+ callback(mesh);
144
+ }
145
+ });
146
+ }
147
+ clock = new Clock();
148
+ //设置动画的权重
149
+ async setClipActionWeight(weights = {}) {
150
+ // 等待加载完成
151
+ await this.awaitLoaded();
152
+ for (let key in this.animationActions) {
153
+ this.animationActions[key].weight = weights[key] || 0;
154
+ }
155
+ }
156
+ //获取动画列表
157
+ getAnimas() {
158
+ return Object.keys(this.animationActions);
159
+ }
160
+ //播放指定动画
161
+ setAnimas(anima = "") {
162
+ this.setClipActionWeight({ [anima]: 1 });
163
+ }
164
+ //停止所有动画
165
+ stop() {
166
+ this.setClipActionWeight();
167
+ }
168
+ updateMatrix() {
169
+ //播放动画
170
+ if (this.mixer) {
171
+ this.mixer.update(this.clock.getDelta());
172
+ }
173
+ // 深度应用属性
174
+ this.traverse((obj) => {
175
+ const mesh = obj;
176
+ if (mesh.isMesh) {
177
+ mesh.frustumCulled = this.frustumCulled;
178
+ mesh.castShadow = this.castShadow;
179
+ mesh.receiveShadow = this.receiveShadow;
180
+ }
181
+ });
182
+ super.updateMatrix();
183
+ }
184
+ // 获取模型的尺寸
185
+ async getSize() {
186
+ await this.awaitLoaded();
187
+ return threeUtils.getSize(this);
188
+ }
189
+ // 居中
190
+ async center() {
191
+ await this.awaitLoaded();
192
+ threeUtils.center(this);
193
+ }
194
+ //底对齐
195
+ async alignBottom(y = 0) {
196
+ await this.awaitLoaded();
197
+ threeUtils.alignBottom(this, y);
198
+ }
199
+ // 放大到指定尺寸
200
+ async scaleTo(size = 1, key = ["x", "y", "z"]) {
201
+ await this.awaitLoaded();
202
+ threeUtils.scaleTo(this, size, key);
203
+ }
204
+ //按照法线拓展
205
+ expandBynormal(length) {
206
+ this.traverseMesh((mesh) => {
207
+ // 没有法线就计算法线
208
+ mesh.geometry = mesh.geometry.clone();
209
+ if (!mesh.geometry.getAttribute("normal")) {
210
+ mesh.geometry.computeVertexNormals();
211
+ }
212
+ const normal = mesh.geometry.getAttribute("normal");
213
+ const position = mesh.geometry.getAttribute("position");
214
+ const v3 = new Vector3(0, 0, 0);
215
+ for (let i = 0; i < position.count; i++) {
216
+ v3.set(normal.getX(i), normal.getY(i), normal.getZ(i));
217
+ v3.setLength(length);
218
+ position.setXYZ(i, position.getX(i) + v3.x, position.getY(i) + v3.y, position.getZ(i) + v3.z);
219
+ }
220
+ position.needsUpdate = true;
221
+ });
222
+ }
223
+ }
package/Mirror.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- import { BufferGeometry, Camera, Group, Material, Matrix4, Mesh, PerspectiveCamera, Plane, PlaneGeometry, Scene, ShaderMaterial, Vector3, Vector4, WebGLRenderTarget, WebGLRenderer } from "three";
2
- export default class Mirror extends Mesh {
3
- constructor(geometry?: BufferGeometry);
4
- static geometry: PlaneGeometry;
5
- isReflector: boolean;
6
- type: string;
7
- camera: PerspectiveCamera;
8
- reflectorPlane: Plane;
9
- normal: Vector3;
10
- reflectorWorldPosition: Vector3;
11
- cameraWorldPosition: Vector3;
12
- rotationMatrix: Matrix4;
13
- lookAtPosition: Vector3;
14
- clipPlane: Vector4;
15
- view: Vector3;
16
- target: Vector3;
17
- q: Vector4;
18
- textureMatrix: Matrix4;
19
- virtualCamera: PerspectiveCamera;
20
- renderTarget: WebGLRenderTarget<import("three").Texture>;
21
- material: ShaderMaterial;
22
- onBeforeRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry, material: Material, group: Group) => void;
23
- getRenderTarget(): WebGLRenderTarget<import("three").Texture>;
24
- dispose(): void;
25
- }
1
+ import { BufferGeometry, Camera, Group, Material, Matrix4, Mesh, PerspectiveCamera, Plane, PlaneGeometry, Scene, ShaderMaterial, Vector3, Vector4, WebGLRenderTarget, WebGLRenderer } from "three";
2
+ export default class Mirror extends Mesh {
3
+ constructor(geometry?: BufferGeometry);
4
+ static geometry: PlaneGeometry;
5
+ isReflector: boolean;
6
+ type: string;
7
+ camera: PerspectiveCamera;
8
+ reflectorPlane: Plane;
9
+ normal: Vector3;
10
+ reflectorWorldPosition: Vector3;
11
+ cameraWorldPosition: Vector3;
12
+ rotationMatrix: Matrix4;
13
+ lookAtPosition: Vector3;
14
+ clipPlane: Vector4;
15
+ view: Vector3;
16
+ target: Vector3;
17
+ q: Vector4;
18
+ textureMatrix: Matrix4;
19
+ virtualCamera: PerspectiveCamera;
20
+ renderTarget: WebGLRenderTarget<import("three").Texture>;
21
+ material: ShaderMaterial;
22
+ onBeforeRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry, material: Material, group: Group) => void;
23
+ getRenderTarget(): WebGLRenderTarget<import("three").Texture>;
24
+ dispose(): void;
25
+ }