Files
pspsdk/src/gu/sceGuFog.c
Carsten Teibes 7c6e46b487 Remove outdated svn ids, change url, fix permissions
Convert to unix line endings
2020-05-08 00:50:41 +02:00

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);
}