Commit Graph

580 Commits (668fd219cc7d18ca3887ea0125a694edaea02747)

Author SHA1 Message Date
Levin Li 668fd219cc Render lines with triangles 2021-01-03 17:21:55 +08:00
Levin Li e2b9598f17 Always use gl_PointSize in shader to set point size 2020-12-04 19:46:32 +08:00
Levin Li 22590114d1 Set line width according to DPI 2020-12-03 15:14:39 +08:00
Levin Li 21cba1eaeb Fix orbit depth bug in rendering 2020-12-01 15:59:41 +08:00
Levin Li b465017de8 Support fisheye projection, dumb version 2020-11-20 23:52:23 +08:00
Levin Li b1d7797e54 Restore sun halo 2020-10-27 16:53:59 +08:00
Levin Li 1f150db611 separate modelview and projection 2020-10-06 13:39:09 +08:00
Levin Li 5f2484cf5a Fix depth test for rendering object 2020-09-29 17:32:35 +08:00
Hleb Valoshka 929390eec6 Use internal state management to check MSAA state 2020-08-05 09:58:26 +03:00
Hleb Valoshka 8768f3497a Refactor depth state changing 2020-08-05 09:58:26 +03:00
Hleb Valoshka c26f64a89e Remove unneeded texture unbinds 2020-08-05 09:58:26 +03:00
Hleb Valoshka 6e8dbde814 Remove unneeded glUseProgram(0) 2020-08-05 09:58:26 +03:00
Hleb Valoshka 41f6b95c72 Add state tracking for depth 2020-07-08 15:09:18 +03:00
Hleb Valoshka e2bbd838a5 Add state tracking for blending 2020-07-08 15:09:18 +03:00
Hleb Valoshka 0811e7c350 Remove make_shared and make_unique to keep single style 2020-07-07 08:15:18 +03:00
Levin Li 06c688ad40 Larger star on hidpi screens 2020-07-04 19:39:37 +08:00
Levin Li c8338ea91f Fix point sso rendering on macOS 2020-07-01 21:43:53 +08:00
Hleb Valoshka 9e956abe3d Remove support for legacy TXF fonts 2020-06-24 17:14:31 +03:00
Hleb Valoshka ce533c9cc1 Make planet to point transition less ugly 2020-06-22 21:25:44 +03:00
Hleb Valoshka 1c668d3d7f Fix warnings reported by clang/gcc 2020-06-20 10:11:09 +03:00
Hleb Valoshka c588f80824 OpenGL ES 2.0 initial support 2020-06-15 19:27:46 +03:00
Hleb Valoshka 4731334605 Small optimization 2020-06-01 10:36:42 +03:00
Hleb Valoshka e8f813ab38 Round label position to decreate jittering 2020-06-01 10:36:42 +03:00
Hleb Valoshka 29cc9b0ccf Revert "Decrease annotations jittering"
This reverts commit c09672bab3.
2020-06-01 10:36:42 +03:00
Hleb Valoshka 9966d759c9 Optimize font rendering 2020-05-17 18:40:57 +03:00
Hleb Valoshka 1fb1f2de91 Replace fixed function GL code with GL ES compatible one 2020-05-12 15:59:56 +03:00
Hleb Valoshka a8b6ed4b80 Partially revert 31f28f6 to fix selection pointer rendering 2020-05-07 20:38:55 +03:00
Hleb Valoshka 7e499f8fd9 Add FramebufferObject::isSupported() 2020-05-05 16:51:57 +03:00
Hleb Valoshka a75312e748 Remove EXT/ARB suffixes
CubeMaps & BGR(A) are core feature in 2.1

FBO variants are handled by libepoxy
2020-05-05 16:51:57 +03:00
Hleb Valoshka daf34b5656 Port to "unlit" lighting model 2020-04-30 10:23:19 +03:00
Hleb Valoshka 5c6715d148 Refactor a few methods to make them more readable 2020-04-24 09:54:19 +03:00
Hleb Valoshka 7287fb0925 Use already calculated variable 2020-04-24 09:54:19 +03:00
Hleb Valoshka 31f28f6771 Make model & projection matrices float and change their initialization 2020-04-24 09:54:19 +03:00
Hleb Valoshka b651d31928 Change location of some code parts 2020-04-24 09:54:19 +03:00
Hleb Valoshka 1cf5c868cf Remove dead code 2020-04-24 09:54:19 +03:00
Hleb Valoshka b4bab385a0 Use private method instead of passing camera orientation to private methods 2020-04-24 09:54:19 +03:00
Hleb Valoshka 728b384a70 Make smooth line control function private 2020-04-24 09:54:19 +03:00
Hleb Valoshka 898b19a3a6 Fix color of globular markers 2020-04-24 09:54:19 +03:00
Hleb Valoshka 83f1b90397 Move solar system sbjects rendering to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka 6be2deb920 Rename renderLocations to locationsToAnnotations 2020-04-24 09:54:19 +03:00
Hleb Valoshka 0653b81762 Move depth partitioning to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka 6b8e3c864a Move eclipsed star exposure correction to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka dfd315ecc7 Move renderList culling to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka b30e12cb87 Move magnitude correction inside atmosphere to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka f8324ecd93 Move near systems lists building to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka 4d13a302b6 Move DSORenderer to its own files 2020-04-24 09:54:19 +03:00
Hleb Valoshka 47b123b183 Optimize annotations rendering using a precomputed projection matrix 2020-04-24 09:54:19 +03:00
Hleb Valoshka c09672bab3 Decrease annotations jittering 2020-04-24 09:54:19 +03:00
Hleb Valoshka 9f371f457b Refactor annotations rendering 2020-04-24 09:54:19 +03:00
Hleb Valoshka f32e8af444 Refactor markers and selection cursor rendering 2020-04-24 09:54:19 +03:00