bjorn
1145085446
macOS fixes;
2021-02-22 17:07:28 -07:00
bjorn
fb1447503b
Fix gcc warnings;
2021-02-19 23:44:23 -07:00
bjorn
5d5c79b5b1
Upgrade OpenVR;
2021-02-19 23:44:23 -07:00
bjorn
ef438d48b3
Upgrade stb_vorbis;
2021-02-19 23:44:23 -07:00
mcc
ffa63e9912
Allow the creation of a (potentially infinite-length) Sound created by a dynamically run callback
2021-02-19 21:30:16 -07:00
bjorn
57a215a0aa
Minor MeshShape cleanup;
...
- Fix memory leak
- Minor error message improvements
2021-02-19 17:28:04 -07:00
bjorn
880d06a1d1
Only enable compute extensions on desktop GL;
2021-02-19 14:09:40 -07:00
bjorn
1757d30a59
Compute shader feature detection adjustment;
...
- Compute feature requires compute shaders, image load/store, and SSBOs.
- GLSL 330 is always used, instead of changing depending on compute shader extension.
- Explicitly enable compute shaders, image load/store, and SSBO extensions when needed.
This allows implementations that don't support GLSL 430 to run compute shaders,
and keeps the min supported GL version more consistently at GL3.3.
2021-02-19 14:07:27 -07:00
bjorn
a0b2200bef
Fix lovr.graphics.getBlendMode when blending is off;
2021-02-19 14:05:18 -07:00
bjorn
26d009aada
Fix sample conversion when only channel count conversion is required;
2021-02-19 12:35:52 -07:00
bjorn
9c1af7427f
Fix restart cookie on wasm;
2021-02-19 09:06:16 -07:00
bjorn
a2b7e1619d
Fix wasm compilation issues;
2021-02-19 09:05:57 -07:00
bjorn
0365f51f9d
Fix crash when drawing zero lines;
2021-02-19 08:38:45 -07:00
bjorn
7ef215c312
simulator: fix aspect ratio;
2021-02-19 08:30:57 -07:00
bjorn
6c74a61ae3
simulator: Fix getDisplayDimensions;
...
getDisplayDimensions is supposed to return the dimensions of one eye.
2021-02-19 08:29:38 -07:00
bjorn
36170678f0
Sound: Change channel count to channel layout;
2021-02-18 21:17:25 -07:00
bjorn
08916df2f1
Tell spatializers about sources only when they're active;
...
apply will still only be called with sources after they have been created.
2021-02-18 20:49:20 -07:00
bjorn
952fee3bd1
Rework audio converters;
...
They are stored by value in the array so they are contiguous.
Source stores the index of its converter to save a bit of space and avoid realloc.
2021-02-17 22:47:50 -07:00
bjorn
7b7f6bbaeb
Simplify FOREACH_SOURCE;
2021-02-17 22:36:24 -07:00
bjorn
cb8a1e8962
Free playing Sources properly;
2021-02-17 22:31:03 -07:00
bjorn
e9069335bb
tup: Fix CONFIG_ANDROID_ASSETS;
2021-02-17 22:08:09 -07:00
bjorn
75fda2336f
Enforce strict limit of 64 active sources;
...
If 64 sources are playing and a new one is started, Source:play will
return false.
Instead of a linked list, a static list of 64 Sources is used.
Bit scanning intrinsics are used to efficiently iterate the list,
using a mask (still deciding on this).
2021-02-17 20:46:33 -07:00
bjorn
4580107023
Update ODE with macOS fix;
2021-02-17 11:24:59 -07:00
bjorn
ea64f32c1f
Source:clone;
2021-02-16 21:34:53 -07:00
bjorn
8cc96847a8
Fix sign warnings;
2021-02-16 21:02:12 -07:00
mcc
a3c76a95ab
Two additional arguments to shaderBlock:send(): an offset and a size. If present, only part of the shaderBlock will be sent.
2021-02-16 17:26:18 -07:00
bjorn
72284c2c5b
Merge branch 'master' into dev
2021-02-12 08:16:36 -07:00
bjorn
023067ec27
util.h no longer uses atomics;
2021-02-11 16:37:55 -07:00
bjorn
b21fd987ca
CMake: change msdfgen binary dir; tup: fix msdfgen path;
2021-02-11 16:19:35 -07:00
mcc
126ff0d8ba
Fix build when LOVR_ENABLE_AUDIO is off
...
(Build miniaudio if LOVR_ENABLE_DATA is on)
2021-02-11 15:58:37 -07:00
bjorn
28e88d7598
Reorganize spatializer files/CMake; Oculus Audio tup support;
2021-02-10 12:41:15 -07:00
bjorn
6eb6ab221f
CMake: Fix msdfgen target name;
2021-02-10 16:52:15 -07:00
bjorn
5ae5acfb18
Make Font texture rgba16f;
...
Sampling from rg11b10f does not appear to work on mobile.
2021-02-10 15:22:30 -07:00
bjorn
0919da4091
Improve MSDF font shader; Add spread/padding settings to Font;
2021-02-10 07:08:29 -07:00
bjorn
7b136b914c
Update msdfgen;
...
- Rasterizer (maybe temporarily) uses 32 bit float textures.
2021-02-10 04:03:43 -07:00
bjorn
e630cabdac
CMake: Fix weird linux opengl warning;
2021-02-10 04:03:18 -07:00
bjorn
f8ed6c3a34
physics: Use dReal in more places;
...
This makes it easier to swap between float/double.
2021-02-09 23:24:27 -07:00
bjorn
4f8fd7856b
Fix minor Tuprules mistakes;
2021-02-09 23:00:33 -07:00
bjorn
51485f613c
Add the ability to override Android package id;
2021-02-09 21:19:29 -07:00
bjorn
b343f50f1c
mv l_data_textureData->l_data_image;
2021-02-09 21:14:09 -07:00
bjorn
e7adf62bfa
Fix Android tup build; Reorganize Tuprules;
2021-02-09 21:09:09 -07:00
bjorn
351d1ae200
Fix vrapi includes;
2021-02-09 20:03:53 -07:00
bjorn
3e41a0c322
Small Tupfile cleanup;
2021-02-09 09:11:14 -07:00
bjorn
50ee404b91
Default lovr.run no longer requires timer and event modules;
2021-02-09 08:27:11 -07:00
bjorn
7db979b655
Fix arr_free;
...
realloc(NULL, 0) isn't valid.
2021-02-09 08:15:43 -07:00
bjorn
9377406854
Fix font wrap issue with spaces;
...
If a space starts before the wrap limit, but ends after it, the next
word won't wrap properly even though it should.
2021-02-09 08:06:37 -07:00
bjorn
39c0fa6e99
Don't set audio listener pose automatically;
...
It isn't always correct once you add locomotion to a project, and
it actually becomes harmful because the pose ping-pongs between
the default pose and the user pose, causing distortion.
2021-02-09 07:52:12 -07:00
bjorn
84f65c26e4
Move utf8 back into util;
2021-02-08 20:55:51 -07:00
bjorn
907cf35dda
rm string.h from api.h;
2021-02-08 20:29:57 -07:00
bjorn
78ddcf7d6e
rm extra reference to AudioStream;
2021-02-08 20:24:21 -07:00