Files
pspsdk/src/gu/sceGuLightAtt.c
Francisco Javier Trujillo Mata da602c8e7a Improve sceGuLight* functions
2025-06-09 17:29:51 +02:00

19 lines
551 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 sceGuLightAtt(int light, float atten0, float atten1, float atten2)
{
int offset = light * 3;
sendCommandf(LIGHT0_CONSTANT_ATTEN + offset, atten0);
sendCommandf(LIGHT0_LINEAR_ATTEN + offset, atten1);
sendCommandf(LIGHT0_QUADRATIC_ATTEN + offset, atten2);
}