#include <surface_light_grid.h>
Public Member Functions | |
| void | serial (NLMISC::IStream &f) |
Data Fields | |
| uint8 | Light [NumLightPerCorner] |
| Light that influence this point. 0xFF if none. if Light[i]==0xFF, then Light[j] with j>i is disabled too. | |
| uint8 | LocalAmbientId |
| uint8 | SunContribution |
| Contribution of Sun. | |
|
|
Definition at line 76 of file surface_light_grid.h. References NLMISC::IStream::isReading(), nlassert, NLMISC::IStream::serial(), NLMISC::IStream::serialVersion(), and uint.
00077 {
00078 uint ver= f.serialVersion(1);
00079 nlassert(NumLightPerCorner==2);
00080
00081 if(ver>=1)
00082 {
00083 f.serial(LocalAmbientId);
00084 }
00085 else if(f.isReading())
00086 {
00087 LocalAmbientId= 0xFF;
00088 }
00089 f.serial(SunContribution);
00090 f.serial(Light[0]);
00091 f.serial(Light[1]);
00092 }
|
|
|
Light that influence this point. 0xFF if none. if Light[i]==0xFF, then Light[j] with j>i is disabled too.
Definition at line 70 of file surface_light_grid.h. Referenced by NL3D::CIGSurfaceLight::build(), NL3D::CInstanceLighter::dilateLightingOnSurfaceCells(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CInstanceLighter::light(), and NL3D::CInstanceLighter::processIGPointLightRT(). |
|
|
Id of the ambiant Light to take for this corner. Ambient light are stored too in ig->getPointLigths() If 0xFF => take Ambient of the sun. Definition at line 74 of file surface_light_grid.h. Referenced by NL3D::CIGSurfaceLight::build(), NL3D::CInstanceLighter::dilateLightingOnSurfaceCells(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CInstanceLighter::light(), and NL3D::CInstanceLighter::processIGPointLightRT(). |
|
|
Contribution of Sun.
Definition at line 68 of file surface_light_grid.h. Referenced by NL3D::CInstanceLighter::computeSunContribution(), NL3D::CInstanceLighter::dilateLightingOnSurfaceCells(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), and NL3D::CInstanceLighter::light(). |
1.3.6