<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/MTA:Eir/functions/setWorldDualAlphaRenderingEnabled?action=history&amp;feed=atom</id>
	<title>MTA:Eir/functions/setWorldDualAlphaRenderingEnabled - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/MTA:Eir/functions/setWorldDualAlphaRenderingEnabled?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/setWorldDualAlphaRenderingEnabled&amp;action=history"/>
	<updated>2026-04-07T19:04:35Z</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/setWorldDualAlphaRenderingEnabled&amp;diff=37873&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. If world dual alpha rendering is enabled...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=MTA:Eir/functions/setWorldDualAlphaRenderingEnabled&amp;diff=37873&amp;oldid=prev"/>
		<updated>2013-12-11T09:36:02Z</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. If world dual alpha rendering is enabled...&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. If world dual alpha rendering is enabled, first all opaque pixels of entities are rendered and then the alpha pixels, depending on whether they are closer to the screen or not. Otherwise the original rendering method is used which does not use two-pass depth layer rendering.&lt;br /&gt;
&lt;br /&gt;
By enabling world dual alpha rendering, rendering artifacts related to alpha such as seeing through solid surfaces are avoided. By default, it is disabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setWorldDualAlphaRenderingEnabled ( bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''' if enabled is passed as valid boolean, '''false''' otherwise.&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 should fix many annoying alpha issues on the main GTA:SA world.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
setWorldDualAlphaRenderingEnabled( true );&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>