<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.simswiki.info/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=ShaderSWVSsimmaterials</id>
		<title>ShaderSWVSsimmaterials - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=ShaderSWVSsimmaterials"/>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;action=history"/>
		<updated>2026-09-04T09:34:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18884&amp;oldid=prev</id>
		<title>Niol: EP5-SS</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18884&amp;oldid=prev"/>
				<updated>2007-07-10T13:03:39Z</updated>
		
		<summary type="html">&lt;p&gt;EP5-SS&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:03, 10 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;EP4&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;PETS&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EP5&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18883&amp;oldid=prev</id>
		<title>Niol: EP4-PETS</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18883&amp;oldid=prev"/>
				<updated>2007-07-10T13:02:47Z</updated>
		
		<summary type="html">&lt;p&gt;EP4-PETS&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:02, 10 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;EP3&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OFB&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EP4&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;PETS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  endif&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  endif&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  seti&amp;#160; layerNumber ($stdMatLayer	* &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;8	&lt;/del&gt;+ ($alphaBlendingOn ? &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7 &lt;/del&gt;: 0))&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  seti&amp;#160; layerNumber ($stdMatLayer	* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;18	&lt;/ins&gt;+ ($alphaBlendingOn ? &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;17 &lt;/ins&gt;: 0))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  ##trace &amp;quot;Dx9 sim standard: $currentMaterialName, layer : $layerNumber alphaBlend: $alphaBlendingOn&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  ##trace &amp;quot;Dx9 sim standard: $currentMaterialName, layer : $layerNumber alphaBlend: $alphaBlendingOn&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 183:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 183:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end #end the pass&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end #end the pass&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if (viewerRenderType = $kRenderTypeThumbnail)			&amp;#160;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  pass&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; shaderProgram -target vertexProgram -method link&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  create SimMaterialTransformSetupSWVS(false)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;			&amp;#160; &amp;#160; &amp;#160; &amp;#160;  alphaBlend srcFactor(srcAlpha) add dstFactor(one)								&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;			&amp;#160; &amp;#160; &amp;#160; &amp;#160;  stage&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; texture	$stdMatBaseTextureName&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; colorScalar (0, 0, 0, 1)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; textureBlend select(colorScalar) select(texture)&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  end #end the pass&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; endif&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  end # end shader&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  end # end shader&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18882&amp;oldid=prev</id>
		<title>Niol: EP3-OFB</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18882&amp;oldid=prev"/>
				<updated>2007-07-10T13:01:54Z</updated>
		
		<summary type="html">&lt;p&gt;EP3-OFB&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:01, 10 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;EP2&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;NL&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EP3&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OFB&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18881&amp;oldid=prev</id>
		<title>Niol: EP2-NL</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18881&amp;oldid=prev"/>
				<updated>2007-07-10T13:01:00Z</updated>
		
		<summary type="html">&lt;p&gt;EP2-NL&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:01, 10 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;EP1&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;UNI&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EP2&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;NL&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18880&amp;oldid=prev</id>
		<title>Niol: EP01-UNI</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18880&amp;oldid=prev"/>
				<updated>2007-07-10T13:00:11Z</updated>
		
		<summary type="html">&lt;p&gt;EP01-UNI&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:00, 10 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;EP0&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TS2&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EP1&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;UNI&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0xCD7FE87A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;0x1C0532FA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18879&amp;oldid=prev</id>
		<title>Niol: EP0-TS2</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSWVSsimmaterials&amp;diff=18879&amp;oldid=prev"/>
				<updated>2007-07-10T12:58:52Z</updated>
		
		<summary type="html">&lt;p&gt;EP0-TS2&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
EP0-TS2&lt;br /&gt;
0xCD7FE87A&lt;br /&gt;
0x1C0532FA&lt;br /&gt;
0x1C995659&lt;br /&gt;
0xFF24BC47&lt;br /&gt;
# swvssimmaterials&lt;br /&gt;
&lt;br /&gt;
define SimMaterialTransformSetupSWVS(eyeShifterEnable)&lt;br /&gt;
&lt;br /&gt;
	setb transformNormals true&lt;br /&gt;
