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/README.md +13 -12
- package/dist/rayzee.es.js +1 -3
- package/dist/rayzee.es.js.map +1 -1
- package/dist/rayzee.umd.js +1 -1
- package/dist/rayzee.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/TSL/PathTracerCore.js +0 -10
- package/src/TSL/Random.js +0 -1
- package/src/TSL/RayIntersection.js +0 -3
- package/src/managers/RenderTargetManager.js +0 -1
package/package.json
CHANGED
|
@@ -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
|
|