Sharon Clay (src++at++rose.engr.sgi.com)
Wed, 25 Feb 1998 10:15:03 -0800
-> pfEnable( PFEN_FOG );
-> pfOverride( PFSTATE_FOG | PFSTATE_ENFOG, PF_ON );
->
->--
->
->Simulation loop:
->
-> pfSinCos( 120 * pfGetTime(), &sin, &cos );
-> Shared->fog->setOffsets( 0.0, 30.0 * sin );
->
->--
->
->Channel drawcallback:
->
-> channel->clear();
-> Shared->fog->apply();
Sorry, even though this is the fog with which you have overriden,
the PFSTATE_FOG override prevents _any_ changes to the fog so your fog
change will not be applied.
-> pfDraw();
->
->--
->
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (650) 933 - 1002 FAX: (650) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:53 PDT