Commit graph

7 commits

Author SHA1 Message Date
2219f8c9ad Fix compiler warnings and hints. 2025-03-18 18:34:54 +01:00
a5c9bb3c70 Make Quat distinct, replace GameObject.rotation by a union (with quat and euler).
Replace `@` quat multiplication by `*` to avoid confusion.
2025-01-21 12:56:34 +01:00
6794b35978 Add a forgotten conditional in simple_shadow.nim 2024-09-21 02:27:10 +02:00
dca0123f13 Fix many issues related to shadows. 2024-09-21 02:09:22 +02:00
52a4c00ffe Fix shadows not compiling without myouDebugShadows. 2024-09-13 02:31:47 +02:00
c77187fa9f Revamp shadow map system into a working state. Fix related bugs.
* `light.configure_shadow` has been added. It can either use a camera frustum or
  calculate the bounds for a static shadow that doesn't need to be updated every
  frame.
* `Light` and `newLight` have `use_shadow`, however it's not used automatically
  at the moment. Instead you should call `configure_shadow`.
* Added `updateShadowStorage` which at the moment has to be called manually
  after using `configure_shadow`.
* All shadows now share a single texture array per scene, so they can be
  accessed by index in the shader and take less shader locations and draw calls.
* Shadow map resolution is also global per scene.
* Add `set_texture_shadow` and `unset_texture_shadow` to configure a texture as
  shadow sampler.
* Bias has been removed as an option, it's calculated automatically instead.
* Bias now moves along the normal of the mesh instead of towards the light,
  allowing very small biases.
2024-09-11 20:49:00 +02:00
9af1322937 First commit.
* Incomplete port of myou-engine-js to nimskull, after many months of work, and
  a few extra features that weren't exactly necessary for a "first commit" to
  work. Excuse the lack of commit history up to this point.
* Bare bones structure of the documentation and the process to update it.
* Restructure of the whole project to have a more sensible organization.
* Making submodules of forks of larger libraries.
* README, licenses, AUTHORS.md.
2024-08-20 13:08:19 +02:00