Leonardo Zide
a3646c9728
Removed lcArray instances.
2024-05-11 12:44:06 -07:00
Leonardo Zide
a5207573bf
Customizable object colors.
2021-11-24 15:20:08 -08:00
Leonardo Zide
94a5a5dc52
Moved blend to context.
2021-11-22 16:18:09 -08:00
Leonardo Zide
a9ab7c0c64
Removed GL calls in texfont.
2021-11-21 12:16:19 -08:00
Leonardo Zide
2a24933fa8
Scoped enums.
2021-11-14 19:10:16 -08:00
Leonardo Zide
a9971b0b1a
Fixed rendering issues with missing textures.
2021-06-27 12:13:54 -07:00
Leonardo Zide
594422315a
Draw texture triangle normals.
2021-03-25 20:46:37 -07:00
Leonardo Zide
8039f5b180
Draw conditional lines on a separate pass.
2021-03-21 17:53:13 -07:00
Leonardo Zide
c8bd036236
Fixed texture upload from worker threads.
2021-03-13 14:09:08 -08:00
Leonardo Zide
233affe3fc
Moved global resource creation to startup instead of context creation. Fixes #645 .
2021-03-10 21:22:41 -08:00
Leonardo Zide
4a50ac69a9
Fixed conditional line color.
2021-03-07 11:05:44 -08:00
Leonardo Zide
b2880731db
Added conditional lines option.
2021-03-07 09:53:35 -08:00
Leonardo Zide
c3ad14ac04
Conditional line shader.
2021-03-06 18:54:24 -08:00
Leonardo Zide
cf664584c6
Fixed conditional lines math.
2021-03-06 10:08:36 -08:00
Leonardo Zide
138f749053
Use part color for wireframe lines.
2021-01-09 16:02:23 -08:00
Leonardo Zide
0828fd1e2c
Added mesh LOD distance option.
2020-08-15 16:16:26 -07:00
Leonardo Zide
f309d3fb0a
Fixed translucent parts drawn with shading in flat shaded mode. Fixes #470 .
2020-05-07 11:50:43 -07:00
Leonardo Zide
ab6b325b0a
Fixed not being able to disable lines in flat shading mode. Fixes #466 .
2020-04-28 16:11:52 -07:00
Leonardo Zide
a5fde91ee9
Configurable fade color.
2020-04-25 12:16:37 -07:00
Leonardo Zide
acd7dd3f9a
Allow highlight color to be set by the user.
2020-04-25 11:36:28 -07:00
Leonardo Zide
b7f57c03f0
Skip faded passes when fade is disabled.
2020-04-24 18:13:53 -07:00
Leonardo Zide
47755fd4a0
Don't draw faded translucent parts in the prepass.
2020-04-24 18:08:48 -07:00
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