When LightStyle is selected as IsSpot, TGLightSource.SpotCutOff has not effect.
Tested with last svn revision 5896 and 6014
wanted to say: "Tested with svn revision 5896 and 6014"
I just fixed it myself ... Was simpler than it seemed
Attached zip with glscene.pas fixed.
SpotCutoff fix for rev 6014
Fixed procedure "SetupLights"
In line 7848: GL.Lightfv(GL_LIGHT0 + FLightID, GL_SPOT_CUTOFF, @FSpotCutOff);
if if LightStyle = lsSpot then
GL.Lightfv(GL_LIGHT0 + FLightID, GL_SPOT_CUTOFF,@P180SpotCutOff );
I fixed bug in GLState.pas instead of your patch. Thanks.
Fixed in rev 6016
This issue has been fixed in the Developers CVS.
This means it will take a few hours before it is finally
available on public CVS, and it will possibly take some time
until it's available on a public (snapshot, alpha, beta or
Actually we use SVN not CVS, change comes almost instantly.
Repository is common for all. Releases are issued a couple in year.