taisei/src
Andrei Alexeyev a5fd6fe5d9
Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240)
* WIP compressed textures, swizzles, sRGB sampling, ...

* refactor texture type info & fix random bugs

* fix preprocessing of sRGB textures

* handle y-flipped basis textures

* glcommon: better WebGL compat for compressed format detection

* missed WEBGL_compressed_texture_pvrtc

* implement compressed texture xcoding and uploading

* Add basis_universal submodule

* Reorganize texture loader code

Clean up some code
Isolate Basis Universal loader into a separate module

* Add wrapper script for encoding .basis textures

* basisu: honor custom metadata written by the mkbasis.py script

* mkbasis.py: add --incredibly-slow and --dry-run

* Move pixmap code from util/ to pixmap/

* Add an on-disk transcode cache for basis textures to speed up loads

* Compress texture cache with zlib

* Use readable format names for basisu cache filenames

* basisu: mip bias test code

* basisu: small caching cleanup

* add TAISEI_BASISU_MIP_BIAS env variable

* Improve OpenGL format matching heuristics

* Document considerations for compressed format priority

* Remove dead code

* Enable two forgotten formats, BC3_RGBA and ATC_RGBA

Also prefer BC7 over BC1/BC3

* Recognize GL_ANGLE_compressed_texture_etc for ETC2 textures

* Default depth buffers to 24-bit; remove ANGLE hack

* Fix glcommon_check_extension for GLES2/legacy gl

* Add renderer feature bit for texture swizzle masks

* glcommon: Fixup internal formats for GLES2

Sized internal formats are not allowed in GLES2

* Fix emscripten compile errors

* Update basis_universal

* remove more dead code

* revert irrelevant stage4 change

* shut up UBSan

* basisu: shut up some debug spam

* Add normalmap sampling helper to util.glslh

* basisu: add a gray-alpha mode

* mkbasis.py: Abort if image dimansions aren't multiples of 4

* Add basic Basis Universal encoding documentation (WIP)

* doc/basisu: Add paragraph about modes; minor tweaks

* basisu: workarounds for GL texture size requirements

* gles20: fix uncompressed sRGB formats

* Partial workaround for missing swizzles in gles2 and webgl

* remove invalid assertion

* New renderer API to expose glDrawBuffers-like functionality

* stagedraw: disable all color outputs for copy_depth pass

required for WebGL compatibility

* support GL_ANGLE_request_extension

* emscripten: include *.basis in gfx package

Also fix a potential problem when more than one .pkgdir is used to
construct emscripten packages

