mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 11:34:08 +00:00
use water color and new water texture
This commit is contained in:
parent
f5c0bf3b60
commit
dbbf390983
2 changed files with 10 additions and 8 deletions
|
@ -36,9 +36,6 @@ RpAtomic *CWaterLevel::ms_pWavyAtomic;
|
|||
RpGeometry *CWaterLevel::apGeomArray[8];
|
||||
int16 CWaterLevel::nGeomUsed;
|
||||
|
||||
//RwTexture *gpWaterTex;
|
||||
//RwRaster *gpWaterRaster;
|
||||
|
||||
RwTexture *gpWaterTex;
|
||||
RwRaster *gpWaterRaster;
|
||||
|
||||
|
@ -84,7 +81,7 @@ CWaterLevel::Initialise(char *pWaterDat)
|
|||
CTxdStore::SetCurrentTxd(slot);
|
||||
|
||||
if ( gpWaterTex == NULL )
|
||||
gpWaterTex = RwTextureRead("water_old", NULL);
|
||||
gpWaterTex = RwTextureRead("waterclear256", NULL);
|
||||
gpWaterRaster = RwTextureGetRaster(gpWaterTex);
|
||||
|
||||
CTxdStore::PopCurrentTxd();
|
||||
|
@ -364,10 +361,10 @@ CWaterLevel::RenderWater()
|
|||
WavesCalculatedThisFrame = false;
|
||||
|
||||
RwRGBA color = { 0, 0, 0, 255 };
|
||||
|
||||
color.red = uint32((CTimeCycle::GetDirectionalRed() * 0.5f + CTimeCycle::GetAmbientRed() ) * 255.0f);
|
||||
color.green = uint32((CTimeCycle::GetDirectionalGreen() * 0.5f + CTimeCycle::GetAmbientGreen()) * 255.0f);
|
||||
color.blue = uint32((CTimeCycle::GetDirectionalBlue() * 0.5f + CTimeCycle::GetAmbientBlue() ) * 255.0f);
|
||||
|
||||
color.red = CTimeCycle::GetWaterRed();
|
||||
color.green = CTimeCycle::GetWaterGreen();
|
||||
color.blue = CTimeCycle::GetWaterBlue();
|
||||
|
||||
TempBufferVerticesStored = 0;
|
||||
TempBufferIndicesStored = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue