sm64coopdx/bin
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
..
eu Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00
bbh_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bitdw_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bitfs_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
bits_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
cave.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ccm_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
cloud_floor_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
clouds_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
custom_font.c Update custom_font.c (#956) 2025-10-17 00:30:26 +02:00
custom_textures.c Show Ping option (#889) 2025-07-29 22:39:36 +10:00
debug_level_select.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
effect.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
fire.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
generic.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
grass.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
inside.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
machine.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
mountain.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
outside.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
segment2.c Add built-in preset screen shader effects configurable through Lua (#1217) 2026-05-11 15:59:48 -04:00
sky.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
snow.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
spooky.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
ssl_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
title_screen_bg.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
water.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
water_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
wdw_skybox.c extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00