mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
22 lines
511 B
C
22 lines
511 B
C
/*
|
|
* PSP Software Development Kit - https://github.com/pspdev
|
|
* -----------------------------------------------------------------------
|
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
|
*
|
|
* Copyright (c) 2005 Jesper Svennevid
|
|
*/
|
|
|
|
#include "guInternal.h"
|
|
|
|
void sceGuFog(float near, float far, unsigned int color)
|
|
{
|
|
float distance = far-near;
|
|
|
|
if (distance)
|
|
distance = 1.0f / distance;
|
|
|
|
sendCommandi(207,color & 0xffffff);
|
|
sendCommandf(205,far);
|
|
sendCommandf(206,distance);
|
|
}
|