Change star rendering to be more optimal on modern GPUs.

Use vertex colors and a single large draw.
This commit is contained in:
PJB3005
2026-04-10 19:19:12 +02:00
parent 50450d8e6f
commit bda441e9d7
2 changed files with 63 additions and 4 deletions
+11
View File
@@ -217,4 +217,15 @@ using std::isnan;
#define CRASH(msg, ...) OSPanic(__FILE__, __LINE__, "%s", msg, ##__VA_ARGS__)
// Some basic macros that are more convenient than putting down #if blocks for one-line changes.
#if TARGET_PC
#define IF_DUSK(statement) statement
#define IF_NOT_DUSK(statement)
#define DUSK_IF_ELSE(dusk, orig) dusk
#else
#define IF_DUSK(statement)
#define IF_NOT_DUSK(statement) statement
#define DUSK_IF_ELSE(dusk, orig) orig
#endif
#endif