@zephyr3d/scene 0.9.6 → 0.9.8

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 (205) hide show
  1. package/dist/animation/animationset.js +52 -55
  2. package/dist/animation/animationset.js.map +1 -1
  3. package/dist/animation/joint_dynamics/controller.js +92 -32
  4. package/dist/animation/joint_dynamics/controller.js.map +1 -1
  5. package/dist/animation/joint_dynamics/convex_collider.js +320 -0
  6. package/dist/animation/joint_dynamics/convex_collider.js.map +1 -0
  7. package/dist/animation/joint_dynamics/joint_dynamics_system.js +57 -19
  8. package/dist/animation/joint_dynamics/joint_dynamics_system.js.map +1 -1
  9. package/dist/animation/joint_dynamics/solver.js +71 -27
  10. package/dist/animation/joint_dynamics/solver.js.map +1 -1
  11. package/dist/animation/joint_dynamics_modifier.js +4 -3
  12. package/dist/animation/joint_dynamics_modifier.js.map +1 -1
  13. package/dist/animation/skeleton.js +7 -10
  14. package/dist/animation/skeleton.js.map +1 -1
  15. package/dist/app/engine.js +3 -9
  16. package/dist/app/engine.js.map +1 -1
  17. package/dist/app/scriptregistry.js +47 -16
  18. package/dist/app/scriptregistry.js.map +1 -1
  19. package/dist/asset/assetmanager.js +3 -1
  20. package/dist/asset/assetmanager.js.map +1 -1
  21. package/dist/asset/model.js +346 -7
  22. package/dist/asset/model.js.map +1 -1
  23. package/dist/avatar/wardrobe.js +7 -3
  24. package/dist/avatar/wardrobe.js.map +1 -1
  25. package/dist/camera/camera.js +240 -34
  26. package/dist/camera/camera.js.map +1 -1
  27. package/dist/index.d.ts +1350 -622
  28. package/dist/index.js +6 -11
  29. package/dist/index.js.map +1 -1
  30. package/dist/material/blinn.js +1 -1
  31. package/dist/material/blinn.js.map +1 -1
  32. package/dist/material/lambert.js +1 -1
  33. package/dist/material/lambert.js.map +1 -1
  34. package/dist/material/material.js +23 -1
  35. package/dist/material/material.js.map +1 -1
  36. package/dist/material/meshmaterial.js +178 -23
  37. package/dist/material/meshmaterial.js.map +1 -1
  38. package/dist/material/mixins/albedocolor.js +4 -4
  39. package/dist/material/mixins/albedocolor.js.map +1 -1
  40. package/dist/material/mixins/lightmodel/blinnphong.js +2 -1
  41. package/dist/material/mixins/lightmodel/blinnphong.js.map +1 -1
  42. package/dist/material/mixins/lightmodel/lambert.js +2 -1
  43. package/dist/material/mixins/lightmodel/lambert.js.map +1 -1
  44. package/dist/material/mixins/lightmodel/pbrblueprintmixin.js +63 -16
  45. package/dist/material/mixins/lightmodel/pbrblueprintmixin.js.map +1 -1
  46. package/dist/material/mixins/lightmodel/pbrmetallicroughness.js +100 -27
  47. package/dist/material/mixins/lightmodel/pbrmetallicroughness.js.map +1 -1
  48. package/dist/material/mixins/lightmodel/pbrspecularglossness.js +16 -6
  49. package/dist/material/mixins/lightmodel/pbrspecularglossness.js.map +1 -1
  50. package/dist/material/mixins/lit.js +1 -1
  51. package/dist/material/mixins/lit.js.map +1 -1
  52. package/dist/material/mixins/pbr/common.js +276 -65
  53. package/dist/material/mixins/pbr/common.js.map +1 -1
  54. package/dist/material/mixins/texture.js +3 -3
  55. package/dist/material/mixins/texture.js.map +1 -1
  56. package/dist/material/mixins/vertexcolor.js +2 -2
  57. package/dist/material/mixins/vertexcolor.js.map +1 -1
  58. package/dist/material/mtoon.js +574 -0
  59. package/dist/material/mtoon.js.map +1 -0
  60. package/dist/material/pbrblueprint.js +494 -331
  61. package/dist/material/pbrblueprint.js.map +1 -1
  62. package/dist/material/pbrmr.js +118 -100
  63. package/dist/material/pbrmr.js.map +1 -1
  64. package/dist/material/pbrsg.js +1 -1
  65. package/dist/material/pbrsg.js.map +1 -1
  66. package/dist/material/shader/helper.js +45 -15
  67. package/dist/material/shader/helper.js.map +1 -1
  68. package/dist/material/subsurfaceprofile.js +812 -0
  69. package/dist/material/subsurfaceprofile.js.map +1 -0
  70. package/dist/material/unlit.js +1 -1
  71. package/dist/material/unlit.js.map +1 -1
  72. package/dist/posteffect/compositor.js +46 -11
  73. package/dist/posteffect/compositor.js.map +1 -1
  74. package/dist/posteffect/ssr.js +413 -87
  75. package/dist/posteffect/ssr.js.map +1 -1
  76. package/dist/posteffect/sss.js +1053 -0
  77. package/dist/posteffect/sss.js.map +1 -0
  78. package/dist/posteffect/taa.js +61 -60
  79. package/dist/posteffect/taa.js.map +1 -1
  80. package/dist/render/abuffer_oit.js +63 -12
  81. package/dist/render/abuffer_oit.js.map +1 -1
  82. package/dist/render/cluster_light.js +6 -5
  83. package/dist/render/cluster_light.js.map +1 -1
  84. package/dist/render/drawable.js +1 -5
  85. package/dist/render/drawable.js.map +1 -1
  86. package/dist/render/drawable_mixin.js +2 -1
  87. package/dist/render/drawable_mixin.js.map +1 -1
  88. package/dist/render/fbm_wavegenerator.js +2 -1
  89. package/dist/render/fbm_wavegenerator.js.map +1 -1
  90. package/dist/render/gerstner_wavegenerator.js +2 -1
  91. package/dist/render/gerstner_wavegenerator.js.map +1 -1
  92. package/dist/render/globalbindgroup_allocator.js +2 -1
  93. package/dist/render/globalbindgroup_allocator.js.map +1 -1
  94. package/dist/render/lightpass.js +105 -18
  95. package/dist/render/lightpass.js.map +1 -1
  96. package/dist/render/render_queue.js +51 -8
  97. package/dist/render/render_queue.js.map +1 -1
  98. package/dist/render/renderer.js +73 -59
  99. package/dist/render/renderer.js.map +1 -1
  100. package/dist/render/rendergraph/device_pool_allocator.js +8 -0
  101. package/dist/render/rendergraph/device_pool_allocator.js.map +1 -1
  102. package/dist/render/rendergraph/forward_plus_builder.js +481 -95
  103. package/dist/render/rendergraph/forward_plus_builder.js.map +1 -1
  104. package/dist/render/rendergraph/history_resource_manager.js +55 -0
  105. package/dist/render/rendergraph/history_resource_manager.js.map +1 -1
  106. package/dist/render/rendergraph/history_resources.js +3 -1
  107. package/dist/render/rendergraph/history_resources.js.map +1 -1
  108. package/dist/render/rendergraph/types.js.map +1 -1
  109. package/dist/render/renderpass.js +10 -4
  110. package/dist/render/renderpass.js.map +1 -1
  111. package/dist/render/sky.js +31 -1
  112. package/dist/render/sky.js.map +1 -1
  113. package/dist/render/weightedblended_oit.js +23 -5
  114. package/dist/render/weightedblended_oit.js.map +1 -1
  115. package/dist/scene/basesprite.js +4 -2
  116. package/dist/scene/basesprite.js.map +1 -1
  117. package/dist/scene/batchgroup.js +3 -1
  118. package/dist/scene/batchgroup.js.map +1 -1
  119. package/dist/scene/environment.js +11 -1
  120. package/dist/scene/environment.js.map +1 -1
  121. package/dist/scene/light.js +21 -3
  122. package/dist/scene/light.js.map +1 -1
  123. package/dist/scene/mesh.js +29 -14
  124. package/dist/scene/mesh.js.map +1 -1
  125. package/dist/scene/meshdrawable.js +6 -0
  126. package/dist/scene/meshdrawable.js.map +1 -1
  127. package/dist/scene/msdftext.js +5 -2
  128. package/dist/scene/msdftext.js.map +1 -1
  129. package/dist/scene/msdftextsprite.js +5 -3
  130. package/dist/scene/msdftextsprite.js.map +1 -1
  131. package/dist/scene/particlesys.js +3 -1
  132. package/dist/scene/particlesys.js.map +1 -1
  133. package/dist/scene/scene.js +6 -5
  134. package/dist/scene/scene.js.map +1 -1
  135. package/dist/scene/terrain-cm/grass.js +4 -2
  136. package/dist/scene/terrain-cm/grass.js.map +1 -1
  137. package/dist/scene/terrain-cm/grassmaterial.js +2 -1
  138. package/dist/scene/terrain-cm/grassmaterial.js.map +1 -1
  139. package/dist/scene/terrain-cm/terrain-cm.js +4 -2
  140. package/dist/scene/terrain-cm/terrain-cm.js.map +1 -1
  141. package/dist/scene/water.js +4 -2
  142. package/dist/scene/water.js.map +1 -1
  143. package/dist/shaders/shadow.js +26 -393
  144. package/dist/shaders/shadow.js.map +1 -1
  145. package/dist/shadow/esm.js +112 -12
  146. package/dist/shadow/esm.js.map +1 -1
  147. package/dist/shadow/pcf_opt.js +2 -2
  148. package/dist/shadow/pcf_opt.js.map +1 -1
  149. package/dist/shadow/pcf_pd.js +19 -10
  150. package/dist/shadow/pcf_pd.js.map +1 -1
  151. package/dist/shadow/shader.js +58 -7
  152. package/dist/shadow/shader.js.map +1 -1
  153. package/dist/shadow/shadow_impl.js +6 -0
  154. package/dist/shadow/shadow_impl.js.map +1 -1
  155. package/dist/shadow/shadow_region.js +229 -0
  156. package/dist/shadow/shadow_region.js.map +1 -0
  157. package/dist/shadow/shadowmapper.js +67 -59
  158. package/dist/shadow/shadowmapper.js.map +1 -1
  159. package/dist/shadow/vsm.js +45 -19
  160. package/dist/shadow/vsm.js.map +1 -1
  161. package/dist/utility/blueprint/common/constants.js +8 -8
  162. package/dist/utility/blueprint/common/constants.js.map +1 -1
  163. package/dist/utility/blueprint/material/pbr.js +31 -4
  164. package/dist/utility/blueprint/material/pbr.js.map +1 -1
  165. package/dist/utility/blueprint/material/texture.js +1 -17
  166. package/dist/utility/blueprint/material/texture.js.map +1 -1
  167. package/dist/utility/serialization/manager.js +66 -98
  168. package/dist/utility/serialization/manager.js.map +1 -1
  169. package/dist/utility/serialization/scene/animation.js +5 -2
  170. package/dist/utility/serialization/scene/animation.js.map +1 -1
  171. package/dist/utility/serialization/scene/batch.js +4 -1
  172. package/dist/utility/serialization/scene/batch.js.map +1 -1
  173. package/dist/utility/serialization/scene/camera.js +249 -54
  174. package/dist/utility/serialization/scene/camera.js.map +1 -1
  175. package/dist/utility/serialization/scene/common.js +37 -1
  176. package/dist/utility/serialization/scene/common.js.map +1 -1
  177. package/dist/utility/serialization/scene/light.js +42 -3
  178. package/dist/utility/serialization/scene/light.js.map +1 -1
  179. package/dist/utility/serialization/scene/material.js +1112 -646
  180. package/dist/utility/serialization/scene/material.js.map +1 -1
  181. package/dist/utility/serialization/scene/mesh.js +7 -4
  182. package/dist/utility/serialization/scene/mesh.js.map +1 -1
  183. package/dist/utility/serialization/scene/node.js +31 -12
  184. package/dist/utility/serialization/scene/node.js.map +1 -1
  185. package/dist/utility/serialization/scene/particle.js +4 -1
  186. package/dist/utility/serialization/scene/particle.js.map +1 -1
  187. package/dist/utility/serialization/scene/primitive.js +3 -1
  188. package/dist/utility/serialization/scene/primitive.js.map +1 -1
  189. package/dist/utility/serialization/scene/scene.js +18 -0
  190. package/dist/utility/serialization/scene/scene.js.map +1 -1
  191. package/dist/utility/serialization/scene/sprite.js +6 -3
  192. package/dist/utility/serialization/scene/sprite.js.map +1 -1
  193. package/dist/utility/serialization/scene/terrain.js +5 -2
  194. package/dist/utility/serialization/scene/terrain.js.map +1 -1
  195. package/dist/utility/serialization/scene/text.js +3 -1
  196. package/dist/utility/serialization/scene/text.js.map +1 -1
  197. package/dist/utility/serialization/scene/water.js +4 -1
  198. package/dist/utility/serialization/scene/water.js.map +1 -1
  199. package/dist/utility/textures/ltcdata.js +6 -0
  200. package/dist/utility/textures/ltcdata.js.map +1 -0
  201. package/dist/utility/textures/ltclut.js +61 -0
  202. package/dist/utility/textures/ltclut.js.map +1 -0
  203. package/dist/values.js +9 -1
  204. package/dist/values.js.map +1 -1
  205. package/package.json +3 -3
@@ -13,17 +13,19 @@ import '../../../material/lambert.js';
13
13
  import '../../../material/blinn.js';
14
14
  import '../../../material/unlit.js';
15
15
  import '../../../material/particle.js';
16
+ import '../../../material/subsurfaceprofile.js';
16
17
  import '../../../material/meshmaterial.js';
17
18
  import '../../../material/grassmaterial.js';
18
19
  import '../../../material/terrain-cm.js';
19
20
  import '../../../material/pbrmr.js';
20
21
  import '../../../material/pbrsg.js';
22
+ import '../../../material/mtoon.js';
21
23
  import '../../../material/pbrblueprint.js';
22
24
  import '../../../material/sprite.js';
23
25
  import '../../../material/sprite_std.js';
24
- import '../../../material/msdf_text.js';
25
26
  import '../../blueprint/material/texture.js';
26
27
  import '../../../render/rendergraph/forward_plus_builder.js';
28
+ import '../../../render/lightpass.js';
27
29
  import '../../../render/sky.js';
28
30
  import '../../../render/clipmap.js';
29
31
  import { TAA_DEBUG_NONE, TAA_DEBUG_CURRENT_COLOR, TAA_DEBUG_HISTORY_COLOR, TAA_DEBUG_VELOCITY, TAA_DEBUG_EDGE, TAA_DEBUG_ALAPH, TAA_DEBUG_MOTION_VECTOR, TAA_DEBUG_STRENGTH } from '../../../shaders/temporal.js';
