@triforge/pathtracer-core 0.1.1 → 0.1.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/dist/RenderManager.js +2 -2
- package/package.json +54 -44
package/dist/RenderManager.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PCFShadowMap, ACESFilmicToneMapping } from 'three';
|
|
2
2
|
import { PathTracerRenderer } from './PathTracerRenderer.js';
|
|
3
3
|
import { LightPathController } from './LightPathController.js';
|
|
4
4
|
/**
|
|
@@ -31,7 +31,7 @@ export class RenderManager {
|
|
|
31
31
|
this.lightPath = new LightPathController(renderer);
|
|
32
32
|
// Ensure renderer is set up for quality rasterization
|
|
33
33
|
renderer.shadowMap.enabled = true;
|
|
34
|
-
renderer.shadowMap.type =
|
|
34
|
+
renderer.shadowMap.type = PCFShadowMap;
|
|
35
35
|
renderer.toneMapping = ACESFilmicToneMapping;
|
|
36
36
|
renderer.toneMappingExposure = 1.0;
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,44 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@triforge/pathtracer-core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"package.json"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"dev": "tsc --watch",
|
|
15
|
-
"test": "node test/run-tests.js"
|
|
16
|
-
},
|
|
17
|
-
"author": "Aftab Ibrahim Kazi",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"three": ">=0.159.0",
|
|
21
|
-
"three-gpu-pathtracer": ">=0.0.24",
|
|
22
|
-
"three-mesh-bvh": ">=0.7.0"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/three": "^0.
|
|
26
|
-
"three": "^0.
|
|
27
|
-
"typescript": "^5.3.0"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://github.com/AftabIbrahimKazi/triforge.git",
|
|
32
|
-
"directory": "st-pathtracer-core"
|
|
33
|
-
},
|
|
34
|
-
"homepage": "https://github.com/AftabIbrahimKazi/triforge#readme",
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"access": "public"
|
|
37
|
-
},
|
|
38
|
-
"exports": {
|
|
39
|
-
".": {
|
|
40
|
-
"import": "./dist/index.js",
|
|
41
|
-
"types": "./dist/index.d.ts"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@triforge/pathtracer-core",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Raster-to-path-tracer toggle for Three.js — swap WebGLRenderer for a GPU path tracer at runtime, with multi-pass LightPath output (camera/diffuse/glossy/reflection)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"package.json"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"dev": "tsc --watch",
|
|
15
|
+
"test": "node test/run-tests.js"
|
|
16
|
+
},
|
|
17
|
+
"author": "Aftab Ibrahim Kazi",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"three": ">=0.159.0",
|
|
21
|
+
"three-gpu-pathtracer": ">=0.0.24",
|
|
22
|
+
"three-mesh-bvh": ">=0.7.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/three": "^0.186.0",
|
|
26
|
+
"three": "^0.186.0",
|
|
27
|
+
"typescript": "^5.3.0"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/AftabIbrahimKazi/triforge.git",
|
|
32
|
+
"directory": "st-pathtracer-core"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/AftabIbrahimKazi/triforge#readme",
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"types": "./dist/index.d.ts"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"threejs",
|
|
46
|
+
"three.js",
|
|
47
|
+
"webgl",
|
|
48
|
+
"path-tracing",
|
|
49
|
+
"raytracing",
|
|
50
|
+
"global-illumination",
|
|
51
|
+
"typescript",
|
|
52
|
+
"render-passes"
|
|
53
|
+
]
|
|
54
|
+
}
|