&lt;br /&gt;
	create BindsForSoftwareVSTransforms($doSkinning $doMorphing)&lt;br /&gt;
	set lightingMode $kFullLighting&lt;br /&gt;
		&lt;br /&gt;
	if ($totalLights = 0)&lt;br /&gt;
		set lightingMode $kAmbientOnly&lt;br /&gt;
		setb transformNormals false&lt;br /&gt;
	endif&lt;br /&gt;
	&lt;br /&gt;
			&lt;br /&gt;
	create BindsForLighting($lightingMode)&lt;br /&gt;
&lt;br /&gt;
	if (&amp;amp;eyeShifterEnable)&lt;br /&gt;
		bindConstants 7 -bindingID immediateData -data @eyeAnimation -constantType float&lt;br /&gt;
	endif&lt;br /&gt;
&lt;br /&gt;
	# skinning can be turned off for some sim cases, like CAS, so I have to honor this setting.&lt;br /&gt;
		&lt;br /&gt;
	create TransformFragments($doSkinning $stdMatReduceBoneWeights true $doMorphing $numPosMorphs $numNormMorphs $transformNormals 2_x)&lt;br /&gt;
	&lt;br /&gt;
	# hasTangents is a good substitute for a bumpmapping flag on the sim materials, since it always tends to be on.&lt;br /&gt;
	# create a tangent space matrix to transform our light vectors.&lt;br /&gt;
		&lt;br /&gt;
	if ($totalLights &amp;gt; 0)&lt;br /&gt;
		create StandardLightFragmentsSWVS(false 2_x)&lt;br /&gt;
	else&lt;br /&gt;
		set stdMatEnvCubeMode none&lt;br /&gt;
		shaderFragment AmbientLighting2_x&lt;br /&gt;
	endif&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	if (&amp;amp;eyeShifterEnable)&lt;br /&gt;
		shaderFragment EyeShifterTexGen2_x&lt;br /&gt;
	else &lt;br /&gt;
	&lt;br /&gt;
		if (strcmp(&amp;quot;${stdMatEnvCubeMode}&amp;quot;, &amp;quot;none&amp;quot;) = 0)&lt;br /&gt;
			if ($hasTexcoords)&lt;br /&gt;
				shaderFragment NoTextureMagic2_x&lt;br /&gt;
			endif&lt;br /&gt;
			&lt;br /&gt;
		else&lt;br /&gt;
			if ($hasTexcoords)&lt;br /&gt;
				shaderFragment NoTextureMagic2_x&lt;br /&gt;
			endif&lt;br /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
			if ($transformNormals)		&lt;br /&gt;
				shaderFragment CreateReflectionVector2_x&lt;br /&gt;
				shaderFragment TexgenReflectionVector2_x&lt;br /&gt;
			endif&lt;br /&gt;
			&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
	endif&lt;br /&gt;
	&lt;br /&gt;
		&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define SWVSGhostPass()&lt;br /&gt;
&lt;br /&gt;
	pass&lt;br /&gt;
      &lt;br /&gt;
		depthTest true -enableDepthWrite true&lt;br /&gt;
	#	colorWriteEnable -red false -green false -blue false -alpha false		&lt;br /&gt;
		alphaBlend srcFactor(zero) add dstFactor(one)&lt;br /&gt;
