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/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.1
79
+ public bloomIntensity: number = 0.12
80
80
  // Rim light settings
81
- private rimLightIntensity: number = 0.35
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(0.96)
1360
- this.addLight(new Vec3(-0.5, -0.8, 0.5).normalize(), new Vec3(1.0, 0.95, 0.9), 0.12)
1361
- this.addLight(new Vec3(0.7, -0.5, 0.3).normalize(), new Vec3(0.8, 0.85, 1.0), 0.1)
1362
- this.addLight(new Vec3(0.3, -0.5, -1.0).normalize(), new Vec3(0.9, 0.9, 1.0), 0.08)
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