rayzee 5.10.2 → 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.
- package/README.md +82 -22
- package/dist/assets/AIUpscalerWorker-AXN-lKWN.js +2 -0
- package/dist/assets/AIUpscalerWorker-AXN-lKWN.js.map +1 -0
- package/dist/rayzee.es.js +1299 -1843
- package/dist/rayzee.es.js.map +1 -1
- package/dist/rayzee.umd.js +50 -74
- package/dist/rayzee.umd.js.map +1 -1
- package/package.json +1 -4
- package/src/AssetConfig.js +56 -0
- package/src/EngineDefaults.js +5 -3
- package/src/EngineEvents.js +1 -0
- package/src/Passes/AIUpscaler.js +44 -22
- package/src/Passes/OIDNDenoiser.js +4 -104
- package/src/PathTracerApp.js +59 -63
- package/src/Processor/AssetLoader.js +5 -2
- package/src/Processor/TextureCreator.js +42 -15
- package/src/Processor/Workers/AIUpscalerWorker.js +21 -6
- package/src/Stages/ASVGF.js +6 -27
- package/src/Stages/AdaptiveSampling.js +10 -26
- package/src/Stages/PathTracer.js +4 -5
- package/src/TSL/BVHTraversal.js +2 -18
- package/src/TSL/Clearcoat.js +1 -2
- package/src/TSL/Common.js +0 -13
- package/src/TSL/EmissiveSampling.js +0 -16
- package/src/TSL/Environment.js +0 -7
- package/src/TSL/LightsDirect.js +3 -379
- package/src/TSL/LightsSampling.js +0 -171
- package/src/TSL/MaterialEvaluation.js +3 -103
- package/src/TSL/MaterialProperties.js +1 -56
- package/src/TSL/MaterialSampling.js +2 -284
- package/src/TSL/MaterialTransmission.js +0 -93
- package/src/TSL/Random.js +0 -23
- package/src/TSL/Struct.js +0 -21
- package/src/TSL/TextureSampling.js +0 -69
- package/src/index.js +5 -2
- package/src/managers/DenoisingManager.js +13 -5
- package/src/managers/OverlayManager.js +14 -2
- package/src/managers/VideoRenderManager.js +4 -4
- package/dist/assets/AIUpscalerWorker-D58dcMrY.js +0 -2
- package/dist/assets/AIUpscalerWorker-D58dcMrY.js.map +0 -1
- package/src/Processor/createRenderTargetHelper.js +0 -521
- package/src/TSL/RayIntersection.js +0 -162
- 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
|
-
}
|