1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00
Commit graph

1054 commits

Author SHA1 Message Date
bjorn 094540e7c6 Add material files to CMakeLists; 2017-10-21 15:21:43 -07:00
bjorn 9e9b0b7b94 Material support for Models; 2017-10-21 15:20:16 -07:00
bjorn dece1d896f Update skybox and font rendering; 2017-10-21 14:59:34 -07:00
bjorn 16915e4fa2 Material graphics state; 2017-10-21 14:32:41 -07:00
bjorn d658c80e57 Add Material API; 2017-10-21 14:05:58 -07:00
bjorn 3743b9d032 Add Material; 2017-10-21 14:00:33 -07:00
bjorn 1f6a80ee85 Add MaterialData; 2017-10-21 14:00:26 -07:00
bjorn 4935816457 Remove texturing from primitives; 2017-10-21 13:54:50 -07:00
bjorn 54533351bb Generalize Shader to support more types of uniforms; 2017-10-21 13:39:50 -07:00
bjorn b82ed7fd56 Put shaders in their own file; 2017-10-21 13:21:30 -07:00
bjorn b8fededcf6 Add luax_checkcolor; 2017-10-21 13:21:30 -07:00
bjorn 32b05cb15d Support multiple texture slots; 2017-10-21 13:21:28 -07:00
bjorn a2860361e9 Consolidate Texture and Skybox; 2017-10-21 13:00:13 -07:00
bjorn e8f2166e00 Remove textures from Models and Meshes; 2017-10-21 12:34:58 -07:00
bjorn a12a003ccb Use custom IO callbacks for assimp; 2017-10-21 12:31:53 -07:00
Ben Campbell 5c17196e49 Add runtime selection support for webvr version 2017-10-21 22:52:07 +13:00
Ben Campbell c694f56439 pick appropriate headset implementation at runtime
(just fake and openvr for now. Need to add webvr support still)
2017-10-21 22:39:33 +13:00
Ben Campbell 5df4197f39 Add indirection of fake headset functions
Setting up for runtime-pickable headset implementation
2017-10-21 09:32:46 +13:00
Ben Campbell a3d81b773c fake headset: fix reversed up/down movement
minecraft key conventions ;)
2017-10-19 22:07:28 +13:00
Ben Campbell 3575c09114 make fake headset tolerant of non-existent window 2017-10-19 22:04:46 +13:00
bjorn 9a47643d20 Update package list for Ubuntu; 2017-10-17 21:51:50 -07:00
bjorn 5099f52de2 Add package list for debian/ubuntu to COMPILING; 2017-10-17 21:45:55 -07:00
bjorn b124f7e7c2 Model:getMesh; 2017-10-15 10:26:33 -07:00
bjorn 0d3bc4cfaa Disable depth mask when drawing text; 2017-10-15 09:16:13 -07:00
bjorn f5e8535726 Use internal scene graph for models;
Allows for loading of more complicated models and multiple materials
for a single model.  Also fixes bugs with Mesh draw ranges.  Model:getAABB
is temporarily removed.
2017-10-14 18:01:00 -07:00
Ben Campbell 5667b5711b fake headset: add ultra cheesy fake controller
single controller, locked to headset position and orientation.
left mouse button is trigger.
2017-10-14 10:34:25 +13:00
Ben Campbell a40fed579b fake headset: add cursor key support 2017-10-14 10:04:41 +13:00
Ben Campbell 0ed41b690a fake headset: make mouse capture feel more natural
Disable mousecapture when window loses focus, or escape is pressed.
Reenable it when user clicks in window.
2017-10-14 09:56:23 +13:00
Ben Campbell 2b9cc1a60c add headset.update (to handle moving fake headset) 2017-10-14 09:46:33 +13:00
Ben Campbell 0e4e1159e5 rename 'near' and 'far' params (caused msys2 problems)
Looks like 'near' and 'far' are still pointer qualifiers under
some compilers/environments. The gcc from msys2 refused to build.
2017-10-13 08:54:01 +13:00
Ben Campbell 8f97384951 cheesy hack to module load order to get fake headset running 2017-10-12 23:04:18 +13:00
Ben Campbell 38803af405 beginnings of fake headset support 2017-10-12 13:14:51 +13:00
Ben Campbell 7b20ad9650 fix the msvc defs fix 2017-09-22 23:03:31 -07:00
Ben Campbell 9b8040777d cmakelist: fix msvc defs leaking to other platform
The MSVC_VERSION check was kicking in on Linux (and presumably OSX),
and causing redefines of `inline` and `snprintf`, and failing the
build with  lots of "undefined reference to `_snprintf'" errors.
2017-09-22 23:03:31 -07:00
bjorn b3d921d0ed Fix build; 2017-09-22 22:26:31 -07:00
Ben Campbell 8c74a6d816 fix the msvc defs fix 2017-09-23 10:26:40 +12:00
Ben Campbell 169eae2ba5 cmakelist: fix msvc defs leaking to other platform
The MSVC_VERSION check was kicking in on Linux (and presumably OSX),
and causing redefines of `inline` and `snprintf`, and failing the
build with  lots of "undefined reference to `_snprintf'" errors.
2017-09-23 09:53:03 +12:00
bjorn 27c914664c Clean up includes; 2017-09-19 23:49:10 -07:00
Colby Klein 8f3bf3cbe2 Add .editorconfig
...For those of us with editors which aren't configured for 2-space on C.
2017-09-18 18:22:37 -07:00
bjorn 6c3abad9f4 Fix crash in OpenVR mirror texture; 2017-09-18 00:39:47 -07:00
bjorn 6d85f512e3 Shoo tabs; 2017-09-17 17:38:22 -07:00
Colby Klein 5fb58b3a0f fix build for msvc 2013 2017-09-10 16:03:43 -07:00
bjorn 80e3d3487a Transform:getMatrix; Transform:setMatrix; 2017-09-10 14:55:24 -07:00
bjorn 3e01f6e662 Update COMPILING; 2017-09-05 23:01:15 -07:00
bjorn 8e5e8e81ca OpenAL fallback for Unix; 2017-09-05 22:13:01 -07:00
bjorn 1d1277ba76 Fix World:raycast; 2017-09-03 17:01:48 -07:00
bjorn 5841ae1628 Controller:getHand for WebVR; 2017-09-03 01:26:18 -07:00
bjorn 4b3c7c60c2 Improve OpenVR tracking accuracy; 2017-09-02 23:08:46 -07:00
bjorn a5760beb4e Use ALLOW_MEMORY_GROWTH; 2017-09-02 17:31:20 -07:00
bjorn 447b2da41a lovr.math.orientationToDirection; 2017-09-02 17:26:24 -07:00