&lt;br /&gt;
		alphaTest true 128&lt;br /&gt;
		alphaTestFunction acceptIfGreaterOrEqual&lt;br /&gt;
      &lt;br /&gt;
		shaderProgram -target vertexProgram -method link&lt;br /&gt;
			create BindsForSoftwareVSTransforms($doSkinning $doMorphing)&lt;br /&gt;
			create TransformFragments($doSkinning $stdMatReduceBoneWeights true $doMorphing $numPosMorphs $numNormMorphs false 2_x)&lt;br /&gt;
			shaderFragment NoTextureMagic2_x&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		stage&lt;br /&gt;
			texture $stdMatBaseTextureName&lt;br /&gt;
			textureBlend select(texture) select(texture)&lt;br /&gt;
			textureAddressing clamp clamp clamp&lt;br /&gt;
		end&lt;br /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
	end #end pass&lt;br /&gt;
	&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define CreateSimStandardMaterialSWVS()&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	material&lt;br /&gt;
&lt;br /&gt;
		setb alphaBlendingOn false&lt;br /&gt;
&lt;br /&gt;
      if (viewerRenderType = $kRenderTypeShadow)&lt;br /&gt;
         create SimShadowSWVS()&lt;br /&gt;
      else&lt;br /&gt;
         if (strcmp(&amp;quot;${stdMatAlphaBlendMode}&amp;quot;, &amp;quot;none&amp;quot;))&lt;br /&gt;
            setb alphaBlendingOn true&lt;br /&gt;
         endif&lt;br /&gt;
         &lt;br /&gt;
         if (numLightsOfType(${kShapeColorLight}) &amp;gt; 0)&lt;br /&gt;
            setb alphaBlendingOn true&lt;br /&gt;
         endif&lt;br /&gt;
         &lt;br /&gt;
         seti  layerNumber ($stdMatLayer	* 8	+ ($alphaBlendingOn ? 7 : 0))&lt;br /&gt;
   &lt;br /&gt;
         ##trace &amp;quot;Dx9 sim standard: $currentMaterialName, layer : $layerNumber alphaBlend: $alphaBlendingOn&amp;quot;&lt;br /&gt;
   &lt;br /&gt;
         shader -layer $layerNumber&lt;br /&gt;
   &lt;br /&gt;
            create SimMaterialSetup()&lt;br /&gt;
   &lt;br /&gt;
            if (numLightsOfType(${kShapeColorLight}) &amp;gt; 0)&lt;br /&gt;
               seti shapeColorLightCount (numLightsOfType(${kShapeColorLight}))&lt;br /&gt;
               ##trace &amp;quot;Sim standard, shape color count: $shapeColorLightCount&amp;quot;&lt;br /&gt;
               seti stdMatShapeColorIndex 0&lt;br /&gt;
            endif&lt;br /&gt;
               &lt;br /&gt;
            if ($stdMatShapeColorIndex = 0)&lt;br /&gt;
               set stdMatAlphaBlendMode blend&lt;br /&gt;
               ##trace &amp;quot;Sim standard with shapeColor active&amp;quot;&lt;br /&gt;
               create SWVSGhostPass()&lt;br /&gt;
            endif&lt;br /&gt;
   &lt;br /&gt;
            #trace &amp;quot;SimStandardDX9, tangents: $hasTangents&amp;quot;&lt;br /&gt;
   &lt;br /&gt;
            setb localNormalMappingFlag false&lt;br /&gt;
            seti perPixelLightCount 0 &lt;br /&gt;
               &lt;br /&gt;
            if ($stdMatNormalMapTextureEnabled)&lt;br /&gt;
               if ($hasTangents)&lt;br /&gt;
                  setb localNormalMappingFlag true&lt;br /&gt;
               endif&lt;br /&gt;
            endif&lt;br /&gt;
               &lt;br /&gt;
            pass&lt;br /&gt;
                        &lt;br /&gt;
               fillmode $stdMatFillMode&lt;br /&gt;
               &lt;br /&gt;
               #fillmode wireframe&lt;br /&gt;
               &lt;br /&gt;
               create NonStandardLighting()&lt;br /&gt;
   &lt;br /&gt;
               create StandardShaderFBAlphaState($stdMatAlphaBlendMode)&lt;br /&gt;
   &lt;br /&gt;
               shaderProgram -target vertexProgram -method link&lt;br /&gt;
                  create SimMaterialTransformSetupSWVS(false)&lt;br /&gt;
               end&lt;br /&gt;
               &lt;br /&gt;
               if ($stdMatBaseTextureEnabled)&lt;br /&gt;
                  stage&lt;br /&gt;
                     textureBlend multiplyScale2(texture diffuse) select(texture)&lt;br /&gt;
                     texture $stdMatBaseTextureName&lt;br /&gt;
                     textureAddressing clamp clamp clamp&lt;br /&gt;
                  end&lt;br /&gt;
               else&lt;br /&gt;
                  colorScalar $finalShaderDiffuse 1&lt;br /&gt;
                  stage&lt;br /&gt;
                     textureBlend multiplyScale2(colorScalar diffuse) select(colorScalar)&lt;br /&gt;
                  end&lt;br /&gt;
               endif&lt;br /&gt;
               &lt;br /&gt;
            end #end the pass&lt;br /&gt;
         end # end shader&lt;br /&gt;
         &lt;br /&gt;
         if ($appInDebugMode = false)&lt;br /&gt;
            shader -layer $layerNumber&lt;br /&gt;
               &lt;br /&gt;
               create SimMaterialSetup()&lt;br /&gt;
      &lt;br /&gt;
                  &lt;br /&gt;
               #trace &amp;quot;SimStandardDX9, tangents: $hasTangents&amp;quot;&lt;br /&gt;
      &lt;br /&gt;
               setb localNormalMappingFlag false&lt;br /&gt;
               seti perPixelLightCount 0 &lt;br /&gt;
                  &lt;br /&gt;
               if ($stdMatNormalMapTextureEnabled)&lt;br /&gt;
                  if ($hasTangents)&lt;br /&gt;
                     setb localNormalMappingFlag true&lt;br /&gt;
                  endif&lt;br /&gt;
               endif&lt;br /&gt;
                  &lt;br /&gt;
               pass&lt;br /&gt;
