Model:SetFogColor

From Warcraft Wiki
Jump to navigation Jump to search

Sets the color used for the fogging in the model frame.

Model:SetFogColor(colorR, colorG, colorB [, a])

Arguments

colorR
number [0.0 - 1.0]
colorG
number [0.0 - 1.0]
colorB
number [0.0 - 1.0]
a
number? [0.0 - 1.0]

Details

  • Immediately after calling SetFogColor() your lighting will probably be messed up. You can fix this by adjusting the clipping planes, calling SetFogNear() and SetFogFar()
  • Do not use SetFogColor if you want to change the color that your mesh is rendered in! Instead use SetLight() for those purposes.