mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Merge branch 'port' of https://github.com/fgsfdsfgs/perfect_dark into port-net
This commit is contained in:
commit
c16aa70a66
2 files changed
+5
-1
No files matched your search
@@ -1540,7 +1540,7 @@ static void gfx_sp_tri1(uint8_t vtx1_idx, uint8_t vtx2_idx, uint8_t vtx3_idx, bo
|
||||
// HACK: very roughly eyeballed based on the carpets in Defection
|
||||
// this is actually supposed to be calculated per pixel
|
||||
const float distance_frac = std::max(0.f, std::min(w / 1024.f, 1.f));
|
||||
tmp.r = tmp.g = tmp.b = tmp.a = (0.65f + distance_frac * 0.35f) * 255.f;
|
||||
tmp.r = tmp.g = tmp.b = tmp.a = (0.7f + distance_frac * 0.3f) * 255.f;
|
||||
} else {
|
||||
tmp.r = tmp.g = tmp.b = tmp.a = 255;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA;
|
||||
// winapi also provides a yield macro
|
||||
#define DO_YIELD() YieldProcessor()
|
||||
|
||||
// ask system for high performance GPU, if any
|
||||
__attribute__((dllexport)) u32 NvOptimusEnablement = 1;
|
||||
__attribute__((dllexport)) u32 AmdPowerXpressRequestHighPerformance = 1;
|
||||
|
||||
#else
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
|
||||
Reference in new issue
Block a user