&lt;br /&gt;
                  create NonStandardLighting()&lt;br /&gt;
      &lt;br /&gt;
                  create StandardShaderFBAlphaState($stdMatAlphaBlendMode)&lt;br /&gt;
      &lt;br /&gt;
                  shaderProgram -target vertexProgram -method link&lt;br /&gt;
                     create SimMaterialTransformSetupSWVS(false)&lt;br /&gt;
                  end&lt;br /&gt;
                  &lt;br /&gt;
                  &lt;br /&gt;
                  colorScalar $finalShaderDiffuse 1&lt;br /&gt;
                  stage&lt;br /&gt;
                     textureBlend multiplyScale2(colorScalar diffuse) select(colorScalar)&lt;br /&gt;
                  end&lt;br /&gt;
                              &lt;br /&gt;
                  &lt;br /&gt;
               end #end the pass&lt;br /&gt;
            end # end shader&lt;br /&gt;
         endif # debug mode test&lt;br /&gt;
         &lt;br /&gt;
      endif #shadow or not&lt;br /&gt;
   end #end the material&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define SimShadowSWVS()&lt;br /&gt;
	shader&lt;br /&gt;
	&lt;br /&gt;
		validateRenderShaderContext -viewerRenderType $kRenderTypeShadow&lt;br /&gt;
&lt;br /&gt;
		create SimMaterialSetup()&lt;br /&gt;
&lt;br /&gt;
		pass&lt;br /&gt;
	&lt;br /&gt;
			shaderProgram -method link -target vertexProgram&lt;br /&gt;
				create BindsForSoftwareVSTransforms(true $doMorphing)&lt;br /&gt;
				create TransformFragments($doSkinning true true $doMorphing $numPosMorphs $numNormMorphs true 2_x)&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			colorScalar $stdMatShadowColor&lt;br /&gt;
         &lt;br /&gt;
			stage &lt;br /&gt;
            textureBlend select(colorScalar) select(colorScalar)&lt;br /&gt;
         end&lt;br /&gt;
		&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
	end&lt;br /&gt;
enddef&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	</feed>