pfLightSource

New Message Reply Date view Thread view Subject view Author view

Darin C. Partridge (darin++at++paradox.idec.sdl.usu.edu)
Wed, 25 Jan 1995 17:12:13 -0700


I've been trying to get a spot light to work in a modified perfly, the
code goes like this:

light = pfNewLSource( );
pfLightPos( light, x, y, z, w );
pfLightColor( light, r, g, b );
pfSpotLightDir( light, dx, dy, dz );
pfSpotLightCone( light, 1.0f, ang );
pfAddChild( node, light );

but no spotlight (I'm sure x,y,z,dx,dy,dz are correct).
when I add pfLightAmbient( light, r, g, b ); their
is ambient light all around but I can't seem to get
a spot light to work.

Thanks for any help,
Darin
(darin++at++chaos.idec.sdl.usu.edu)


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.