f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.54k stars 182 forks source link

F3D Web first render is incorretly lit #1506

Open mwestphal opened 2 days ago

mwestphal commented 2 days ago

Describe the bug F3D Web first render is incorretly lit

To Reproduce Steps to reproduce the behavior:

  1. got to https://f3d.app/web
  2. Load a file
  3. FIle is not correctly lit
  4. Move camera around
  5. Ligthing is corrected

https://github.com/f3d-app/f3d/assets/3129530/eed3abc3-c834-4f4b-bdee-49bcc4d73efa

Expected behavior Correct lighting right away

Additional context occlusion texture generation is not updated for some reason, related to SSOA, better to reproduce in python if possible to check if this is WASM specific