@@ -33,6 +35,7 @@ import '../../../shadow/shadowmapper.js';
33
35
  import '../../../scene/mesh.js';
34
36
  import '../../../scene/basesprite.js';
35
37
  import '../../../scene/meshdrawable.js';
38
+ import '../../../material/msdf_text.js';
36
39
  import '../../../scene/water.js';
37
40
  import '../../../scene/particlesys.js';
38
41
  import '../../../scene/batchgroup.js';
@@ -56,7 +59,6 @@ import '../../../scene/raycast_visitor.js';
56
59
  return defineProps([
57
60
  {
58
61
  name: 'UseScreenSettings',
59
- description: 'Whether this camera is adapted to screen settings',
60
62
  type: 'bool',
61
63
  default: false,
62
64
  get (value) {
@@ -68,7 +70,6 @@ import '../../../scene/raycast_visitor.js';
68
70
  },
69
71
  {
70
72
  name: 'DesignWidth',
71
- description: 'Design width of screen settings',
72
73
  type: 'int',
73
74
  options: {
74
75
  minValue: 1
@@ -89,7 +90,6 @@ import '../../../scene/raycast_visitor.js';
89
90
  },
90
91
  {
91
92
  name: 'DesignHeight',
92
- description: 'Design height of screen settings',
93
93
  type: 'int',
94
94
  options: {
95
95
  minValue: 1
@@ -110,7 +110,6 @@ import '../../../scene/raycast_visitor.js';
110
110
  },
111
111
  {
112
112
  name: 'ScreenScaleMode',
113
- description: 'Scale mode of screen settings, valid values are `fit` | `cover` | `stretch` | `fit-width` | `fit-height`',
114
113
  type: 'string',
115
114
  default: 'cover',
116
115
  options: {
@@ -146,7 +145,6 @@ import '../../../scene/raycast_visitor.js';
146
145
  },
147
146
  {
148
147
  name: 'HDR',
149
- description: 'If true, float point framebuffer will be used for rendering',
150
148
  type: 'bool',
151
149
  default: false,
152
150
  get (value) {
@@ -158,7 +156,6 @@ import '../../../scene/raycast_visitor.js';
158
156
  },
159
157
  {
160
158
  name: 'HiZ',
161
- description: 'If true, HiZ rendering pass will be enabled',
162
159
  type: 'bool',
163
160
  default: false,
164
161
  get (value) {
@@ -170,7 +167,6 @@ import '../../../scene/raycast_visitor.js';
170
167
  },
171
168
  {
172
169
  name: 'OITMode',
173
- description: 'Which OIT mode should be used for transparent rendering, valid values are `none` | `weighted` | `abuffer`',
174
170
  type: 'string',
175
171
  default: 'none',
176
172
  options: {
@@ -198,7 +194,6 @@ import '../../../scene/raycast_visitor.js';
198
194
  },
199
195
  {
200
196
  name: 'ABufferLayers',
201
- description: 'Maximum layers for abuffer OIT',
202
197
  type: 'int',
203
198
  default: 20,
204
199
  options: {
@@ -218,7 +213,6 @@ import '../../../scene/raycast_visitor.js';
218
213
  },
219
214
  {
220
215
  name: 'ToneMapEnabled',
221
- description: 'If true, tonemap post-processing will be enabled',
222
216
  type: 'bool',
223
217
  phase: 0,
224
218
  default: true,
@@ -235,7 +229,6 @@ import '../../../scene/raycast_visitor.js';
235
229
  },
236
230
  {
237
231
  name: 'ToneMapExposure',
238
- description: 'Exposure value for tonemapping',
239
232
  type: 'float',
240
233
  options: {
241
234
  minValue: 0,
@@ -254,7 +247,6 @@ import '../../../scene/raycast_visitor.js';
254
247
  },
255
248
  {
256
249
  name: 'ColorAdjustEnabled',
257
- description: `If true, color adjust post-processing will be enabled`,
258
250
  type: 'bool',
259
251
  phase: 0,
260
252
  default: false,
@@ -271,7 +263,6 @@ import '../../../scene/raycast_visitor.js';
271
263
  },
272
264
  {
273
265
  name: 'ColorAdjustSaturation',
274
- description: 'Saturation value for color adjust post-processing',
275
266
  type: 'float',
276
267
  phase: 1,
277
268
  default: 1,
@@ -294,7 +285,6 @@ import '../../../scene/raycast_visitor.js';
294
285
  },
295
286
  {
296
287
  name: 'ColorAdjustContrast',
297
- description: 'Contrast value for color adjust post-processing',
298
288
  type: 'float',
299
289
  phase: 1,
300
290
  default: 1,
@@ -317,7 +307,6 @@ import '../../../scene/raycast_visitor.js';
317
307
  },
318
308
  {
319
309
  name: 'ColorAdjustHue',
320
- description: 'Hue value for color adjust post-processing',
321
310
  type: 'float',
322
311
  phase: 1,
323
312
  default: 0,
@@ -340,7 +329,6 @@ import '../../../scene/raycast_visitor.js';
340
329
  },
341
330
  {
342
331
  name: 'Sharpen',
343
- description: 'Sharpen value for color adjust post-processing',
344
332
  type: 'float',
345
333
  phase: 1,
346
334
  default: 0,
@@ -363,7 +351,6 @@ import '../../../scene/raycast_visitor.js';
363
351
  },
364
352
  {
365
353
  name: 'BloomEnabled',
366
- description: 'If true, bloom post-processing will be enabled',
367
354
  type: 'bool',
368
355
  phase: 0,
369
356
  default: true,
@@ -380,7 +367,6 @@ import '../../../scene/raycast_visitor.js';
380
367
  },
381
368
  {
382
369
  name: 'BloomMaxDownsampleLevels',
383
- description: 'Maximum downsample levels for bloom post-processing',
384
370
  type: 'int',
385
371
  options: {
386
372
  minValue: 0,
@@ -399,7 +385,6 @@ import '../../../scene/raycast_visitor.js';
399
385
  },
400
386
  {
401
387
  name: 'BloomDownsampleLimit',
402
- description: 'Minimum downsample framebuffer resolution for bloom post-processing',
403
388
  type: 'int',
404
389
  options: {
405
390
  minValue: 2,
@@ -418,7 +403,6 @@ import '../../../scene/raycast_visitor.js';
418
403
  },
419
404
  {
420
405
  name: 'BloomThreshold',
421
- description: 'Color threshold for bloom post-processing',
422
406
  type: 'float',
423
407
  options: {
424
408
  animatable: true,
@@ -438,7 +422,6 @@ import '../../../scene/raycast_visitor.js';
438
422
  },
439
423
  {
440
424
  name: 'BloomThresholdKnee',
441
- description: 'Color threshold-knee value for bloom post-processing',
442
425
  type: 'float',
443
426
  options: {
444
427
  animatable: true,
@@ -458,7 +441,6 @@ import '../../../scene/raycast_visitor.js';
458
441
  },
459
442
  {
460
443
  name: 'BloomIntensity',
461
- description: 'Intensity value for bloom post-processing',
462
444
  type: 'float',
463
445
  options: {
464
446
  animatable: true,
@@ -478,7 +460,6 @@ import '../../../scene/raycast_visitor.js';
478
460
  },
479
461
  {
480
462
  name: 'FXAAEnabled',
481
- description: 'If true, FXAA post-processing will be enabled',
482
463
  type: 'bool',
483
464
  phase: 0,
484
465
  default: true,
@@ -495,7 +476,6 @@ import '../../../scene/raycast_visitor.js';
495
476
  },
496
477
  {
497
478
  name: 'TAAEnabled',
498
- description: 'If true, TAA post-processing will be enabled',
499
479
  type: 'bool',
500
480
  phase: 0,
501
481
  default: false,
@@ -512,7 +492,6 @@ import '../../../scene/raycast_visitor.js';
512
492
  },
513
493
  {
514
494
  name: 'TAADebug',
515
- description: 'Debug channel for TAA post-processing',
516
495
  type: 'int',
517
496
  phase: 1,
518
497
  options: {
@@ -554,7 +533,6 @@ import '../../../scene/raycast_visitor.js';
554
533
  },
555
534
  {
556
535
  name: 'MotionBlurEnabled',
557
- description: 'If true, motion blur post-processing will be enabled',
558
536
  type: 'bool',
559
537
  phase: 0,
560
538
  default: false,
@@ -571,7 +549,6 @@ import '../../../scene/raycast_visitor.js';
571
549
  },
572
550
  {
573
551
  name: 'MotionBlurStrength',
574
- description: 'Strength value for motion blur post-processing',
575
552
  type: 'float',
576
553
  phase: 1,
577
554
  default: 1,
@@ -594,7 +571,6 @@ import '../../../scene/raycast_visitor.js';
594
571
  },
595
572
  {
596
573
  name: 'SSREnabled',
597
- description: 'If true, SSR post-processing will be enabled',
598
574
  type: 'bool',
599
575
  phase: 0,
600
576
  default: false,
@@ -611,7 +587,6 @@ import '../../../scene/raycast_visitor.js';
611
587
  },
612
588
  {
613
589
  name: 'SSRMaxRoughness',
614
- description: 'Maximum roughness value for SSR post-processing',
615
590
  type: 'float',
616
591
  phase: 1,
617
592
  default: 0.8,
@@ -633,7 +608,6 @@ import '../../../scene/raycast_visitor.js';
633
608
  },
634
609
  {
635
610
  name: 'SSRRoughnessFactor',
636
- description: 'Global roughness multiplier for debugging',
637
611
  type: 'float',
638
612
  phase: 1,
639
613
  default: 1.0,
@@ -655,7 +629,6 @@ import '../../../scene/raycast_visitor.js';
655
629
  },
656
630
  {
657
631
  name: 'SSRStride',
658
- description: 'How many pixels per step for screen-space ray tracing, no effect if HiZ is enabled',
659
632
  type: 'int',
660
633
  phase: 1,
661
634
  default: 2,
@@ -677,7 +650,6 @@ import '../../../scene/raycast_visitor.js';
677
650
  },
678
651
  {
679
652
  name: 'SSRMaxDistance',
680
- description: 'Maximum distance in pixels for screen-space ray tracing',
681
653
  type: 'float',
682
654
  phase: 1,
683
655
  default: 100,
@@ -699,7 +671,6 @@ import '../../../scene/raycast_visitor.js';
699
671
  },
700
672
  {
701
673
  name: 'SSRMaxSteps',
702
- description: 'Maximum steps for screen-space ray tracing',
703
674
  type: 'int',
704
675
  phase: 1,
705
676
  default: 120,
@@ -721,7 +692,6 @@ import '../../../scene/raycast_visitor.js';
721
692
  },
722
693
  {
723
694
  name: 'SSRThickness',
724
- description: 'Thickness value for screen-space ray tracing',
725
695
  type: 'float',
726
696
  phase: 1,
727
697
  default: 0.5,
@@ -743,7 +713,6 @@ import '../../../scene/raycast_visitor.js';
743
713
  },
744
714
  {
745
715
  name: 'SSRBlurScale',
746
- description: 'Scale value of bilateral blur for SSR post-processing',
747
716
  phase: 1,
748
717
  type: 'float',
749
718
  default: 0.01,
@@ -765,7 +734,6 @@ import '../../../scene/raycast_visitor.js';
765
734
  },
766
735
  {
767
736
  name: 'SSRBlurDepthCutoff',
768
- description: 'Depth cutoff of bilateral blur for SSR post-processing',
769
737
  phase: 1,
770
738
  type: 'float',
771
739
  default: 2,
@@ -787,7 +755,6 @@ import '../../../scene/raycast_visitor.js';
787
755
  },
788
756
  {
789
757
  name: 'SSRBlurKernelSize',
790
- description: 'Kernel size of bilateral blur for SSR post-processing',
791
758
  type: 'int',
792
759
  phase: 1,
793
760
  default: 10,
@@ -809,7 +776,6 @@ import '../../../scene/raycast_visitor.js';
809
776
  },
810
777
  {
811
778
  name: 'SSRBlurStdDev',
812
- description: 'Stddev of bilateral blur for SSR post-processing',
813
779
  type: 'float',
814
780
  phase: 1,
815
781
  default: 10,
@@ -831,7 +797,6 @@ import '../../../scene/raycast_visitor.js';
831
797
  },
832
798
  {
833
799
  name: 'SSRCalcThickness',
834
- description: 'If true, automatically calculate thickness for screen-space ray tracing',
835
800
  type: 'bool',
836
801
  phase: 1,
837
802
  default: false,
@@ -849,9 +814,253 @@ import '../../../scene/raycast_visitor.js';
849
814
  return this.SSR;
850
815
  }
851
816
  },
817
+ {
818
+ name: 'SSRTemporal',
819
+ type: 'bool',
820
+ phase: 1,
821
+ default: true,
822
+ options: {
823
+ label: 'Temporal',
824
+ group: 'PostProcessing/SSR'
825
+ },
826
+ get (value) {
827
+ value.bool[0] = this.ssrTemporal;
828
+ },
829
+ set (value) {
830
+ this.ssrTemporal = value.bool[0];
831
+ },
832
+ isValid () {
833
+ return this.SSR;
834
+ }
835
+ },
836
+ {
837
+ name: 'SSRTemporalWeight',
838
+ type: 'float',
839
+ phase: 1,
840
+ default: 0.85,
841
+ options: {
842
+ label: 'TemporalWeight',
843
+ group: 'PostProcessing/SSR',
844
+ minValue: 0,
845
+ maxValue: 1
846
+ },
847
+ get (value) {
848
+ value.num[0] = this.ssrTemporalWeight;
849
+ },
850
+ set (value) {
851
+ this.ssrTemporalWeight = value.num[0];
852
+ },
853
+ isValid () {
854
+ return this.SSR && this.ssrTemporal;
855
+ }
856
+ },
857
+ {
858
+ name: 'SSSEnabled',
859
+ type: 'bool',
860
+ phase: 0,
861
+ default: false,
862
+ options: {
863
+ label: 'Enabled',
864
+ group: 'PostProcessing/SSS'
865
+ },
866
+ get (value) {
867
+ value.bool[0] = this.SSS;
868
+ },
869
+ set (value) {
870
+ this.SSS = value.bool[0];
871
+ }
872
+ },
873
+ {
874
+ name: 'SSSQualityPreset',
875
+ type: 'string',
876
+ phase: 0,
877
+ default: 'balanced',
878
+ options: {
879
+ label: 'QualityPreset',
880
+ group: 'PostProcessing/SSS',
881
+ enum: {
882
+ labels: [
883
+ 'Quality',
884
+ 'Balanced',
885
+ 'Performance'
886
+ ],
887
+ values: [
888
+ 'quality',
889
+ 'balanced',
890
+ 'performance'
891
+ ]
892
+ }
893
+ },
894
+ get (value) {
895
+ value.str[0] = this.sssQualityPreset;
896
+ },
897
+ set (value) {
898
+ this.sssQualityPreset = value.str[0];
899
+ },
900
+ isValid () {
901
+ return this.SSS;
902
+ }
903
+ },
904
+ {
905
+ name: 'SSSBlurScale',
906
+ type: 'float',
907
+ phase: 0,
908
+ default: 11,
909
+ options: {
910
+ label: 'BlurScale',
911
+ group: 'PostProcessing/SSS',
912
+ minValue: 0,
913
+ maxValue: 64
914
+ },
915
+ get (value) {
916
+ value.num[0] = this.sssBlurScale;
917
+ },
918
+ set (value) {
919
+ this.sssBlurScale = value.num[0];
920
+ },
921
+ isValid () {
922
+ return this.SSS;
923
+ }
924
+ },
925
+ {
926
+ name: 'SSSStrength',
927
+ type: 'float',
928
+ phase: 0,
929
+ default: 0.65,
930
+ options: {
931
+ label: 'Strength',
932
+ group: 'PostProcessing/SSS',
933
+ minValue: 0,
934
+ maxValue: 4
935
+ },
936
+ get (value) {
937
+ value.num[0] = this.sssStrength;
938
+ },
939
+ set (value) {
940
+ this.sssStrength = value.num[0];
941
+ },
942
+ isValid () {
943
+ return this.SSS;
944
+ }
945
+ },
946
+ {
947
+ name: 'SSSTransmissionStrength',
948
+ type: 'float',
949
+ phase: 0,
950
+ default: 0.18,
951
+ options: {
952
+ label: 'Transmission',
953
+ group: 'PostProcessing/SSS',
954
+ minValue: 0,
955
+ maxValue: 4
956
+ },
957
+ get (value) {
958
+ value.num[0] = this.sssTransmissionStrength;
959
+ },
960
+ set (value) {
961
+ this.sssTransmissionStrength = value.num[0];
962
+ },
963
+ isValid () {
964
+ return this.SSS;
965
+ }
966
+ },
967
+ {
968
+ name: 'SSSTransmissionPower',
969
+ type: 'float',
970
+ phase: 0,
971
+ default: 2.1,
972
+ options: {
973
+ label: 'TransmissionPower',
974
+ group: 'PostProcessing/SSS',
975
+ minValue: 0.1,
976
+ maxValue: 8
977
+ },
978
+ get (value) {
979
+ value.num[0] = this.sssTransmissionPower;
980
+ },
981
+ set (value) {
982
+ this.sssTransmissionPower = value.num[0];
983
+ },
984
+ isValid () {
985
+ return this.SSS;
986
+ }
987
+ },
988
+ {
989
+ name: 'SSSMultiScatter',
990
+ type: 'float',
991
+ phase: 0,
992
+ default: 0.08,
993
+ options: {
994
+ label: 'MultiScatter',
995
+ group: 'PostProcessing/SSS',
996
+ minValue: 0,
997
+ maxValue: 2
998
+ },
999
+ get (value) {
1000
+ value.num[0] = this.sssMultiScatter;
1001
+ },
1002
+ set (value) {
1003
+ this.sssMultiScatter = value.num[0];
1004
+ },
1005
+ isValid () {
1006
+ return this.SSS;
1007
+ }
1008
+ },
1009
+ {
1010
+ name: 'SSSDebugView',
1011
+ type: 'string',
1012
+ phase: 0,
1013
+ default: 'none',
1014
+ options: {
1015
+ label: 'DebugView',
1016
+ group: 'PostProcessing/SSS',
1017
+ enum: {
1018
+ labels: [
1019
+ 'None',
1020
+ 'ScatterMask',
1021
+ 'ScatterSoftness',
1022
+ 'ScatterRadius',
1023
+ 'ScatterFalloff',
1024
+ 'ProfileEnergy',
1025
+ 'ProfileTransmission',
1026
+ 'ProfileBoundary',
1027
+ 'Diffuse',
1028
+ 'Blur',
1029
+ 'ScreenThinness',
1030
+ 'ThinTransmissionMask',
1031
+ 'ThinLighting',
1032
+ 'TransmissionShadow'
1033
+ ],
1034
+ values: [
1035
+ 'none',
1036
+ 'scatter_mask',
1037
+ 'scatter_softness',
1038
+ 'scatter_radius',
1039
+ 'scatter_falloff',
1040
+ 'profile_energy',
1041
+ 'profile_transmission',
1042
+ 'profile_boundary',
1043
+ 'diffuse',
1044
+ 'blur',
1045
+ 'screen_thinness',
1046
+ 'thin_transmission_mask',
1047
+ 'thin_lighting',
1048
+ 'transmission_shadow'
1049
+ ]
1050
+ }
1051
+ },
1052
+ get (value) {
1053
+ value.str[0] = this.sssDebugView;
1054
+ },
1055
+ set (value) {
1056
+ this.sssDebugView = value.str[0];
1057
+ },
1058
+ isValid () {
1059
+ return this.SSS;
1060
+ }
1061
+ },
852
1062
  {
853
1063
  name: 'SSAOEnabled',
854
- description: 'If true, SAO post-processing will be enabled',
855
1064
  type: 'bool',
856
1065
  phase: 0,
857
1066
  default: false,
@@ -868,7 +1077,6 @@ import '../../../scene/raycast_visitor.js';
868
1077
  },
869
1078
  {
870
1079
  name: 'SSAOScale',
871
- description: 'Scale value for SAO post-processing',
872
1080
  type: 'float',
873
1081
  phase: 0,
874
1082
  default: 10,
@@ -885,7 +1093,6 @@ import '../../../scene/raycast_visitor.js';
885
1093
  },
886
1094
  {
887
1095
  name: 'SSAOBias',
888
- description: 'Bias value for SAO post-processing',
889
1096
  type: 'float',
890
1097
  phase: 0,
891
1098
  default: 1,
@@ -902,7 +1109,6 @@ import '../../../scene/raycast_visitor.js';
902
1109
  },
903
1110
  {
904
1111
  name: 'SSAORadius',
905
- description: 'Radius value for SAO post-processing',
906
1112
  type: 'float',
907
1113
  phase: 0,
908
1114
  default: 100,
@@ -919,7 +1125,6 @@ import '../../../scene/raycast_visitor.js';
919
1125
  },
920
1126
  {
921
1127
  name: 'SSAOIntensity',
922
- description: 'Intensity value for SAO post-processing',
923
1128
  type: 'float',
924
1129
  phase: 0,
925
1130
  default: 2.5,
@@ -954,7 +1159,6 @@ import '../../../scene/raycast_visitor.js';
954
1159
  return defineProps([
955
1160
  {
956
1161
  name: 'FovVertical',
957
- description: 'Vertical FOV in radians',
958
1162
  type: 'float',
959
1163
  default: Math.PI / 3,
960
1164
  options: {
@@ -970,7 +1174,6 @@ import '../../../scene/raycast_visitor.js';
970
1174
  },
971
1175
  {
972
1176
  name: 'Near',
973
- description: 'Near clip plane',
974
1177
  type: 'float',
975
1178
  default: 1,
976
1179
  get (value) {
@@ -982,7 +1185,6 @@ import '../../../scene/raycast_visitor.js';
982
1185
  },
983
1186
  {
984
1187
  name: 'Far',
985
- description: 'Far clip plane',
986
1188
  type: 'float',
987
1189
  default: 1000,
988
1190
  get (value) {
@@ -994,7 +1196,6 @@ import '../../../scene/raycast_visitor.js';
994
1196
  },
995
1197
  {
996
1198
  name: 'AutoAspect',
997
- description: 'If true, automatically determine aspect ratio',
998
1199
  type: 'bool',
999
1200
  default: true,
1000
1201
  get (value) {
@@ -1024,7 +1225,6 @@ import '../../../scene/raycast_visitor.js';
1024
1225
  return defineProps([
1025
1226
  {
1026
1227
  name: 'Left',
1027
- description: 'Left clip plane',
1028
1228
  type: 'float',
1029
1229
  default: -1,
1030
1230
  get (value) {
@@ -1036,7 +1236,6 @@ import '../../../scene/raycast_visitor.js';
1036
1236
  },
1037
1237
  {
1038
1238
  name: 'Right',
1039
- description: 'Right clip plane',
1040
1239
  type: 'float',
1041
1240
  default: 1,
1042
1241
  get (value) {
@@ -1048,7 +1247,6 @@ import '../../../scene/raycast_visitor.js';
1048
1247
  },
1049
1248
  {
1050
1249
  name: 'Bottom',
1051
- description: 'Bottom clip plane',
1052
1250
  type: 'float',
1053
1251
  default: -1,
1054
1252
  get (value) {
@@ -1060,7 +1258,6 @@ import '../../../scene/raycast_visitor.js';
1060
1258
  },
1061
1259
  {
1062
1260
  name: 'Top',
1063
- description: 'Top clip plane',
1064
1261
  type: 'float',
1065
1262
  default: 1,
1066
1263
  get (value) {
@@ -1072,7 +1269,6 @@ import '../../../scene/raycast_visitor.js';
1072
1269
  },
1073
1270
  {
1074
1271
  name: 'Near',
1075
- description: 'Near clip plane',
1076
1272
  type: 'float',
1077
1273
  default: -1,
1078
1274
  get (value) {
@@ -1084,7 +1280,6 @@ import '../../../scene/raycast_visitor.js';
1084
1280
  },
1085
1281
  {
1086
1282
  name: 'Far',
1087
- description: 'Far clip plane',
1088
1283
  type: 'float',
1089
1284
  default: 1,
1090
1285
  get (value) {