* Don't rely on emscripten runtime to enable webgl extensions
2020-08-15 14:51:12 +03:00
..
audio remove idiotic abort() from audio_sdl.c 2020-08-11 13:22:05 +03:00
dialog Fix small typo in Reimu Stage 2 dialog (#238) 2020-06-20 04:38:56 +03:00
eventloop Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
menu Add gameover BGM by RickyRister 2020-06-24 20:51:00 +03:00
pch make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
pixmap Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
plrmodes Extended enemy properties 2020-07-09 15:25:57 +03:00
projectile_prototypes Add Reimu Hakurei as a playable character (#106) 2018-08-11 22:13:48 +03:00
renderer Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
resource Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
rwops Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
stages Extended enemy properties 2020-07-09 15:25:57 +03:00
util Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
vfs Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
aniplayer.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
aniplayer.h Make animation_get_frame never return transient sprites 2020-03-04 22:26:47 +02:00
arch_switch.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
arch_switch.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
assert.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
boss.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
boss.h boss: disable hurtbox when dying or fleeing 2020-06-01 14:01:00 +03:00
cli.c Separate StageInfo-related APIs from game-stage code (#227) 2020-05-16 23:41:54 +03:00
cli.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
color.c Get rid of custom min() and max() functions 2020-05-09 09:16:07 +03:00
color.h add attr_returns_allocated for functions that allocate new objects 2019-08-04 01:29:41 +03:00
common_tasks.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
common_tasks.h use custom ents for Reimu; cleanup Marisa; etc. 2020-04-06 04:34:55 +03:00
config.c Update email 2020-04-02 18:40:55 +02:00
config.h Improve high-DPI handling (#213) 2020-04-16 19:25:54 +03:00
coroutine.c Disable coroutine stack usage tracking on windows 2020-07-31 17:23:48 +03:00
coroutine.h Add WAIT_EVENT_ONCE(event) 2020-04-30 21:49:10 +03:00
credits.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
credits.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
dialog.c Establish more-or-less consistent resource getter functions 2020-06-09 04:33:22 +03:00
dialog.h New dialogue system powered by coroutines 2020-03-04 22:26:50 +02:00
difficulty.c wip stage 1 progress 2020-03-04 21:52:53 +02:00
difficulty.h wip stage 1 progress 2020-03-04 21:52:53 +02:00
drawlayers.inc.h WIP proj draw rule revamp; YoumuB revamp; misc changes; giant mess 2020-03-04 22:26:45 +02:00
dynarray.c Add generic type-safe facility for dynamic arrays (#207) 2020-04-05 05:51:00 +03:00
dynarray.h Add generic type-safe facility for dynamic arrays (#207) 2020-04-05 05:51:00 +03:00
ending.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
ending.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
enemy.c Extended enemy properties 2020-07-09 15:25:57 +03:00
enemy.h Extended enemy properties 2020-07-09 15:25:57 +03:00
entity.c Refactor entity system (#214) 2020-04-17 10:18:53 +03:00
entity.h Refactor entity system (#214) 2020-04-17 10:18:53 +03:00
events.c Various fixes & improvements for concurrent loading (#235) 2020-06-09 03:01:53 +03:00
events.h Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
framerate.c Get rid of float32 and float64 typedefs 2020-05-09 09:25:38 +03:00
framerate.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
gamepad.c random cleanup 2019-11-08 20:53:43 +02:00
gamepad.h Don't redefine standard complex macro; use a new cmplx typedef 2019-11-22 05:38:48 +02:00
global.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
global.h Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
hashtable.c Implement Robin Hood hashing (#200) 2020-03-17 10:09:49 +02:00
hashtable.h Implement Robin Hood hashing (#200) 2020-03-17 10:09:49 +02:00
hashtable.inc.h Various fixes & improvements for concurrent loading (#235) 2020-06-09 03:01:53 +03:00
hashtable_incproxy.inc.h Text rendering rewrite and optimizations; some refactoring (#129) 2018-06-30 00:36:51 +03:00
hashtable_predefs.inc.h Implement Robin Hood hashing (#200) 2020-03-17 10:09:49 +02:00
hirestime.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
hirestime.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
item.c Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
item.h Refactor entity system (#214) 2020-04-17 10:18:53 +03:00
known_entities.h player: remove "focus" property and "focus_circle" 2020-04-23 00:17:40 +03:00
laser.c lasers: dedicated fragment shader, simplify vertex shader 2020-08-01 19:02:05 +03:00
laser.h Refactor entity system (#214) 2020-04-17 10:18:53 +03:00
list.c Add alist_merge_tail to efficiently merge two lists 2020-03-31 22:16:10 +03:00
list.h Add alist_merge_tail to efficiently merge two lists 2020-03-31 22:16:10 +03:00
log.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
log.h Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
main.c Various fixes & improvements for concurrent loading (#235) 2020-06-09 03:01:53 +03:00
meson.build Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
move.c fixup some post-rebase chaos 2020-03-04 22:26:45 +02:00
move.h add move_asymptotic_halflife 2020-03-04 22:26:52 +02:00
objectpool.c use INLINE for some more functions 2019-08-03 23:42:58 +03:00
objectpool.h add attr_returns_allocated for functions that allocate new objects 2019-08-04 01:29:41 +03:00
objectpool_fake.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
player.c Extended enemy properties 2020-07-09 15:25:57 +03:00
player.h Purge some dead code 2020-04-28 00:13:15 +03:00
plrmodes.c Establish more-or-less consistent resource getter functions 2020-06-09 04:33:22 +03:00
plrmodes.h Purge some dead code 2020-04-28 00:13:15 +03:00
portrait.c Establish more-or-less consistent resource getter functions 2020-06-09 04:33:22 +03:00
portrait.h bunch of portrait and dialog-related shuffling around 2020-04-27 22:59:16 +03:00
progress.c Add gameover BGM by RickyRister 2020-06-24 20:51:00 +03:00
progress.h Add gameover BGM by RickyRister 2020-06-24 20:51:00 +03:00
projectile.c Extended enemy properties 2020-07-09 15:25:57 +03:00
projectile.h Rename cmplx32 into cmplxf for better consistency 2020-05-09 09:31:20 +03:00
projectile_prototypes.c Establish more-or-less consistent resource getter functions 2020-06-09 04:33:22 +03:00
random.c fix non-developer build with assertions 2020-03-08 14:17:26 +02:00
random.h Enable rng deprecation warnings 2020-05-20 20:47:22 +03:00
refs.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
refs.h Initial coroutine/task system implementation 2020-03-04 21:50:22 +02:00
replay.c Separate StageInfo-related APIs from game-stage code (#227) 2020-05-16 23:41:54 +03:00
replay.h Player Statistics (#219) 2020-04-26 22:27:13 +03:00
stage.c Add gameover BGM by RickyRister 2020-06-24 20:51:00 +03:00
stage.h Audio rewrite (#236) 2020-06-22 17:41:03 +03:00
stagedraw.c Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
stagedraw.h Add stage_add_static_framebuffer 2020-04-25 03:04:33 +03:00
stageinfo.c Split stage1 into multiple files (#228) 2020-05-18 22:44:11 +03:00
stageinfo.h Separate StageInfo-related APIs from game-stage code (#227) 2020-05-16 23:41:54 +03:00
stageobjects.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
stageobjects.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
stagetext.c Establish more-or-less consistent resource getter functions 2020-06-09 04:33:22 +03:00
stagetext.h Player Statistics (#219) 2020-04-26 22:27:13 +03:00
stageutils.c clear up some ancient 3D confusion 2020-02-22 08:56:41 +02:00
stageutils.h clear up some ancient 3D confusion 2020-02-22 08:56:41 +02:00
stats.c bunch of portrait and dialog-related shuffling around 2020-04-27 22:59:16 +03:00
stats.h Player Statistics (#219) 2020-04-26 22:27:13 +03:00
taisei.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
taisei.manifest Improve high-DPI handling (#213) 2020-04-16 19:25:54 +03:00
taisei.rc.in windows: detect intel's shitty driver and fall back to ANGLE 2019-09-21 16:46:22 +03:00
taskmanager.c Various fixes & improvements for concurrent loading (#235) 2020-06-09 03:01:53 +03:00
taskmanager.h Various fixes & improvements for concurrent loading (#235) 2020-06-09 03:01:53 +03:00
transition.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
transition.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
util.h Add generic type-safe facility for dynamic arrays (#207) 2020-04-05 05:51:00 +03:00
version.c Don't redefine standard complex macro; use a new cmplx typedef 2019-11-22 05:38:48 +02:00
version.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
version_auto.c.in make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
video.c fix global postprocessing framebuffers not reacting to resizes 2020-04-24 00:11:54 +03:00
video.h Improve high-DPI handling (#213) 2020-04-16 19:25:54 +03:00
video_postprocess.c New system to manage auto-resized framebuffers 2019-08-25 02:52:39 +03:00
video_postprocess.h Support full-screen custom postprocessing 2019-08-09 21:42:04 +03:00