bjorn
a2b12c9e7c
Vertex tangents don't require normalMap flag anymore;
2023-03-31 19:23:20 -07:00
bjorn
ff10461e69
Reduce blend shape chunk size from 128 to 64;
2023-03-31 18:45:16 -07:00
bjorn
f56b48b3a7
Blend shapes and skinning work at the same time;
2023-03-31 18:45:16 -07:00
bjorn
4a6de6caf5
Write blend shape compute shader; Bugfixes;
2023-03-31 18:45:16 -07:00
bjorn
530db8c7f8
WIP blend shape compute dispatch;
2023-03-31 18:45:16 -07:00
bjorn
6de1c624b4
Scope shader macros by the stage they're valid in;
...
Leads to better error messages if you try to use e.g. DefaultPosition in
a fragment shader.
2023-03-02 19:03:15 -08:00
bjorn
abbc6a6dc6
Merge branch 'master' into dev
2023-02-21 21:12:33 -08:00
Bjorn
d1eaa43997
Merge pull request #641 from brainrom/pkgrename
...
Android package rename via CMake
2023-02-05 21:57:25 -08:00
bjorn
89edccbf4c
Add lovr.headset.isPassthroughEnabled and lovr.headset.setPassthroughEnabled;
2023-02-05 19:51:12 -08:00
bjorn
7027defe3c
rm attachmentCount shader flag;
...
It doesn't work as intended (due to glslang issues?). The current way
to write a shader that uses multiple attachments is to declare multiple
output variables, which is a little better because you can name them
however you want and customize the type.
It would be nice to be able to support a "void" entrypoint for multiple
attachments so you don't need to awkwardly return the first target's
color, but I can't find a way around this right now.
2023-02-05 16:04:17 -08:00
bjorn
bf31072d0d
Cleanup;
2023-01-30 19:44:23 -08:00
Ilya Chelyadin
d84d358de7
Minor fixes
2023-01-31 06:03:53 +03:00
kokokoshka
85b6e36020
Android package rename via CMake
2023-01-30 20:35:49 +03:00
Ilya Chelyadin
ac012d39c2
Universal APK for Oculus, Pico and Generic loaders
2023-01-05 01:50:38 +03:00
Ilya
f3837d99fd
Merge branch 'bjornbytes:master' into picofix
2023-01-04 23:03:54 +03:00
bjorn
b6d8546a6f
Merge branch 'master' into dev
2023-01-02 16:46:55 -08:00
bjorn
fe353ea243
Fix default lovr.log printing gsub result;
2022-12-30 21:40:27 -08:00
bjorn
d438578c42
CMake: Windows includes lovrc.bat in builds;
...
Also made a nifty helper function to move resources to the build folder,
in an effort to avoid writing duplicate versions of these functions for
each platform.
2022-12-30 21:20:27 -08:00
bjorn
c81a356799
Compress monkey more;
...
Its face is smooth now, which looks better, is somewhat better for
testing, and saves 8kb.
2022-12-29 20:33:49 -08:00
bjorn
dc93920816
Fix monkeycrush index;
...
There was a bugfix that makes model vertex indices 1-based.
2022-12-29 20:33:49 -08:00
Ilya Chelyadin
f62c99e469
Fix typos, indentation, minor issues
2022-12-08 07:05:30 +03:00
Ilya
bd767092f3
Merge branch 'bjornbytes:master' into picofix
2022-12-07 19:50:13 +03:00
Bjorn
78a70670bb
Merge branch 'dev' into MSFT_controller_model
2022-12-03 19:34:49 -08:00
bjorn
a615351f66
Actions; Sponsors; README;
2022-12-02 18:14:31 -08:00
Ilya
92c136bc73
Merge branch 'bjornbytes:master' into picofix
2022-12-01 21:20:33 +03:00
bjorn
f9d7742dfd
Add support for headless headset rendering;
...
Although the name is unfortunate, this allows access to lovr.headset
when no window is opened or when the graphics module is disabled. This
requires the XR_MND_headless extension to be supported by the runtime.
2022-11-26 14:40:39 -08:00
Ilya Chelyadin
3f20364c3f
Pico is back!
...
Tested on Pico Neo 3 with PUI v4.9.3
Also included generic (Monado-Android) Android flavor.
2022-11-22 22:01:13 +03:00
s-ol
043f9c7920
store headset model metadata for animations
2022-11-22 12:24:57 +01:00
bjorn
9783140725
Fix window resize;
2022-11-09 19:05:01 -08:00
bjorn
b81f86b5ad
rm Android flavors for now;
...
There used to be oculus and pico but pico doesn't work anymore.
Eventually things will converge on the standard loader and we won't
need different loaders, but manifests may require flavors.
2022-11-09 00:21:49 -08:00
bjorn
36e1471cf0
lovr.graphics.isInitialized;
...
Returns whether the graphics module is initialized. Used by the default
error handler to know if it's safe to try to render the error screen.
2022-11-07 19:12:11 -08:00
bjorn
5e2b44ad08
Fix stereo mirror window;
...
For some reason this was rendering both layers of a multi-layer
texture all squished. I think it was supposed to just render the
first layer.
2022-11-07 17:14:27 -08:00
bjorn
904fb282c2
v0.16.0;
2022-10-15 21:49:25 -07:00
bjorn
ee3cc30851
Animator renormalizes quantized weights;
...
It would be nice to do this in the importer, but it was 50+ lines and
was really tricky to write without reading from uncached GPU-mapped
memory. Instead, it's 1 line here.
I hope zero-weight vertices aren't a thing?
2022-10-03 01:29:01 -07:00
bjorn
cd04060467
Use correct roughness for indirect specular lighting;
2022-09-23 23:58:47 -07:00
bjorn
d905b649a4
Lighting helper fixes;
2022-09-23 23:44:31 -07:00
bjorn
ef407fd564
Add var shader helper;
...
Now you can write var(0) instead of layout(set = 2, binding = 0).
The advantage is less typing and resilience in the event that the
default set changes.
The disadvantage is that now you can't use var.
2022-09-22 20:44:06 -07:00
bjorn
952bff414a
Add more oculus manifest permissions;
...
- Keyboard tracking
- Render model
- Passthrough
2022-09-21 14:58:30 -07:00
bjorn
72334cc1f2
Fix cubemaps being horizontally flipped;
2022-09-20 22:17:58 -07:00
bjorn
28869431fb
Fix stereo mirror window;
2022-09-15 20:45:26 -07:00
bjorn
1dd737d8a4
Make the logo a default shader;
...
Improves build system, improves filesize, seemingly improves startup time
2022-09-13 17:36:10 -07:00
bjorn
d8c6c47e00
Add normal DefaultShader;
...
It's a pretty normal shader.
2022-09-10 11:07:55 -07:00
bjorn
5c4fc79242
mv lovr.graphics.init lovr.graphics.initialize;
...
init is undocumentable due to Lua conventions.
2022-09-10 10:22:52 -07:00
bjorn
688c698808
Enable hand tracking 2.0 in AndroidManifest.xml;
2022-09-02 18:53:31 -07:00
bjorn
8697466009
Shader flag adjustments;
...
- glowTexture is on by default, but still requires the glow flag.
- occlusionTexture is named ambientOcclusion, and is on by default,
but is still not used by any builtin shaders/helpers.
2022-09-02 15:33:18 -07:00
bjorn
0b0faf6dc6
DefaultColor respects flag_colorTexture;
2022-09-02 15:07:45 -07:00
bjorn
d513b98ce2
Fix cubemap shader;
2022-08-26 22:22:37 -07:00
bjorn
085550da33
Tonemapping, I guess;
2022-08-26 10:34:32 -07:00
bjorn
ad7c854571
Add evaluateSphericalHarmonics helper;
2022-08-26 10:28:43 -07:00
bjorn
70aff00a11
Rename shader flags; Add color flags;
2022-08-26 10:28:23 -07:00