Andrei Alexeyev
5d339c09d8
framerate: slightly optimize fpscounter_update
...
Reduced calls to time_get() from 2 to 1 (which does a system call) and
got rid of long double.
Dumb "ring buffer" implementation remains
2022-01-12 14:19:21 +02:00
Andrei Alexeyev
1efd09ba4b
ci: react to changes in *.wrap files
2022-01-11 13:46:59 +02:00
Andrei Alexeyev
351f91a573
stage: add replay-based quicksave/quickload functionality
...
Disabled in story mode on non-developer builds
2022-01-09 14:11:26 +02:00
Andrei Alexeyev
085137843b
replay: use dynarray to store stages
2022-01-09 14:03:55 +02:00
Andrei Alexeyev
333dcabfa9
audio: add audio_sfx_set_enabled()
...
Global toggle for sfx requests
2022-01-09 13:47:23 +02:00
Andrei Alexeyev
a1142b1ffd
gamepad: don't panic when unknown button is encountered
...
This should only happen if SDL adds support for new buttons in the
future.
2022-01-08 18:28:21 +02:00
Andrei Alexeyev
4661c9609c
gamepad: support extra buttons
2022-01-08 18:22:44 +02:00
Andrei Alexeyev
c3382e6b05
gamepad: fix accidental gigantic array
2022-01-08 18:15:27 +02:00
Andrei Alexeyev
26b501249d
dynarray: fix dynarray_set_elements()
2022-01-03 13:30:07 +02:00
Andrei Alexeyev
9f19a66328
stage2: update background
2022-01-03 07:35:49 +02:00
Andrei Alexeyev
417471b784
stage4: update background
...
* Add parallax mapping for pebbles
* Optimize meshes
* Add bevels to bridge and stone path
* Misc shading adjustments
* Enable anisotropic filtering
* Revamp corridor lighting + add torches
* Improve water
2022-01-03 07:31:09 +02:00
Andrei Alexeyev
0f8975d4be
filewatch_inotify: remove debug spam
2022-01-02 09:00:43 +02:00
Andrei Alexeyev
a4cd93eed7
build: enable filewatch for developer builds only
2022-01-02 08:39:09 +02:00
Andrei Alexeyev
1f50ac45b0
resource: fix a bunch of threading bugs
2022-01-02 08:28:41 +02:00
Andrei Alexeyev
874593ccaf
resource/texture: support live reload
2022-01-02 08:28:41 +02:00
Andrei Alexeyev
d28de32b83
resource/sprite: support live reload
2022-01-02 08:28:41 +02:00
Andrei Alexeyev
b8ba3c331c
resource/shader_{object,program}: support live reload
2022-01-02 08:28:41 +02:00
Andrei Alexeyev
560391e58d
resource/material: support live reload
2022-01-02 08:28:41 +02:00
Andrei Alexeyev
8974f952f5
resource: groundwork for live reload support
2022-01-02 08:28:11 +02:00
Andrei Alexeyev
e629d927ba
filewatch: add filewatch module for basic file monitoring
...
Currently only an inotify-based backend is implemented.
2022-01-02 08:28:11 +02:00
Andrei Alexeyev
b39c9ba78e
resource: partial support for resource reloading
2022-01-02 08:28:02 +02:00
Andrei Alexeyev
1886e95a66
resource/font: fix calls to utf8_to_ucs4
2022-01-01 22:03:14 +02:00
Andrei Alexeyev
5dc3379361
shaderlib/glsl: allow specifying a custom file opener callback for glsl_load_source
2021-12-28 09:00:20 +02:00
Andrei Alexeyev
de4facc80a
hashtable: add APIs: write_(un)lock, get_ptr_unsafe(_prehashed), unset_unsafe
2021-12-28 09:00:20 +02:00
Andrei Alexeyev
638a7a8303
resource/texture_loader: load texture_post_load shader as a dependency
2021-12-28 09:00:20 +02:00
Andrei Alexeyev
e65a7f1b7f
resource/material: don't panic if failed to load
2021-12-28 09:00:20 +02:00
Alice D
491cf9d2ce
In-Game Character Profiles ( #327 )
2021-12-22 23:52:22 +02:00
Andrei Alexeyev
dc52836af7
gl33: enable sRGB conversion when rendering to sRGB textures
...
This matches the gles30 behavior, which can not be changed without
relying on extensions. It also lets us simplify the texture_post_load
shader.
2021-12-22 22:46:59 +02:00
Andrei Alexeyev
c448e3f584
shaderlib/cache: bump content size limit to 1MiB
...
Apparently SPIR-V can be beefy
2021-12-21 23:43:36 +02:00
Andrei Alexeyev
1853e5a56b
util/geometry: fix bad assumption in lineseg_closest_factor_impl
...
cabs2(a - b) may return 0 even if a != b, if the difference is
sufficiently small.
2021-12-21 23:11:02 +02:00
Andrei Alexeyev
0c22d53bb0
shaders/pbr: refactor PBR shaders for modularity
2021-12-17 14:42:14 +02:00
Andrei Alexeyev
0b776b0649
renderer: preload monotiny font in developer mode
2021-12-17 14:40:31 +02:00
Andrei Alexeyev
3ec14a7726
random: fix ubsan complaint
2021-12-17 14:40:28 +02:00
Andrei Alexeyev
b0578cad61
stagedraw: experimental boss zoom shader tweak
2021-12-17 14:40:25 +02:00
Andrei Alexeyev
fc50fcc468
scripts/mkbasis: --normal implies --blend-background #7f7fff
2021-12-17 14:40:21 +02:00
Andrei Alexeyev
e969bc1306
shaders/zbuf_fog: use proper alpha composition
2021-12-17 14:40:17 +02:00
Andrei Alexeyev
a55355be0d
shaders: cleanup zbuf_fog; add combined fog+tonemap shader
2021-12-17 14:40:04 +02:00
Andrei Alexeyev
9fb804bb36
external: update python-zipfile-zstd
2021-12-08 09:39:55 +02:00
Andrei Alexeyev
db69ba3acd
scripts/mkbasis: add --external-alpha-path, --blend-background, --multiply-alpha-blend-background
2021-11-24 09:36:41 +02:00
Andrei Alexeyev
2b05e024f4
scripts/mkbasis: check image size after preprocessing
2021-11-24 09:36:41 +02:00
Andrei Alexeyev
25e8baa8fd
hashtable: fix ht_unlock macro
2021-11-24 09:36:41 +02:00
Andrei Alexeyev
6879dcbc4b
hashtable: add int2ptr and ptr2ptr presets
2021-11-24 09:36:41 +02:00
Andrei Alexeyev
9f58b8a7c3
camcontrol: F8 to toggle mouse grab; ungrab on pause
2021-11-24 09:36:41 +02:00
Andrei Alexeyev
3ccc0273a9
common_tasks: fix common_easing_animate_vec4
2021-11-24 09:36:41 +02:00
Alice D
d6c1900f7b
small typos in main README
2021-11-12 11:27:45 -05:00
Alice D
29b0c70641
Controller Documentation ( #326 )
...
* controller docs
* add link to docs section in main readme
* change wording
2021-11-12 01:37:02 +02:00
Alice D
945a17301f
Math/complex numbers documentation ( #313 )
...
* math doc initial commit
* PR review
* re-add missing images, add new sections, address PR issues
* fix typos
* PR review and simplification
* add readme link
* remove unneccessary image
2021-11-12 01:37:02 +02:00
Alice D
c1b3758388
Build/Maintainer Docs ( #319 )
...
* stashing changes for build/maintainer docs
* more stashing
* fix header names
* add more TODO sections, cleanup
* PR additions
* move section up readme in doc
* more sections and clarification
* add build instructions for macOS/emscripten/Linux
* move certain sections, expand emscripten
* PR review
* PR changes, splitting off packaging into other README
* add missing line
* change ASan explanation
* PR changes
* move openssl to optional
2021-11-12 01:37:02 +02:00
Alice D
f527669cdb
Improved README. ( #303 )
...
* improved README, broken out from previous PR
2021-11-12 01:37:02 +02:00
Andrei Alexeyev
3e6abaa478
common_tasks: fix deprecations
2021-10-29 16:37:27 +03:00