mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-25 05:41:42 +02:00
Custom Fog Table index fix
This commit is contained in:
2
vendor/librw/src/dc/rwdc.cpp
vendored
2
vendor/librw/src/dc/rwdc.cpp
vendored
@@ -1218,7 +1218,7 @@ setRenderState(int32 state, void *pvalue)
|
||||
fogStart = RwCameraGetFogDistance(rwdcCam);
|
||||
float fogEnd = RwCameraGetFarClipPlane(rwdcCam);
|
||||
float fogIntensity[129];
|
||||
short idx = 0;
|
||||
uint8_t idx = 0;
|
||||
float startIntensity = (-fogStart) / (fogEnd - fogStart); //interpolate between start and end to get initial intensity
|
||||
float step = (1.0f - startIntensity) / 129; // we have 129 entries, create a step such that start + (step*129) = 1.0
|
||||
for(int i = 128; i >= 0; i--) {
|
||||
|
Reference in New Issue
Block a user