rayzee 5.0.1 → 5.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayzee",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -22,12 +22,9 @@ import {
22
22
  vec3,
23
23
  vec4,
24
24
  int,
25
- uint,
26
25
  bool as tslBool,
27
26
  max,
28
27
  min,
29
- abs,
30
- sqrt,
31
28
  exp,
32
29
  clamp,
33
30
  mix,
@@ -47,15 +44,12 @@ import {
47
44
  import { struct } from './structProxy.js';
48
45
 
49
46
  import {
50
- PI,
51
47
  PI_INV,
52
- EPSILON,
53
48
  MIN_ROUGHNESS,
54
49
  MAX_ROUGHNESS,
55
50
  MIN_CLEARCOAT_ROUGHNESS,
56
51
  MIN_PDF,
57
52
  maxComponent,
58
- minComponent,
59
53
  classifyMaterial,
60
54
  constructTBN,
61
55
  calculateFireflyThreshold,
@@ -66,8 +60,6 @@ import {
66
60
  import {
67
61
  DirectionSample,
68
62
  MaterialClassification,
69
- PathState,
70
- RenderState,
71
63
  MaterialCache,
72
64
  BRDFWeights,
73
65
  Ray,
@@ -83,7 +75,6 @@ import { sampleAllMaterialTextures } from './TextureSampling.js';
83
75
  import { refineDisplacedIntersection, DisplacementResult } from './Displacement.js';
84
76
  import { handleMaterialTransparency, MaterialInteractionResult, sampleMicrofacetTransmission, MicrofacetTransmissionResult } from './MaterialTransmission.js';
85
77
  import {
86
- DistributionGGX,
87
78
  SheenDistribution,
88
79
  calculateVNDFPDF,
89
80
  calculateBRDFWeights,
@@ -115,7 +106,6 @@ const RAY_TYPE_CAMERA = 0;
115
106
  const RAY_TYPE_REFLECTION = 1;
116
107
  const RAY_TYPE_TRANSMISSION = 2;
117
108
  const RAY_TYPE_DIFFUSE = 3;
118
- const RAY_TYPE_SHADOW = 4;
119
109
 
120
110
  // Trace result struct
121
111
  export const TraceResult = struct( {
package/src/TSL/Random.js CHANGED
@@ -24,7 +24,6 @@ const blueNoiseTextureSize = vec2( textureSize( blueNoiseTextureNode ) );
24
24
 
25
25
  // Golden ratio constants for dimension decorrelation
26
26
 
27
- const PHI = float( 1.61803398875 );
28
27
  const INV_PHI = float( 0.61803398875 );
29
28
  const INV_PHI2 = float( 0.38196601125 );
30
29
 
@@ -1,10 +1,7 @@
1
1
  import { Fn, float, vec2, vec3, int, If, dot, cross, abs, normalize, sqrt, min, max, select } from 'three/tsl';
2
2
 
3
3
  import {
4
- Ray,
5
4
  HitInfo,
6
- Triangle,
7
- Sphere,
8
5
  } from './Struct.js';
9
6
 
10
7
  // Optimized Intersection with Geometry only (no attributes)
@@ -9,7 +9,6 @@ import {
9
9
  NearestFilter,
10
10
  LinearSRGBColorSpace,
11
11
  ShaderMaterial,
12
- Vector2,
13
12
  GLSL3
14
13
  } from 'three';
15
14
  import { FullScreenQuad } from 'three/addons/postprocessing/Pass.js';