Commit graph

5954 commits

Author SHA1 Message Date
UnknownShadow200
6a74fd0408 Now with more consistency in use of color/colour/col 2021-11-05 18:26:52 +11:00
UnknownShadow200
513d2d9a7b Direct3D9Ex: Also enter reduced performance mode when minimised, and showe a message in chat when that happens 2021-11-05 17:18:14 +11:00
UnknownShadow200
05f8fe0555 Direct3D11: Fix textures leaking memory 2021-11-04 20:40:16 +11:00
UnknownShadow200
65e51cc4ec Direct3D11: Now with 1.23% less memory leaking 2021-11-04 20:13:56 +11:00
UnknownShadow200
2e72ffefa2 Direct3D11: Reduce FPS instead of crashing when minimised 2021-11-04 19:21:25 +11:00
UnknownShadow200
114aa2f666 ESC shouldn't close texture pack download dialog 2021-11-03 21:11:46 +11:00
UnknownShadow200
16ad02e0ae Direct3D11: Forgot to enable customMipmapsLevels, fixes mipmaps a long way away appearing wrong 2021-11-03 19:53:32 +11:00
UnknownShadow200
0bb46d6c71 Direct3D11: Implement mipmaps. Almost. 2021-11-03 19:28:59 +11:00
UnknownShadow200
01c4756c82 Direct3D11: Drop support for extremely old Direct3D9 only GPUs 2021-11-02 20:12:43 +11:00
UnknownShadow200
637a56e90e Direct3D11: Fix fog with assistance from RenderDoc graphics debugger
The Direct3D11 hlsl pixel shaders were ported from the OpenGL2 glsl fragment shaders.
In the documentation for OpenGL glsl, the W component of gl_FragCoord is specified as being 1/w. However in Direct3D11 hlsl, the W component of SV_POSITION is just w - hence why fog appeared to not work.
The solution to this is simple - when calculating depth, multiply by w instead of dividing by w.
2021-11-02 19:33:00 +11:00
UnknownShadow200
ce2c3a9607 Update webclient hosting documentation 2021-11-01 18:27:26 +11:00
UnknownShadow200
024833621a Fix Quit Game not working on windows 98 2021-10-31 11:02:22 +11:00
UnknownShadow200
092f3cc1e5 Windows: Fix crashing with OpenGL 1.1 windows software rasteriser 2021-10-30 23:21:28 +11:00
UnknownShadow200
98a8baddef OpenGL: Add OpenGL 1.1 fallback for 32 bit windows 2021-10-30 22:46:31 +11:00
UnknownShadow200
d0a93bf742 OpenGL: Avoid one layer of indirection on Windows in 5 most important OpenGL calls, although performance difference is too insignificant to notice 2021-10-30 22:22:31 +11:00
UnknownShadow200
00ff8bef25
Merge pull request #906 from UnknownShadow200/SplitGL
Split OpenGL backend into two source files
2021-10-30 16:29:19 +11:00
UnknownShadow200
7b7fdbbeff Fix compilation errors 2021-10-30 15:33:53 +11:00
UnknownShadow200
542a6ff65d Reuse _GLShared.h in OpenGL2 backend 2021-10-30 15:00:16 +11:00
UnknownShadow200
7a32b65d19 Split up OpenGL1 backend into Graphics_GL1.c and _GLShared.h 2021-10-30 14:16:51 +11:00
UnknownShadow200
ba137e6c2b Inline headers into OpenGL1 backend and remove GL1.1 stuff from OpenGL2 backend 2021-10-30 11:12:52 +11:00
UnknownShadow200
fb5ae9dc55 Split up OpenGL backend into GL1/GL2 (initial WIP) 2021-10-30 08:49:26 +11:00
UnknownShadow200
46b6679961 Webclient: Fix error messages getting cutoff (Thanks Vuruz) 2021-10-25 08:18:17 +11:00
UnknownShadow200
1bcb0bfdab Fix last commit as still can't get fog working 2021-10-24 18:13:42 +11:00
UnknownShadow200
f03f434c4e Direct3D11: Add fog that doesn't work 2021-10-24 16:44:31 +11:00
UnknownShadow200
e37c0a01d8 Direct3D11: Fix particles, selected block outline, and bedrock border outside map not rendering with this one line trick 2021-10-24 09:07:27 +11:00
UnknownShadow200
fbb2252608 Direct3D11: Implement alpha testing and /client gpuinfo 2021-10-23 22:26:10 +11:00
UnknownShadow200
5ebffdc351 Open source D3D11 shader gen 2021-10-23 20:53:25 +11:00
UnknownShadow200
83518aea04 Direct3D11: Implement texture animations 2021-10-23 18:20:03 +11:00
UnknownShadow200
7338f69361 Direct3D11: Implement backface culling 2021-10-23 16:11:32 +11:00
UnknownShadow200
bd4b8b8af2 Add MIPS CPU register dumping 2021-10-23 11:32:54 +11:00
UnknownShadow200
e6d35ea3ab Fix not compiling on 64 bit Linux PPC (thanks random_vegetable) 2021-10-22 09:00:57 +11:00
UnknownShadow200
c7a9621fd0
Improve compiling instructions 2021-10-18 21:13:17 +11:00
UnknownShadow200
f6dc9d9753 Release 1.2.9 2021-10-18 11:33:35 +11:00
UnknownShadow200
8891efda30 Android: Fix OpenGLES 1.1 build not working on actual devices 2021-10-16 11:43:28 +11:00
UnknownShadow200
6ee74cba02
Better clarify some things in readme 2021-10-14 16:08:45 +11:00
UnknownShadow200
f4d9f18b8b Mobile: Fix caret showing on menu input widgets even before they were made active 2021-10-13 08:08:30 +11:00
UnknownShadow200
0bc42b2643 Web: Fix on older iOS safari numeric onscreen keypad not showing for integer text input overlay 2021-10-11 23:28:44 +11:00
UnknownShadow200
48d31d3342 Fix last commit 2021-10-11 23:15:49 +11:00
UnknownShadow200
7584819595 Mobile: Split KEYBOARD_TYPE_NUMBER into KEYBOARD_TYPE_NUMBER and KEYBOARD_TYPE_INTEGER
Only makes a difference on iOS devices though apparently
2021-10-11 22:14:23 +11:00
UnknownShadow200
93aee245a6 Mobile: Don't auto open keyboard in menus (Thanks SteleCat) 2021-10-11 11:45:32 +11:00
UnknownShadow200
037fa91461 Web: Fix mobile numeric input overlay being transparent on some web browsers (e.g. generating level input fields) 2021-10-10 22:51:43 +11:00
UnknownShadow200
28893886d4
Fix example plugin instructions not compiling 2021-10-10 20:09:31 +11:00
UnknownShadow200
93d47a9e0c Web: Fix Window_OpenKeyboard not updating text/placeholder when input element is already being shown 2021-10-10 16:50:05 +11:00
UnknownShadow200
483d489d99 Fix music/sounds not defaulting to 100 volume in misc options (Thanks lavacraft) 2021-10-09 09:38:44 +11:00
UnknownShadow200
2969efcc7e Fix chatscreen causing game crash when Input_TouchMode is toggled 2021-10-08 21:56:06 +11:00
UnknownShadow200
6222d7bb4c Web: For mobile, stop event propgation for touch/mouse down/move events on html text input overlay, because we don't want the game to even know about these events 2021-10-08 12:04:40 +11:00
UnknownShadow200
7e3a3902fd Web: Allow turning on chat logging, off by default
Although it's pretty useless still since it's only logged to IndexedDB
2021-10-07 22:18:56 +11:00
UnknownShadow200
1c786570e4 Web: Fix canvas not auto clearing when client is exited with an error (e.g. invalid port) 2021-10-07 20:32:26 +11:00
UnknownShadow200
d3a9477470 Web: Move emscripten_set_main_loop from Game.c to Window_Web.c 2021-10-07 17:40:21 +11:00
UnknownShadow200
326c1445dd Unobsolete Gfx_UpdateTexturePart and obsolete Gfx_UpdateTexture 2021-10-05 19:27:12 +11:00