Ninja Library - Light Structure

NJS_LIGHT_CAL, *NJS_LIGHT_CAL_PTR

Structure that stores the results of internal light calculations

DEFINITION

typedef struct{ 
 Float  ratten; 
 Float  ipd; 
 Float  nrr,frr; 
 Float  cosi,cose; 
 Float  idev,odev; 
 Float  rate; 
 Float  intns; 
 Int  exp; 
 Int  reserve; 
 NJS_POINT3 lpnt; 
 NJS_VECTOR lvctr; 
 NJS_VECTOR lmvctr; 
 NJS_ARGB atten; 
 NJS_ARGB amb,dif,spc; 
 NJS_ARGB mamb,mdif,mspc; 
} NJS_LIGHT_CAL, *NJS_LIGHT_CAL_PTR; 

MEMBER

 ratten  Block light attenuation rate 
 ipd  Block light inner product results 
 nrr,frr  Distance limit value 
 cosi,cose  Angle limit value 
 idev,odev  Setting of coefficient for light ray distance calculation  
 rate  Attenuation rate 
 intns  Intensity value 
 exp  Exponent value 
 reserve  Reserved 
 lpnt  Light source position vector 
 lvctr  Light source direction vector 
 lmvctr  Block light vector 
 atten  Light source calculation buffer 
 amb,dif,spc  Light source calculation buffer 
 mamb,mdif,mspc  Light source calculation buffer 

DESCRIPTION

Structure that stores the results of internal light calculations.

NOTE

Manipulation of this structure at the user level is prohibited. Because this is a work area for the light source system, the members are not guaranteed. (The contents of the members are not necessarily as described.)

NJS_LIGHT_CAL, *NJS_LIGHT_CAL_PTR
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999