<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.deltaworlds.com/index.php?action=history&amp;feed=atom&amp;title=Alpharef</id>
	<title>Alpharef - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.deltaworlds.com/index.php?action=history&amp;feed=atom&amp;title=Alpharef"/>
	<link rel="alternate" type="text/html" href="https://wiki.deltaworlds.com/index.php?title=Alpharef&amp;action=history"/>
	<updated>2026-05-03T17:35:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.deltaworlds.com/index.php?title=Alpharef&amp;diff=169&amp;oldid=prev</id>
		<title>Xan: Created page with &quot;{{feature|1158|5.1}} Differences between transparency rendering states The &#039;&#039;&#039;alpharef&#039;&#039;&#039; command specifies an object&#039;s transparency rendering state.  == Background == Alpha testing is used to improve performance when rasterizing objects that are nearly transparent. If the color data being rasterized is more opaque than the color at a given pixel, then the pixel is written. Otherwise, the rasterizer ignores the pixel altogether, saving the pr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.deltaworlds.com/index.php?title=Alpharef&amp;diff=169&amp;oldid=prev"/>
		<updated>2024-10-22T19:09:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{feature|1158|5.1}} &lt;a href=&quot;/index.php?title=File:Alpharef.gif&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:Alpharef.gif (page does not exist)&quot;&gt;frame|Differences between transparency rendering states&lt;/a&gt; The &amp;#039;&amp;#039;&amp;#039;alpharef&amp;#039;&amp;#039;&amp;#039; command specifies an object&amp;#039;s transparency rendering state.  == Background == Alpha testing is used to improve performance when rasterizing objects that are nearly transparent. If the color data being rasterized is more opaque than the color at a given pixel, then the pixel is written. Otherwise, the rasterizer ignores the pixel altogether, saving the pr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{feature|1158|5.1}}&lt;br /&gt;
[[Image:Alpharef.gif|frame|Differences between transparency rendering states]]&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;alpharef&amp;#039;&amp;#039;&amp;#039; command specifies an object&amp;#039;s transparency rendering state.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
Alpha testing is used to improve performance when rasterizing objects that are nearly transparent. If the color data being rasterized is more opaque than the color at a given pixel, then the pixel is written. Otherwise, the rasterizer ignores the pixel altogether, saving the processing required to blend the two colors. It is also used to cut off fuzzy edges of semi tranparent masks or semi transparent texures.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;alpharef&amp;#039;&amp;#039;&amp;#039; [&amp;#039;&amp;#039;state&amp;#039;&amp;#039;] [name=&amp;#039;&amp;#039;name&amp;#039;&amp;#039;] &amp;#039;&amp;#039;[global]&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
A [[Object scripting#Boolean|boolean]] value. If &amp;#039;&amp;#039;off&amp;#039;&amp;#039;, an object renders transparencies a full 100%, while &amp;#039;&amp;#039;on&amp;#039;&amp;#039; renders transparencies up to 80%, while the remaining 20% is cut-off and acts as fully transparent.&lt;br /&gt;
&lt;br /&gt;
===name===&lt;br /&gt;
As with most other commands, you may choose to specify the &amp;#039;&amp;#039;[[name]]&amp;#039;&amp;#039; of another object to apply the transparency rendering state to by using the optional name parameter.&lt;br /&gt;
&lt;br /&gt;
===global===&lt;br /&gt;
A command with the &amp;#039;&amp;#039;global&amp;#039;&amp;#039; argument appended will cause the object to change the transparency rendering state globally for all users who have the object in view. Without the global parameter, the object will change its state exclusively for the person who activates the trigger ([[bump]], [[activate]], [[adone]]).&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
 [[create]] alpharef off name=abc&lt;br /&gt;
Creates an object named &amp;#039;&amp;#039;abc&amp;#039;&amp;#039; that renders full transparency 100%.&lt;br /&gt;
&lt;br /&gt;
 create alpharef on&lt;br /&gt;
Creates an object that renders transparency up to 80%, cutting off the remaining 20% and making it fully transparent.&lt;br /&gt;
&lt;br /&gt;
{{Build}}&lt;br /&gt;
[[Category:Building commands]]&lt;br /&gt;
[[Category:5.1]]&lt;/div&gt;</summary>
		<author><name>Xan</name></author>
	</entry>
</feed>