sm64coopdx/levels
Agent X 19a429dbe5
Add built-in preset screen shader effects configurable through Lua (#1217)
* C++ lighting engine

Runs better using my new system for storing and iterating through lights.

I removed the lighting ctx profiler because after I've realized its very inaccurate and was probably programmed incorrectly from the start. Although I remember it working fine before and not constantly showing 20 ms or higher when I'm in an extremely simple level with extremely simple lights and the FPS is way too high for it to be taking 20 ms.

* Whoops

* Make some optimizations

* Fix small bug with LE inside graphics vertex function

I also brought back the lighting profiler because it's better than nothing.

* Some optimizations

* Cache active lights and 4 lights per vertex limit

Less branching and less iterating with the limit

* Screen shader effects for Lua [OpenGL]

Hue, saturation, brightness, contrast, exposure, dithering, posterization

Global = usually an object in the world
Non global = usually a screen element

Also:
* Changed skyboxes to use environment color instead of vertex color, visually identical
* Changed hud head texture to be non global
* changed power meter to be non global
* changed sparkles to be global
* changed some BBH vertex types to global

OpenGL renderer supported only for now.

* Add default values and better function names

Also fixed sizes in reset function

* Add scanlines effect

* Add global enabled function

* Fix some default values

* Hopefully fix white sparkles

* Whoops

* Address review

* Update function names

* Fix shader crash

* Address reviews
2026-05-11 15:59:48 -04:00
..
bbh Add built-in preset screen shader effects configurable through Lua (#1217) 2026-05-11 15:59:48 -04:00
bitdw extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bitfs extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bits extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bob extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bowser_1 extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bowser_2 extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bowser_3 extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
castle_courtyard extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
castle_grounds extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
castle_inside Make painting textures replaceable by Lua 2025-10-05 12:12:14 +02:00
ccm extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
cotmc extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ddd extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ending Make ending set level to LEVEL_ENDING 2024-12-15 20:24:00 -05:00
hmc Make painting textures replaceable by Lua 2025-10-05 12:12:14 +02:00
intro Disable file select on OG title screen (accessible with special_warp(SPECIAL_WARP_TITLE)) 2024-11-12 19:01:02 -05:00
jrb extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
lll extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
menu Some changes 2024-07-14 11:37:48 -04:00
pss extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
rr Lay some groundwork for more documentation, fix compilation error, put backgrounds into enum 2025-04-26 23:29:21 -04:00
sa extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
sl extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ssl extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
thi Lay some groundwork for more documentation, fix compilation error, put backgrounds into enum 2025-04-26 23:29:21 -04:00
totwc extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ttc extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ttm Make painting textures replaceable by Lua 2025-10-05 12:12:14 +02:00
vcutm extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
wdw extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
wf extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
wmotr extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
course_defines.h
entry.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
entry.h
level_defines.h
level_headers.h.in
level_rules.mk
scripts.c Some changes 2024-07-14 11:37:48 -04:00
scripts.h