Widget API ← Model < SetFogColor

Sets the color used for the fogging in the ModelFrame

myModel:SetFogColor(r, g, b);

r,g,b: number values between 0.0 and 1.0 for each red, green and blue.



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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.