radiance.c

ds2.1.1/lib/lib/props/radiance.c · 514 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

/*    /lib/props/radiance.c
 *    From the Dead Souls LPC Library
 *    Radiance is the capacity of one object to radiate light
 *    Created by Descartes of Borg 961221
 *    Version: @(#) radiance.c 1.1@(#)
 *    Last modified: 96/12/22
 */

private static int RadiantLight = 0;

int GetRadiantLight(int ambient) {
    if( ambient < 1 ) {
	return RadiantLight;
    }
    else {
	//return (RadiantLight * 20)/(ambient);
	return RadiantLight;
    }
}

int SetRadiantLight(int x) {
    return (RadiantLight = x);
}

Site Stats

Snippets: 1791
Codebases: 571