Commit Graph

2113 Commits

Author SHA1 Message Date
milek7
3cb5a98b60 remove openglcolor.h from stdafx.h 2021-01-24 22:36:28 +01:00
milek7
90a6b7c3b5 handle different window/framebuffer sizes 2021-01-24 22:00:30 +01:00
milek7
34113bf7e7 Revert scaling changes. It breaks pickbuffers on Windows with DPI scaling. Needs more investigation.
This reverts commit d901177489.
2021-01-24 15:38:48 +01:00
milek7
ad7c0622f8 Revert "pick buffer debug"
This reverts commit a463846ce5.
2021-01-24 15:38:31 +01:00
milek7
a463846ce5 pick buffer debug 2021-01-24 14:37:10 +01:00
antonisauren
d1ecbdc8ff Sim (#11)
* Wheels animation distance changed to 200*D*LODbias

* Fixed spelling error in event syntax; old one remains for compatibility.

* Spelling error left in log text

* Zamiana metalic na floata z wazonym efektem.

# Conflicts:
#	shaders/light_common.glsl

* Detail normalmap shaders @Jan21

* Explicit type conversion

* Leftover metalic as bool

* Syntax error

* Normalmap sampling inside ParallaxMapping function
2021-01-23 22:24:14 +01:00
milek7
7422dddd02 handle both old- and new-style mipmap generation 2021-01-22 22:35:37 +01:00
milek7
63edbe91c2 on second thought, checking for function pointers is more optimal 2021-01-22 22:27:15 +01:00
milek7
9e7c528114 make legacy gl2.0 work without BaseVertex extensions 2021-01-22 22:19:23 +01:00
milek7
78a15bf527 fix swapped arguments to glUniformBlockBinding 2021-01-22 19:07:30 +01:00
milek7
839b2116df fixes in imgui gl2 interaction with renderers 2021-01-22 02:36:49 +01:00
milek7
8ec29babf9 improve context creation, add gfx.gldebug 2021-01-22 00:26:29 +01:00
Piotr
d901177489 MacOS native build fixes (#9)
* Added fWindowXScale and fWindowYScale to support retina/hi-res displays on MacOS

* Fixed mouse handling for hi-res/retina displays on MacOS with legacy renderer

* Gated glfwGetWindowContentScale with endif checking glfw version
2021-01-21 23:39:28 +01:00
milek7
ee3e94bd35 add macos imgui gl2 build to CI 2021-01-21 23:28:34 +01:00
milek7
7cacab0dc8 add gfx.angleplatform ini setting 2021-01-21 22:15:57 +01:00
milek7
1374dec99c imgui2 fix, relax GL context requirements for legacy mode 2021-01-21 20:23:53 +01:00
milek7
0aa4293a5a cleanup imgui impl include as we're using glad anyway 2021-01-21 19:57:47 +01:00
milek7
56eba08a6f CI shader validation 2021-01-21 15:51:03 +01:00
milek7
3a3104a521 gles tweak 2021-01-21 02:37:43 +01:00
milek7
edd218e880 don't need to check for clip origin in imgui (check wasn't correct for GLES anyway) 2021-01-21 00:40:39 +01:00
milek7
4e868288ee add support for ETC2_EAC in .ktx files 2021-01-20 22:46:52 +01:00
milek7
d5fadaf98c properly check for gles multisampling 2021-01-20 19:49:36 +01:00
milek7
5aa8dfe1a1 use DrawElementsBaseVertexOES if available 2021-01-20 19:39:05 +01:00
milek7
f0b364bafe basic GLES working again 2021-01-20 19:29:50 +01:00
milek7
97d6547824 log simulation timestamp, add highp int precision to gles shaders 2021-01-20 18:06:37 +01:00
milek7
809f0c2077 macos tweaks 2021-01-19 20:38:27 +01:00
milek7
5fcd108b3d add MacOS ARM64 to CI builds 2021-01-19 15:47:33 +01:00
milek7
bba6c8410c try to fix MacOS CI 2021-01-18 22:52:15 +01:00
milek7
d08146ed5b pantograph PhysicalLayout fiz entry 2021-01-18 02:15:11 +01:00
milek7
d096c52b5b energy meter tweaks 2021-01-16 22:55:57 +01:00
milek7
5d130c7fcf ..obviously only for vehicles that have pantographs at all 2021-01-16 19:52:30 +01:00
milek7
fdafcbc9be energy counter for electric traction vehicles 2021-01-16 19:31:48 +01:00
milek7
f481fbb7cc restore (presumably) correct sun/moon sizes 2020-12-02 02:40:07 +01:00
milek7
a182eec2a1 slightly better ui scaling 2020-12-02 01:49:58 +01:00
milek7
ee5551a424 try to improve motion blur 2020-12-01 01:45:48 +01:00
milek7
c004047276 Revert "zero future matrix for current vehicle"
This reverts commit c10c7e8fab.
2020-11-30 22:25:16 +01:00
milek7
c10c7e8fab zero future matrix for current vehicle 2020-11-30 22:13:10 +01:00
milek7
6a18494379 let's try random macos fix 2020-11-23 22:59:33 +01:00
milek7
1f489b164f cmake libpng search tweaks 2020-11-23 22:11:04 +01:00
milek7
09d5c0ede9 macos CI fixes 2020-11-23 21:52:28 +01:00
milek7
06793f2b77 Revert "remove macos CI for now"
This reverts commit 0173d316c6.
2020-11-23 21:45:52 +01:00
milek7
c3b596ed29 cache audio listener position 2020-11-19 17:02:34 +01:00
milek7
21ef95a0a8 vr: compute shadow bounding area for both eyes 2020-11-19 14:42:58 +01:00
milek7
6d7dad68eb respect extra viewport transforms for audio calc 2020-11-19 00:59:00 +01:00
milek7
30dec00c35 vr: draw main window tex on nice quad 2020-11-18 23:46:24 +01:00
milek7
b024ed90fc vr: proper eye matrix calculation 2020-11-18 22:37:58 +01:00
milek7
79b0216b55 use vr hiddenarea mask 2020-11-18 22:18:28 +01:00
milek7
8889872f39 temporaily disable openvr for ubuntu CI 2020-11-18 01:47:00 +01:00
milek7
1c5dcfb87e enable openvr for windows CI 2020-11-18 01:19:46 +01:00
milek7
7432507b15 Merge remote-tracking branch 'youby/master' into sim 2020-11-16 23:17:37 +01:00