rayzee 5.11.0 → 6.0.0

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 (41) hide show
  1. package/README.md +81 -24
  2. package/dist/assets/AIUpscalerWorker-AXN-lKWN.js +2 -0
  3. package/dist/assets/AIUpscalerWorker-AXN-lKWN.js.map +1 -0
  4. package/dist/rayzee.es.js +1233 -1803
  5. package/dist/rayzee.es.js.map +1 -1
  6. package/dist/rayzee.umd.js +50 -74
  7. package/dist/rayzee.umd.js.map +1 -1
  8. package/package.json +1 -4
  9. package/src/AssetConfig.js +56 -0
  10. package/src/EngineDefaults.js +5 -3
  11. package/src/EngineEvents.js +1 -0
  12. package/src/Passes/AIUpscaler.js +44 -22
  13. package/src/Passes/OIDNDenoiser.js +4 -104
  14. package/src/PathTracerApp.js +54 -65
  15. package/src/Processor/AssetLoader.js +5 -2
  16. package/src/Processor/Workers/AIUpscalerWorker.js +21 -6
  17. package/src/Stages/ASVGF.js +6 -27
  18. package/src/Stages/AdaptiveSampling.js +10 -26
  19. package/src/Stages/PathTracer.js +4 -5
  20. package/src/TSL/BVHTraversal.js +2 -18
  21. package/src/TSL/Clearcoat.js +1 -2
  22. package/src/TSL/Common.js +0 -13
  23. package/src/TSL/EmissiveSampling.js +0 -16
  24. package/src/TSL/Environment.js +0 -7
  25. package/src/TSL/LightsDirect.js +3 -379
  26. package/src/TSL/LightsSampling.js +0 -171
  27. package/src/TSL/MaterialEvaluation.js +3 -103
  28. package/src/TSL/MaterialProperties.js +1 -56
  29. package/src/TSL/MaterialSampling.js +2 -284
  30. package/src/TSL/MaterialTransmission.js +0 -93
  31. package/src/TSL/Random.js +0 -23
  32. package/src/TSL/Struct.js +0 -21
  33. package/src/TSL/TextureSampling.js +0 -69
  34. package/src/index.js +5 -2
  35. package/src/managers/DenoisingManager.js +13 -5
  36. package/src/managers/VideoRenderManager.js +4 -4
  37. package/dist/assets/AIUpscalerWorker-D58dcMrY.js +0 -2
  38. package/dist/assets/AIUpscalerWorker-D58dcMrY.js.map +0 -1
  39. package/src/Processor/createRenderTargetHelper.js +0 -521
  40. package/src/TSL/RayIntersection.js +0 -162
  41. package/src/managers/helpers/StatsHelper.js +0 -45
@@ -1,45 +0,0 @@
1
- import Stats from 'stats-gl';
2
-
3
- /**
4
- * Creates and configures a stats-gl performance panel.
5
- *
6
- * @param {import('three/webgpu').WebGPURenderer} renderer
7
- * @param {HTMLElement} [container=document.body] - DOM element to mount the stats panel
8
- * @returns {Stats}
9
- */
10
- export function createStats( renderer, container ) {
11
-
12
- const stats = new Stats( { horizontal: true, trackGPU: true } );
13
- stats.dom.style.position = 'absolute';
14
- stats.dom.style.top = 'unset';
15
- stats.dom.style.bottom = '48px';
16
-
17
- stats.init( renderer );
18
- ( container || document.body ).appendChild( stats.dom );
19
-
20
- const foregroundColor = '#ffffff';
21
- const backgroundColor = '#1e293b';
22
-
23
- const gradient = stats.fpsPanel.context.createLinearGradient(
24
- 0, stats.fpsPanel.GRAPH_Y,
25
- 0, stats.fpsPanel.GRAPH_Y + stats.fpsPanel.GRAPH_HEIGHT
26
- );
27
- gradient.addColorStop( 0, foregroundColor );
28
-
29
- stats.fpsPanel.fg = stats.msPanel.fg = foregroundColor;
30
- stats.fpsPanel.bg = stats.msPanel.bg = backgroundColor;
31
- stats.fpsPanel.gradient = stats.msPanel.gradient = gradient;
32
-
33
- if ( stats.gpuPanel ) {
34
-
35
- stats.gpuPanel.fg = foregroundColor;
36
- stats.gpuPanel.bg = backgroundColor;
37
- stats.gpuPanel.gradient = gradient;
38
-
39
- }
40
-
41
- stats.dom.style.display = '';
42
-
43
- return stats;
44
-
45
- }