<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/MTA:Eir/functions/engineGetWorldRenderMode?action=history&amp;feed=atom</id>
	<title>MTA:Eir/functions/engineGetWorldRenderMode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/MTA:Eir/functions/engineGetWorldRenderMode?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/engineGetWorldRenderMode&amp;action=history"/>
	<updated>2026-05-21T08:31:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/engineGetWorldRenderMode&amp;diff=38227&amp;oldid=prev</id>
		<title>The GTA at 04:04, 11 January 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/engineGetWorldRenderMode&amp;diff=38227&amp;oldid=prev"/>
		<updated>2014-01-11T04:04:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:04, 11 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This function &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;modifies &lt;/del&gt;the rendering &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;order, &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rendering complexity and the render-states &lt;/del&gt;assigned to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;world entity rendering. It allows you to switch between rendering modes&lt;/del&gt;. Each has unique properties as to how entities are &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ordered for rendering and how their alpha is treated&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This function has been created &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fight &lt;/del&gt;rendering &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;artifacts on the GTA:SA world&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This function &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;returns &lt;/ins&gt;the rendering &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mode that &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GTA:SA is &lt;/ins&gt;assigned to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use by scripts&lt;/ins&gt;. Each &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;render mode &lt;/ins&gt;has unique properties as to how &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the world &lt;/ins&gt;entities are &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rendered&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use different render modes in different parts of the world &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;archive best quality &lt;/ins&gt;rendering.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-38226:rev-38227 --&gt;
&lt;/table&gt;</summary>
		<author><name>The GTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/engineGetWorldRenderMode&amp;diff=38226&amp;oldid=prev</id>
		<title>The GTA: Created page with &quot;__NOTOC__  This function modifies the rendering order, the rendering complexity and the render-states assigned to world entity rendering. It allows you to switch between renderin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/engineGetWorldRenderMode&amp;diff=38226&amp;oldid=prev"/>
		<updated>2014-01-11T04:03:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  This function modifies the rendering order, the rendering complexity and the render-states assigned to world entity rendering. It allows you to switch between renderin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function modifies the rendering order, the rendering complexity and the render-states assigned to world entity rendering. It allows you to switch between rendering modes. Each has unique properties as to how entities are ordered for rendering and how their alpha is treated. This function has been created to fight rendering artifacts on the GTA:SA world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string engineGetWorldRenderMode()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the '''rendering mode''' of the GTA:SA engine. Can be either '''original''', '''meshlocal_alphafix''' or '''scene_alphafix'''.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This snippet allows you to switch between rendering modes using the F3 key.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local renderModeSwitch =&lt;br /&gt;
{&lt;br /&gt;
    original = &amp;quot;meshlocal_alphafix&amp;quot;,&lt;br /&gt;
    meshlocal_alphafix = &amp;quot;scene_alphafix&amp;quot;,&lt;br /&gt;
    scene_alphafix = &amp;quot;original&amp;quot;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        local screenWidth, screenHeight = guiGetScreenSize();&lt;br /&gt;
        &lt;br /&gt;
        local currentMode = engineGetWorldRenderMode();&lt;br /&gt;
    &lt;br /&gt;
        dxDrawText( &amp;quot;Current RenderMode: &amp;quot; .. currentMode, screenWidth - 300, 5 );&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientKey&amp;quot;, root,&lt;br /&gt;
    function( key, state )&lt;br /&gt;
        if ( key == &amp;quot;F3&amp;quot; ) and ( state == true ) then&lt;br /&gt;
            engineSetWorldRenderMode( renderModeSwitch[ engineGetWorldRenderMode() ] );&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>The GTA</name></author>
	</entry>
</feed>