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
bitfs
bits
bob
bowser_1
bowser_2
bowser_3
castle_courtyard
castle_grounds
castle_inside Make painting textures replaceable by Lua 2025-10-05 12:12:14 +02:00
ccm
cotmc
ddd
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
lll
menu Some changes 2024-07-14 11:37:48 -04:00
pss
rr Lay some groundwork for more documentation, fix compilation error, put backgrounds into enum 2025-04-26 23:29:21 -04:00
sa
sl
ssl
thi Lay some groundwork for more documentation, fix compilation error, put backgrounds into enum 2025-04-26 23:29:21 -04:00
totwc
ttc
ttm Make painting textures replaceable by Lua 2025-10-05 12:12:14 +02:00
vcutm
wdw
wf
wmotr
course_defines.h
entry.c
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