Re: pfLightSource
John Rohlf (jrohlf++at++tubes)
Wed, 25 Jan 95 17:43:22 PST
>
> 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)
>
>
Make sure that w is 1.0 since spotlights require that the light
be local.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:54 PDT