WoW:API Model SetFogColor: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API Model SetFogColor to API Model SetFogColor without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''SetFogColor''' ''-Documentation by DerGhulbus-''</center>
{{widgetmethod}}


Sets the color used for the fogging in the ModelFrame
Sets the color used for the fogging in the ModelFrame
Line 21: Line 21:


Do ''not'' use SetFogColor if you want to change the color that your mesh is rendered in! Instead use [[API Model SetLight|SetLight()]] for those purposes.
Do ''not'' use SetFogColor if you want to change the color that your mesh is rendered in! Instead use [[API Model SetLight|SetLight()]] for those purposes.
----
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

Widget API ← Model < SetFogColor

Sets the color used for the fogging in the ModelFrame

myModel:SetFogColor(r, g, b);

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

Returns
nil

Description

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.