CurCoef# = Float(ColR+ColG+ColB)/Float(255+255+255) ;255+255+255 corresponds to whiteTweakCoef# = 1.0+(1.0-CurCoef)ColR = ColR*TweakCoef : ColG = ColG*TweakCoef : ColB = ColB*TweakCoef
I just found (yesterday) that it is possible to set a vertex color at more than 255,255,255, (not sure how high you can go)So this means that it is possible to have a "uniform light intensity", whatever the color.The formula is : Code: [Select]CurCoef# = Float(ColR+ColG+ColB)/Float(255+255+255) ;255+255+255 corresponds to whiteTweakCoef# = 1.0+(1.0-CurCoef)ColR = ColR*TweakCoef : ColG = ColG*TweakCoef : ColB = ColB*TweakCoefCompare the lighting intensity of the 1st screenshot to the lighting intensity of the 3rd screenshotQuite surprising... Not sure if this is documented somewhere, but i have never read about this anywhere.
you can also set the color to be negative which gives some really nice effects.