Commit graph

25 commits

Author SHA1 Message Date
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