Commit graph

37 commits

Author SHA1 Message Date
Leonardo Zide
4e6306a649 Translucent step fade. 2020-04-19 20:21:18 -07:00
Leonardo Zide
7275c4256d Added const qualifiers. 2020-03-22 20:18:52 -07:00
Leonardo Zide
90f1336a48 Scoped enums and constexpr. 2020-03-22 13:44:20 -07:00
Leonardo Zide
85a9b19b2c Warning fixes. 2020-02-24 14:31:08 -08:00
Leonardo Zide
b698686420 Fixed compiler warnings. 2020-01-18 16:53:33 -08:00
Leonardo Zide
cbf534fcdf Added option to fade previous steps. 2020-01-01 17:06:17 -08:00
Leonardo Zide
9fe520c56a Fixed selection not being drawn. 2019-12-07 08:31:56 -08:00
Leonardo Zide
2bd9b837dc Always draw grid between opaque and translucent meshes. Fixes #399. 2019-11-30 11:38:11 -08:00
Leonardo Zide
0ecc4b5966 Added option to disable mesh LOD. Closes #400. 2019-11-28 12:47:19 -08:00
Leonardo Zide
bd25c7f31a Sort translucent meshes per section. 2019-11-22 16:47:58 -08:00
Leonardo Zide
226a4581aa Reset polygon offset after drawing. 2019-11-18 14:32:53 -08:00
Leonardo Zide
081373742e Translucent mesh sorting fixes and improvements. 2019-11-16 12:15:49 -08:00
Leonardo Zide
8cfddcefa3 Removed unused variable. 2019-11-12 15:13:47 -08:00
Leonardo Zide
eed93e183d Draw textured and untextured meshes together. 2019-11-12 15:11:03 -08:00
Leonardo Zide
5854cfce89 Added wrapper for glDepthMask. 2019-11-09 18:11:25 -08:00
Leonardo Zide
655498f3ee Draw opaque textured meshes before translucent meshes. 2019-11-09 11:54:17 -08:00
Leonardo Zide
f266040633 Don't apply textures to lines. 2019-11-02 11:38:24 -07:00
Leonardo Zide
e68ce05b57 Moved mesh flags to the mesh class. 2019-07-21 08:56:37 -07:00
Leonardo Zide
2f102c2274 Array cleanup. 2019-03-28 17:59:58 -07:00
Leonardo Zide
0abc4a258a Enabled polygon offset (with a smaller offset) for opaque triangles so they don't z fight with lines. 2019-02-23 11:33:39 -08:00
Johannes Sixt
31703618c3 Reduce z-fighting when translucent walls are touching opaque walls. (#303)
* Move GL calls around drawing of translucent meshes to lcContext.

* Reduce z-fighting when translucent walls are touching opaque walls.

This fixes issue #301.
2019-02-23 10:56:38 -08:00
Leonardo Zide
bcd6ce8791 Use anisotropic for the string cache texture. 2018-09-29 19:45:21 -07:00
Leonardo Zide
7bdc918b98 Disable edge lines when line width is 0. 2018-07-31 11:33:32 -07:00
Leonardo Zide
752ae54788 Fixed interface draw location in active submodels. 2018-04-07 17:17:32 -07:00
Leonardo Zide
05cf0d6b90 Don't render the preview in wireframe mode. Closes #219. 2018-04-07 15:28:44 -07:00
Leonardo Zide
718b31a2bd Fixed selection tinting when editing submodels. 2018-04-07 11:45:00 -07:00
Leonardo Zide
b30ffd1b59 Initial implementation of in place submodel editing. 2018-03-29 10:20:36 -07:00
Leonardo
804e0f6f53 Save MSAA images. Fixes #101. 2017-12-26 10:19:20 -08:00
Leonardo
880f8f9a47 Only upload textures from the main thread. 2017-12-22 05:42:28 -08:00
Leonardo Zide
636e013455 Removed lcint types. 2017-12-02 12:22:04 -08:00
Leonardo Zide
f11d33044c Only draw lines when in wireframe mode instead of actually drawing the wireframe meshes. Closes #133. 2017-11-25 15:47:37 -08:00
leozide
3fc53d9d5f Added shading options. Closes #104. 2017-08-25 12:57:14 -07:00
Leonardo Zide
50256d5378 Fixed unlit textures not drawing. 2017-07-08 09:44:53 -07:00
leozide
b615cf669b Fixed conditional lines. 2017-06-22 18:45:45 -07:00
Alistair Buxton
2de2e2c187 Highlight parts added in the current step. 2017-06-20 07:47:31 -07:00
leozide
f7d61f33ce Updated code to use nullptr and override. 2017-04-13 17:26:40 -07:00
Leonardo Zide
b9726a2a99 Reorganized scene and context classes. 2017-04-01 16:53:54 -07:00