Commit Graph

4751 Commits

Author SHA1 Message Date
bjorn 3c87c81d8a Update lua-https; 2023-06-25 19:36:37 -07:00
bjorn 6a915a2993 Fix issue with mesh-multiple-skin check; 2023-06-25 19:16:34 -07:00
bjorn 32a6d4e807 Switch to lua-https fork;
Disables SChannel backend, maybe fixes Makefile generator on macOS.
2023-06-25 19:09:56 -07:00
bjorn 98729912a8 Add GL_EXT_samplerless_texture_functions; 2023-06-24 14:00:22 -07:00
bjorn 116d14cdf8 Details; 2023-06-24 11:26:09 -07:00
bjorn ad5d00fb2f Bugfixes; 2023-06-23 22:56:33 -07:00
bjorn 3ed3a1b2f9 Store align on stack instead of in field; 2023-06-23 21:35:39 -07:00
bjorn 68878f9197 Rename/refactor more Buffer stuff;
BufferField -> DataField
fields -> format
decontaminate buffer constructor
2023-06-23 21:14:19 -07:00
bjorn 0ff633fa56 mv FieldType DataType; 2023-06-23 19:11:30 -07:00
bjorn 3804d15184 rm Pass:setVertexFormat and table variant of Pass:mesh;
The complexity/convenience tradeoff isn't satisfactory.
2023-06-23 19:05:42 -07:00
bjorn d17232bac5 Fix warning; 2023-06-23 18:28:17 -07:00
bjorn a511064987 Collider:isDestroyed; 2023-06-22 15:48:23 -07:00
Bjorn 9c56c41b03
Merge pull request #676 from jmiskovic/add/vec3_from_quat
Initialize vec3 from quat
2023-06-22 15:48:11 -07:00
Josip Miskovic 3bd4c6c4f0 Initialize vec3 from quat 2023-06-22 19:14:19 +02:00
bjorn b9e14a8f2d Merge branch 'master' into dev 2023-06-21 16:52:10 -07:00
bjorn 06811dcb1a Fix lovr.graphics.newModel when model has unused meshes;
Prefer n^2 loop over a weird sentinel value that wasn't always getting written over.
2023-06-21 16:50:24 -07:00
bjorn b086b3d236 Fix issue where models sometimes wouldn't reanimate;
If the very first graphics-related thing done in a frame is drawing a
model, the reanimation logic would skip because a new frame hasn't
started yet.  lovrModelAnimateVertices needs to unconditionally start a
new frame.  (Previously, a new frame was guaranteed to be started
because all passes were temporary, but this is no longer the case).
2023-06-20 21:46:04 -07:00
bjorn 065fc7b1d5 Rename variable to avoid shadowing; 2023-06-20 21:45:58 -07:00
bjorn 97cc7d9137 Fix issue with blend shape compute shader;
It was only copying the raw vertex data for the first blend shape,
not the first blend shape in each group.
2023-06-20 21:42:44 -07:00
bjorn 5fb5a4a00d Android skips copying static plugin libraries to APK; 2023-06-17 17:33:51 -07:00
bjorn 4ec065757d Optimize blendshapes;
To initialize the vertices to their default state, it's way faster to
use a branch in the compute shader rather than using a copy.
2023-06-17 17:14:00 -07:00
Bjorn 639a9d4aca
Merge pull request #674 from jmiskovic/add/mousewheel
Add mousewheel callback
2023-06-17 12:49:26 -07:00
Josip Miskovic f0d916787a Add wheelmoved callback 2023-06-17 12:42:18 +02:00
bjorn 8b1b262760 lovr.visible; lovr.headset.isVisible; 2023-06-13 21:06:05 -07:00
bjorn d36b2d334e Put back stencil validation checks; 2023-06-12 23:07:35 -07:00
bjorn 0b36eaccce Switch to better quat_fromMat4 implementation; 2023-06-10 12:45:00 -07:00
bjorn 313fc953cc Pass:append;
Copies draws from one pass onto another one.  Experimental.
2023-06-09 21:34:39 -07:00
bjorn efb7edeb08 Pass:draw(Texture); 2023-06-09 20:15:22 -07:00
bjorn 0a255af337 Add materials flag to newModel; 2023-06-09 18:32:54 -07:00
bjorn 82340f5da1 Mesh mode defaults to triangles;
Not sure where this went.
2023-06-06 22:39:22 -07:00
bjorn c9576bc98c Fix automaterial refcounting;
A little weird, but workable for now.
2023-06-05 19:54:44 -07:00
bjorn b57d7c2488 Per-draw cameras; Reset pass when canvas changes; 2023-06-05 19:45:20 -07:00
bjorn f17e2c790e Ensure draw index buffer is always set properly; 2023-06-05 00:01:52 -07:00
bjorn aa12263a29 Fix 24-bit WAV import; 2023-06-03 22:55:40 -07:00
bjorn 6ef16afee3 Tally fixup;
- rm Pass:getTallyCount.  It's unclear if this reports the current tally
  count, or the number of tallies in the last submit.  lovr was even
  getting this confused internally (fixed).
- rm tally index argument from Pass:beginTally and Pass:finishTally.
  The tally index is now an autoincremented value managed internally,
  and both :beginTally/:finishTally return it.  If someone wants to use
  their own indices, a lookup table can be used to do the mapping.
2023-05-31 18:56:09 -07:00
bjorn 4100be4f23 Fix vertex color import when model stores it as VEC3; 2023-05-27 12:04:35 -07:00
bjorn 281329b52f actions: linux installs curl; 2023-05-26 20:12:20 -07:00
bjorn 088845e556 Actions: recursively checkout submodules; 2023-05-26 20:10:42 -07:00
bjorn f0a5539d7e Add lua-enet and lua-https as core plugins; 2023-05-26 19:58:40 -07:00
bjorn 5b4ce18901 Recursive plugin targets;
Previously the auto-target detection for plugins would only work for
targets added in the top level CMakeLists file.  Now lovr will
recursively check all the subdirectories of the plugin's CMake project
for targets with shared libraries.

Also use a more clean way of auto-linking plugin targets with Lua.  This
shouldn't require any changes in plugins.
2023-05-26 19:45:10 -07:00
bjorn d003c4969d Merge branch 'master' into dev 2023-05-26 17:19:07 -07:00
bjorn 0b544209fb Fix luax_newmesh even more; 2023-05-26 17:18:38 -07:00
bjorn 6f85ea81b9 Merge branch 'master' into dev 2023-05-26 17:12:09 -07:00
bjorn 8e0ceec3a0 Fix luax_readmesh error message; 2023-05-26 17:11:45 -07:00
bjorn bd96b6afba Re-enable headless support on Android;
monado bug has since been fixed.
2023-05-26 17:04:18 -07:00
bjorn 9092545e9a Add bindings for Magic Leap 2 controller;
Notably, shoulder button is mapped to grip for now.
2023-05-26 17:03:11 -07:00
bjorn ce34bf702a Put back absindex in luax_checkstruct;
I thought it was for error messages, it's for correctness.
2023-05-26 16:47:58 -07:00
bjorn 4f29e3992c Don't bind pico4 actions if extension is unsupported; 2023-05-26 16:44:14 -07:00
Bjorn a7a4ea14fa
Merge pull request #670 from DuinoDu/dev
Add Pico4 support.
2023-05-18 08:23:27 -07:00
duinodu 773c021d2d Add Pico4 support. 2023-05-18 15:27:18 +08:00