Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3058 Members - Latest Member: xynewhand

12. February 2012, 03:25:20 AM
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)PointLight class constructor bug?
Pages: [1]
Print
Author Topic: PointLight class constructor bug?  (Read 292 times)
naoky
Just dropped in

Offline Offline

Posts: 1


View Profile
« on: 21. December 2010, 05:53:02 AM »

Hello,

I happen to find an issue (perhaps a bug?) in the following PointLight class constructor:

Code:
public PointLight( float colorR, float colorG, float colorB, Node trackedNode, float attenuationConstant, float attenuationLinear, float attenuationQuadratic )
{
    this( true, colorR, colorG, colorB, trackedNode, attenuationLinear, attenuationLinear, attenuationQuadratic );
}

The 6th argument of 'this' call should be 'attenuationConstant', not 'attenuationLinear', I guess.

Yours,

naoky
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #1 on: 21. December 2010, 01:32:26 PM »

Thanks. I have fixed that.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic