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
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
bjorn
b3d921d0ed
Fix build;
2017-09-22 22:26:31 -07:00
bjorn
27c914664c
Clean up includes;
2017-09-19 23:49:10 -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
bjorn
80e3d3487a
Transform:getMatrix; Transform:setMatrix;
2017-09-10 14:55:24 -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
447b2da41a
lovr.math.orientationToDirection;
2017-09-02 17:26:24 -07:00
bjorn
e2f4d23842
Small cleanup;
2017-08-27 22:59:51 -07:00
bjorn
44c02b008b
v0.8.0;
2017-08-27 15:49:43 -07:00
bjorn
40b9cb1c63
Fix World:update fix;
2017-08-27 13:23:40 -07:00
bjorn
8001c0171c
Fix default offset for WebVR;
2017-08-27 13:23:31 -07:00
bjorn
9202b42d8d
Try to enable antialiasing in WebVR;
2017-08-27 13:23:21 -07:00
bjorn
cbfeda1b1c
Fix World:update;
2017-08-26 21:06:03 -07:00
bjorn
3fed41db7f
Fix nonuniform scale issue;
2017-08-26 20:09:00 -07:00
bjorn
d6aad1faba
Fix RGB texture size;
2017-08-26 19:31:03 -07:00
bjorn
22a8152eb5
Fix normal matrix;
2017-08-26 18:36:30 -07:00
bjorn
c6c29e3895
Fix strange font cast issue;
2017-08-26 17:15:53 -07:00
bjorn
773abf26ae
Fix bug with mesh mapping;
2017-08-25 21:18:22 -07:00
bjorn
9fd4030f47
Tweak sphere coordinates;
2017-08-15 21:21:49 -07:00
bjorn
e4a7c6bb47
Fix WebVR;
2017-08-15 01:05:18 -07:00
bjorn
3f875118a9
Fix shader issues;
2017-08-13 21:03:11 -07:00
bjorn
2d0e849686
Fix lovr.getOS for Linux;
2017-08-13 16:49:10 -07:00
bjorn
33c54efbed
Use touchpad for touch joystick;
2017-08-13 04:35:49 -07:00
bjornbytes
eea960df8c
Support Touch controllers;
2017-08-12 22:58:59 -07:00
bjornbytes
5bf174b37d
Use enum for lovrHeadsetGetType;
2017-08-12 21:35:37 -07:00
bjornbytes
b843fc3dbe
Return proper headset name for OpenVR backend;
2017-08-12 21:13:57 -07:00
bjornbytes
3c3076f8c4
Fix VR rendering;
2017-08-12 20:43:23 -07:00
bjorn
0311232ae1
Add lovrModel and lovrView matrices;
2017-08-10 22:23:19 -07:00
bjorn
74f585ca8d
Use lovrAssert and lovrThrow for better errors;
2017-08-10 01:05:04 -07:00
bjorn
7f1d441cdf
Better error handling system;
...
Mom's spaghetti.
2017-08-10 00:45:19 -07:00
bjorn
3cd245f2b0
Window customization via conf.lua;
2017-08-09 20:02:02 -07:00
bjorn
c69d6a72d8
Mention ddsparse;
2017-08-09 01:57:18 -07:00
bjorn
1d82277173
Fix mesh index buffer binding;
2017-08-09 01:31:25 -07:00
bjorn
3143c87197
Fix issues with framebuffers;
2017-08-09 01:09:19 -07:00
bjorn
b94bc558fc
Fix fullscreen quads;
2017-08-09 00:59:04 -07:00
bjorn
6c316c7587
Fix Shader bugs;
2017-08-09 00:56:13 -07:00
bjorn
9dd9678077
Fix default font bug;
2017-08-08 23:49:17 -07:00
bjorn
9f6f993903
Fix Mesh;
2017-08-08 22:58:11 -07:00
bjorn
c76df39407
Organize lovrGraphicsReset;
2017-08-08 22:39:00 -07:00
bjorn
60867925e4
Move unused header includes;
2017-08-08 22:34:23 -07:00
bjorn
f91366aa96
Remove old color macros;
2017-08-08 22:31:27 -07:00
bjorn
d849f2429c
Everything is probably broken;
2017-08-08 21:10:56 -07:00
bjorn
76f94e8ade
Rename primitive data structures;
2017-08-08 18:57:41 -07:00
bjorn
88a32fd951
Simplify Skybox stuff;
2017-08-08 18:52:28 -07:00
bjorn
45618f819e
Fix Skyboxes;
2017-08-08 18:24:29 -07:00
bjorn
58931f01e2
Allow lovr.graphics.setFont(nil);
2017-08-08 18:01:39 -07:00
bjorn
abbe5e36d0
Canvas state is internal;
2017-08-08 02:20:55 -07:00
bjorn
c89301c284
Texture is internal state;
2017-08-08 02:14:50 -07:00
bjorn
fe570e19f1
Diff vao, vbo, and ibo;
2017-08-08 02:13:07 -07:00
bjorn
dfd0926fab
Diff framebuffer;
2017-08-08 02:05:30 -07:00
bjorn
ef58eea4b8
Projection is transform state;
2017-08-08 01:37:23 -07:00
bjorn
6077cae95a
Font state;
2017-08-08 01:36:29 -07:00
bjorn
80c9d7f4d8
Shader state;
2017-08-08 01:33:52 -07:00
bjorn
047fe412eb
rm lovr.texture.bind;
2017-08-08 01:33:52 -07:00
bjorn
03c01cb97a
Use access bits better when mapping Meshes;
2017-08-08 01:33:52 -07:00
bjorn
3da48027ce
Use struct for shape state;
2017-08-08 01:33:52 -07:00
bjorn
b65673bc3f
Color object;
2017-08-08 01:33:52 -07:00
bjorn
9efa89768c
Organize graphics state;
2017-08-08 01:33:52 -07:00
bjorn
ef06a19fa4
Refactor texture filter structure;
2017-08-08 01:33:52 -07:00
bjorn
bb2ec5b49c
No pointers for CanvasState;
2017-08-08 01:33:52 -07:00
bjorn
f649a50264
rm lovrGraphicsSetPerspective;
2017-08-08 01:33:52 -07:00
bjorn
38c5342d8a
Private lovrGraphicsEnsureFont;
2017-08-08 01:33:52 -07:00
bjorn
7f80a8577f
Mesh cleanup;
2017-08-08 01:33:52 -07:00
bjorn
ce0d2746fd
State diff for Mesh:setTexture;
2017-08-08 01:33:52 -07:00
bjorn
1402213029
Clean up system limits;
2017-08-08 01:33:52 -07:00
bjorn
fd176a608a
Private graphics primitive functions;
2017-08-08 01:33:52 -07:00
bjorn
0e474ad6af
Reorganize lovrFontPrint;
2017-08-08 01:33:52 -07:00
bjorn
6b0f903b2e
rm lovr.graphics.getColorMask; rm lovr.graphics.setColorMask;
2017-08-08 01:33:52 -07:00
bjorn
ed25eef2d3
rm lovr.graphics.getScissor; rm lovr.graphics.setScissor;
2017-08-08 01:33:52 -07:00
bjorn
a652036111
Use headset offset in error message;
2017-08-07 00:01:12 -07:00
bjorn
3de7c4492c
Add missing API function;
2017-08-06 23:58:14 -07:00
bjorn
fb10cf6f2a
Fix WebVR;
2017-08-06 23:58:14 -07:00
bjorn
8b88ed1c46
1.7m default;
2017-08-06 23:58:14 -07:00
bjorn
9650524e53
Fix origin type boolean check;
2017-08-06 23:58:14 -07:00
bjorn
42a3444fd8
HeadsetOrigin; conf.headset.offset;
2017-08-06 23:58:14 -07:00
bjorn
1c3aa7a996
Allow disabling the graphics module;
2017-08-05 00:33:07 -07:00
bjorn
b5a58e31f1
Declare secret OpenVR functions;
2017-08-03 00:57:52 -07:00
bjorn
4e81bc6cd9
Fix Linux glad include;
2017-08-03 00:57:47 -07:00
bjorn
b4513d5ca6
Fixes for lovr.filesystem on Linux;
2017-08-03 00:57:28 -07:00
bjorn
b55979936f
Simplify l_lovrGraphicsSetBackgroundColor;
2017-08-01 13:19:36 -07:00
bjorn
146d037cae
Simplify lovrGraphicsClear;
2017-08-01 13:11:32 -07:00
bjorn
48733f87c4
Just use EMCSRIPTEN instead of LOVR_WEB;
2017-08-01 12:16:09 -07:00
bjorn
94355db2b5
Remove font shader discard;
2017-07-31 02:43:04 -07:00
bjorn
416f6f7216
Default to LEQUAL CompareMode;
2017-07-31 02:42:44 -07:00
bjorn
0e470a9088
Pass correct arguments to webvr sittingToStanding;
2017-07-31 02:42:00 -07:00
bjorn
6a13ac5ee1
Don't include glad on web;
2017-07-31 02:41:44 -07:00
bjorn
8464463d4e
Set default texture filter before creating texture;
2017-07-31 02:41:13 -07:00
bjorn
32e5c76566
Fix windows compilation;
2017-07-27 20:19:39 -07:00
bjorn
ef537e99d4
Math module random functions;
2017-07-26 22:46:31 -07:00
bjorn
8b34330079
RandomGenerator;
2017-07-26 22:46:31 -07:00
bjorn
39ba6d3f12
Add trigger ControllerButton;
2017-07-24 23:17:00 -07:00
bjorn
059c5d3ef2
Fix bugs with font textures;
2017-07-23 23:22:51 -07:00
bjorn
d78e986a05
Fix compilation issues;
2017-07-23 23:14:28 -07:00
bjorn
8bf2048cf2
Use header files for lua libraries;
2017-07-23 23:03:13 -07:00
bjorn
cb7ac8e656
Add enet;
2017-07-23 23:03:13 -07:00
bjorn
112e6f8f00
lovr.math.lookAt;
...
Returns the angle/axis rotation for looking at a point.
2017-07-23 22:38:33 -07:00
bjorn
6a8e22f5be
Don't check for ubiquitous extension;
2017-07-23 16:24:43 -07:00
bjorn
e40f23c649
Formatting;
2017-07-23 16:24:43 -07:00
bjorn
d3ac98e248
rm unused code;
2017-07-23 16:24:43 -07:00
bjorn
a1007a1545
Add anisotropy system limit;
2017-07-23 16:24:43 -07:00
bjorn
7d31410c8c
New Texture filter modes; lovr.graphics.setDefaultFilter;
2017-07-23 16:24:43 -07:00
bjorn
f1141664b6
Mipmap generation;
2017-07-23 16:24:43 -07:00
bjorn
344320a19d
Parse DDS;
2017-07-23 16:24:43 -07:00
bjorn
b25d345e72
Add compressed texture formats;
2017-07-23 16:24:43 -07:00
bjorn
b76480f9f2
Add texture compression and filter extensions;
2017-07-23 16:24:43 -07:00
bjorn
2a05fb4033
Refactor TextureFormat;
2017-07-23 16:24:43 -07:00
bjorn
12700f9785
Fix font shader in WebGL;
2017-07-22 16:57:09 -07:00
bjorn
abaecb7f60
Font fixes;
2017-07-18 21:48:08 -07:00
bjorn
d8047cdeff
rm FORMAT_LUMINANCE_ALPHA;
2017-07-19 07:00:11 +09:00
bjorn
c750b64b1b
Cleanup;
2017-07-19 07:00:11 +09:00
bjorn
8ad3e64a2d
Font shader;
2017-07-19 07:00:11 +09:00
bjorn
93c286afb6
Glyph padding;
2017-07-19 07:00:11 +09:00
bjorn
800d07a0de
Use msdfgen;
2017-07-19 07:00:11 +09:00
bjorn
c518cadcf7
Cleanup;
2017-07-19 07:00:11 +09:00
bjorn
05dd988cb8
Fix undefined behavior with custom fonts;
2017-07-19 07:00:11 +09:00
bjorn
e474bb61d1
Add RGB texture format;
2017-07-19 07:00:11 +09:00
bjorn
41210b1bd0
lovr.graphics.plane takes regular transform;
2017-07-19 05:07:18 +09:00
bjorn
b2feefe98a
Fix Model:getAABB more;
2017-06-25 04:16:47 -07:00
bjorn
7843e24028
Fix Model:getAABB;
2017-06-25 01:30:19 -07:00