reze-engine 0.2.0 → 0.2.1
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 +104 -104
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +6 -6
- package/package.json +1 -1
- package/src/camera.ts +358 -358
- package/src/engine.ts +6 -6
- package/src/math.ts +546 -546
- package/src/model.ts +421 -421
- package/src/pmx-loader.ts +1054 -1054
- package/src/vmd-loader.ts +179 -179
package/src/engine.ts
CHANGED
|
@@ -76,9 +76,9 @@ export class Engine {
|
|
|
76
76
|
private bloomComposeBindGroup?: GPUBindGroup
|
|
77
77
|
// Bloom settings
|
|
78
78
|
public bloomThreshold: number = 0.3
|
|
79
|
-
public bloomIntensity: number = 0.
|
|
79
|
+
public bloomIntensity: number = 0.12
|
|
80
80
|
// Rim light settings
|
|
81
|
-
private rimLightIntensity: number = 0.
|
|
81
|
+
private rimLightIntensity: number = 0.45
|
|
82
82
|
private rimLightPower: number = 2.0
|
|
83
83
|
private rimLightColor: [number, number, number] = [1.0, 1.0, 1.0]
|
|
84
84
|
private currentModel: Model | null = null
|
|
@@ -1356,10 +1356,10 @@ export class Engine {
|
|
|
1356
1356
|
|
|
1357
1357
|
this.lightCount = 0
|
|
1358
1358
|
|
|
1359
|
-
this.setAmbient(
|
|
1360
|
-
this.addLight(new Vec3(-0.5, -0.8, 0.5).normalize(), new Vec3(1.0, 0.95, 0.9), 0.
|
|
1361
|
-
this.addLight(new Vec3(0.7, -0.5, 0.3).normalize(), new Vec3(0.8, 0.85, 1.0), 0.
|
|
1362
|
-
this.addLight(new Vec3(0.3, -0.5, -1.0).normalize(), new Vec3(0.9, 0.9, 1.0), 0.
|
|
1359
|
+
this.setAmbient(1)
|
|
1360
|
+
this.addLight(new Vec3(-0.5, -0.8, 0.5).normalize(), new Vec3(1.0, 0.95, 0.9), 0.02)
|
|
1361
|
+
this.addLight(new Vec3(0.7, -0.5, 0.3).normalize(), new Vec3(0.8, 0.85, 1.0), 0.015)
|
|
1362
|
+
this.addLight(new Vec3(0.3, -0.5, -1.0).normalize(), new Vec3(0.9, 0.9, 1.0), 0.01)
|
|
1363
1363
|
this.device.queue.writeBuffer(this.lightUniformBuffer, 0, this.lightData)
|
|
1364
1364
|
}
|
|
1365
1365
|
|