Torres Mario 678-3280 AMSRL-BE-M (mtorres++at++arl.mil)
Mon, 28 Aug 95 16:04:34 MDT
pfNodeTravFuncs(Apache->dcs , PFTRAV_CULL,
apachePreCull, apachePostCull);
long apachePreDraw(pfTraverser *trav, void *data)
{
oldtod=ViewState->tod;
ViewState->tod=0.00f;
pfLightAmbient(ViewState->sun, 0.0f, 0.0f, 0.0f);
pfLightColor(ViewState->sun, ViewState->tod, ViewState->tod,
ViewState->tod);
}
long apachePostDraw(pfTraverser *trav, void *data)
{
ViewState->tod=oldtod;
pfLightAmbient(ViewState->sun, 0.2f*ViewState->tod,
0.2f*ViewState->tod,
0.2f*ViewState->tod);
pfLightColor(ViewState->sun, ViewState->tod, ViewState->tod,
ViewState->tod);
}
The apache model is a multigen model, and I would expect that the model
would be dark as if with no light and then the rest of the terrain would
appear with the light.
Also, is updating the apache DCS in the preDraw function a good or bad
practice?
All +comments welcomed,
Mario T.
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:50 PDT