Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this a graphical glitch? Why is the ambient so bright?

Asked by 10 years ago

I had a script...

game.Lighting.OutdoorAmbient = Color3.new(50,50,50)

And when I played it, it was so bright it burned my eyes. What was going on?

I had to do this:

game.Lighting.OutdoorAmbient = Color3.new(.25,.25,.25)

Which did exactly the same as

game.Lighting.OutdoorAmbient = Color3.new(0,0,0)

I've noticed this happening for a while but don't know why. What's going on?

1 answer

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

Color3.new's arguments range from 0 to 1, not 0 to 255 like shows in the properties menu.

(so you should use Color3.new(50/255, 50/255, 50/255) or almost exactly Color3.new(.2, .2, .2))


When you give it big numbers, it does odd things, usually resulting in one of the very bright colors (with at least one of r, g, b 255/255)


There should be a difference between 0 and 0.25, though. If you don't have GlobalShadows enabled, then OutdoorAmbient isn't used (and only Ambient is).

Ad

Answer this question