ugly-game 0.15.48 → 0.15.49

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.
@@ -196,8 +196,11 @@ fn studioEnv(r: vec3<f32>, rough: f32) -> vec3<f32> {
196
196
  var c = mix(vec3(0.12, 0.11, 0.09), vec3(0.58, 0.68, 0.80), horizon);
197
197
  let width = 0.015 + rough * rough * 0.28;
198
198
  let top = smoothstep(0.68 - width, 0.68 + width, r.y);
199
- let stripA = exp(-pow((r.x - 0.48) / (0.07 + width), 2.0)) * smoothstep(-0.1, 0.3, r.y);
200
- let stripB = exp(-pow((r.z + 0.38) / (0.045 + width), 2.0)) * smoothstep(0.0, 0.3, r.y);
199
+ // Tall softboxes extend below the horizon: eye-level vertical panels reflect
200
+ // directions below the camera, so overhead-only lights cannot reveal their gloss.
201
+ let panelHeight = smoothstep(-0.8, -0.55, r.y) * (1.0-smoothstep(0.65, 0.95, r.y));
202
+ let stripA = exp(-pow((r.x - 0.48) / (0.12 + width), 2.0)) * panelHeight;
203
+ let stripB = exp(-pow((r.z + 0.38) / (0.09 + width), 2.0)) * panelHeight;
201
204
  c += vec3(1.6, 1.5, 1.35) * top * 0.55;
202
205
  c += vec3(2.5, 2.35, 2.1) * (stripA + stripB) * (1.0 - rough * 0.7);
203
206
  return c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugly-game",
3
- "version": "0.15.48",
3
+ "version": "0.15.49",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {