mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-12 00:36:50 +00:00
19 lines
551 B
C
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);
|
|
}
|