<?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=ShaderSims</id>
		<title>ShaderSims - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=ShaderSims"/>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;action=history"/>
		<updated>2026-07-15T10:39:33Z</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=ShaderSims&amp;diff=20273&amp;oldid=prev</id>
		<title>Niol: EP6-BV</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=20273&amp;oldid=prev"/>
				<updated>2007-09-07T12:15:40Z</updated>
		
		<summary type="html">&lt;p&gt;EP6-BV&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 12:15, 7 September 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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;EP5&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SS&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;EP6&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BV&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=ShaderSims&amp;diff=16183&amp;oldid=prev</id>
		<title>Niol: EP5-SS</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16183&amp;oldid=prev"/>
				<updated>2007-03-28T07:14:04Z</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 07:14, 28 March 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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=ShaderSims&amp;diff=16182&amp;oldid=prev</id>
		<title>Niol: EP4-PETS</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16182&amp;oldid=prev"/>
				<updated>2007-03-28T07:13:14Z</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 07:13, 28 March 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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 96:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 96:&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;	&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;	&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;	&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;	&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;		shader -layer (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;8 &lt;/del&gt;* &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7 &lt;/del&gt;+ &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7&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;		shader -layer (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;18 &lt;/ins&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;17 &lt;/ins&gt;+ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;17&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;			&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;			&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;			validateRenderShaderContext -vertexFormat position	0 required&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;			validateRenderShaderContext -vertexFormat position	0 required&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 317:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 317:&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;			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;			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;		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;		endif&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;		&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;		setb bViewerIsThumbnail (viewerRenderType = $kViewerRenderTypeFamilyThumbnail)			&amp;#160;  &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;					&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;					&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;		if ($useHWShader2Path)&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;		# we only want to render thumbnails in fixed function and we want to do two passes to correct alpha for the thumbnail&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;		if ($useHWShader2Path &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and not $bViewerIsThumbnail&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;			create CreateSimStandardMaterialDX9()&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;			create CreateSimStandardMaterialDX9()&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;		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;		endif&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 330:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 333:&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;		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;		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;		&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;		&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;		if ($useFixedFunctionPath or $useHWShader1Path)&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;		if ($useFixedFunctionPath or $useHWShader1Path &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or ($bViewerIsThumbnail and not $useSWVertexShaderPath)&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;			create CreateSimStandardMaterialFixedFunction()&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;			create CreateSimStandardMaterialFixedFunction()&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;		endif&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;		endif &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160;  &lt;/ins&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;&amp;#160;&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;/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;lt;&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;&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;	else&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;	else&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 407:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 409:&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;define SimStandardMaterial()&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;define SimStandardMaterial()&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;/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;/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;&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;&amp;#160;  &lt;/ins&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;&amp;#160;&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;/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;	create DetermineHardwareSupport()&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;	create DetermineHardwareSupport()&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;/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;/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;  setb bViewerIsThumbnail (viewerRenderType = $kViewerRenderTypeFamilyThumbnail)&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;	&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;	&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;	if ($useHWShader2Path)&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;	if ($useHWShader2Path &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and not $bViewerIsThumbnail&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;		create CreateSimStandardMaterialDX9()&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;		create CreateSimStandardMaterialDX9()&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;	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;	endif&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 421:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 423:&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;	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;	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;		&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;		&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;	if ($useFixedFunctionPath or $useHWShader1Path)&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;	if ($useFixedFunctionPath or $useHWShader1Path &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or ($bViewerIsThumbnail and not $useSWVertexShaderPath)&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;		create CreateSimStandardMaterialFixedFunction()&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;		create CreateSimStandardMaterialFixedFunction()&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;	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;	endif&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=ShaderSims&amp;diff=16181&amp;oldid=prev</id>
		<title>Niol: EP3-OFB</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16181&amp;oldid=prev"/>
				<updated>2007-03-28T07:11:40Z</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 07:11, 28 March 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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=ShaderSims&amp;diff=16180&amp;oldid=prev</id>
		<title>Niol: EP2-NL</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16180&amp;oldid=prev"/>
				<updated>2007-03-28T07:10:45Z</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 07:10, 28 March 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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;!-- diff cache key simswiki:diff:version:1.11a:oldid:16179:newid:16180 --&gt;
&lt;/table&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=ShaderSims&amp;diff=16179&amp;oldid=prev</id>
		<title>Niol: EP1-UNI</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16179&amp;oldid=prev"/>
				<updated>2007-03-28T07:09:19Z</updated>
		
		<summary type="html">&lt;p&gt;EP1-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 07:09, 28 March 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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;/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;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 534:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 534:&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; depthTest	true -enableDepthWrite false&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; depthTest	true -enableDepthWrite false&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; alphaTest $stdMatAlphaTestEnabled $stdMatAlphaRefValue&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; alphaTest $stdMatAlphaTestEnabled $stdMatAlphaRefValue&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;  alphaTestFunction acceptIfGreaterOrEqual&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;  elseif ($stdMatAlphaTestEnabled)&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; alphaTest true $stdMatAlphaRefValue&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;  alphaTestFunction acceptIfGreaterOrEqual&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;  alphaTestFunction acceptIfGreaterOrEqual&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;  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;  endif&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=ShaderSims&amp;diff=16178&amp;oldid=prev</id>
		<title>Niol: EP0-TS2</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=ShaderSims&amp;diff=16178&amp;oldid=prev"/>
				<updated>2007-03-28T07:08:28Z</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;
&lt;br /&gt;
EP0-TS2&lt;br /&gt;
0xCD7FE87A&lt;br /&gt;
0x1C0532FA&lt;br /&gt;
0xB8D92FFE&lt;br /&gt;
0xFF703EE0&lt;br /&gt;
# sims&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Shaders for the Sims themselves&lt;br /&gt;
#&lt;br /&gt;
# Most Sims shaders (currently) come from the Alias export.&lt;br /&gt;
# However, here are a few special ones.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A gray default shader for when we can't find one&lt;br /&gt;
&lt;br /&gt;
materialDefinition defaultSimsShader&lt;br /&gt;
   setDefinition Phong&lt;br /&gt;
   addParam stdMatDiffCoef (.5, .5, .6)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# contains the shader pre-create commands for all Sim materials&lt;br /&gt;
define SimsShaderPreCreate()&lt;br /&gt;
   preCreate -viewerRenderType $kRenderTypeNormal -viewerRenderType ($mirrorReflectionsEnabled ? $kRenderTypeMirror : $kRenderTypeNormal) -deformations&lt;br /&gt;
#&amp;lt;&lt;br /&gt;
   preCreate -lights directional 2&lt;br /&gt;
   preCreate -lights directional 2 point 1&lt;br /&gt;
   preCreate -lights directional 2 point 2&lt;br /&gt;
   preCreate -lights directional 2 point 3&lt;br /&gt;
   preCreate -lights directional 2 point 4&lt;br /&gt;
   preCreate -lights directional 2 point 5&lt;br /&gt;
   preCreate -lights directional 2 point 6&lt;br /&gt;
   preCreate -lights directional 2 point 1 spot 1&lt;br /&gt;
   preCreate -lights directional 2 spot  1&lt;br /&gt;
   preCreate -lights directional 5 environmentCube 1&lt;br /&gt;
#&amp;gt;&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# special layer for the censor shader. This ensures that the censor shader can&lt;br /&gt;
# be skipped during the censor render itself. The number is referred to from &lt;br /&gt;
# C++ code.&lt;br /&gt;
seti kCensorShaderLayer -1&lt;br /&gt;
&lt;br /&gt;
# material to copy from the censor texture to the view target&lt;br /&gt;
define CensorCompositingMaterial()&lt;br /&gt;
   material&lt;br /&gt;
      shader -layer ($kCensorShaderLayer)&lt;br /&gt;
         pass&lt;br /&gt;
            renderTarget viewerRenderTarget&lt;br /&gt;
          &lt;br /&gt;
            # vertex program            &lt;br /&gt;
            shaderProgram -target vertexProgram -method assemble&lt;br /&gt;
               shaderSource&lt;br /&gt;
                  vs_1_1&lt;br /&gt;
                  dcl_position v0&lt;br /&gt;
                  dcl_texcoord v1&lt;br /&gt;
                  &lt;br /&gt;
                  mov oPos, v0&lt;br /&gt;
                  mov oT0.xy, v1&lt;br /&gt;
                  &lt;br /&gt;
               endShaderSource&lt;br /&gt;
            end&lt;br /&gt;
        &lt;br /&gt;
            # pixel program&lt;br /&gt;
            stage&lt;br /&gt;
               texture &amp;quot;CensorTexture&amp;quot;&lt;br /&gt;
         &lt;br /&gt;
               textureFilterHint point point&lt;br /&gt;
               textureAddressing clamp clamp clamp&lt;br /&gt;
         &lt;br /&gt;
               textureBlend select(texture) select(texture)&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
materialDefinition CensorMaterial&lt;br /&gt;
   setDefinition CensorCompositingMaterial   &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define PlumbBobAnimatedColor()&lt;br /&gt;
	material&lt;br /&gt;
		attributes&lt;br /&gt;
			attribute myColor float3 (0, 1, 0)&lt;br /&gt;
			attribute myAlpha float1 0.843&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
		shader -layer (8 * 7 + 7)&lt;br /&gt;
			&lt;br /&gt;
			validateRenderShaderContext -vertexFormat position	0 required&lt;br /&gt;
			validateRenderShaderContext -vertexFormat normal	0 required&lt;br /&gt;
&lt;br /&gt;
			create DetermineHardwareSupport()&lt;br /&gt;
			create SetupCommonHWShaderVariablesAndPredicates()&lt;br /&gt;
			&lt;br /&gt;
&lt;br /&gt;
			if ($useFixedFunctionPath)&lt;br /&gt;
				pass -fixedFunction&lt;br /&gt;
					create LightingStates()&lt;br /&gt;
					create AttenuatedMatCoef(0.25)&lt;br /&gt;
					fillmode $stdMatFillMode&lt;br /&gt;
&lt;br /&gt;
					depthTest true -enableDepthWrite false&lt;br /&gt;
					alphaBlend srcFactor(srcAlpha) add dstFactor(invSrcAlpha)&lt;br /&gt;
&lt;br /&gt;
					stage&lt;br /&gt;
						colorScalar @myColor @myAlpha&lt;br /&gt;
						textureBlend multiplyScale4(diffuse colorScalar) multiply(diffuse colorScalar)&lt;br /&gt;
					end &lt;br /&gt;
					&lt;br /&gt;
				end # pass&lt;br /&gt;
			else&lt;br /&gt;
&lt;br /&gt;
				# empircally, there are NO lights associated with the plumb bob, so I won't bother to compute them.&lt;br /&gt;
				pass&lt;br /&gt;
				&lt;br /&gt;
					shaderProgram -target vertexProgram -method link&lt;br /&gt;
						create BindsForHardwareVS1Transforms(false false)&lt;br /&gt;
						shaderFragment TransformPositionRigidNoLighting1_1&lt;br /&gt;
						shaderFragment NoLighting1_1&lt;br /&gt;
					end&lt;br /&gt;
					&lt;br /&gt;
					depthTest true -enableDepthWrite false&lt;br /&gt;
					alphaBlend srcFactor(srcAlpha) add dstFactor(invSrcAlpha)&lt;br /&gt;
&lt;br /&gt;
					stage&lt;br /&gt;
						colorScalar @myColor @myAlpha&lt;br /&gt;
						textureBlend multiplyScale4(diffuse colorScalar) select(colorScalar)&lt;br /&gt;
					end  #stage&lt;br /&gt;
					&lt;br /&gt;
				end # pass&lt;br /&gt;
			endif&lt;br /&gt;
        &lt;br /&gt;
         &lt;br /&gt;
         &lt;br /&gt;
		end # shader&lt;br /&gt;
	end #material&lt;br /&gt;
   &lt;br /&gt;
enddef&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# New material for use of new plumb bob&lt;br /&gt;
materialDefinition plumbBob_core&lt;br /&gt;
   setDefinition PlumbBobAnimatedColor&lt;br /&gt;
   addParam      stdMatDiffCoef (1,1,1,1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#########################################################&lt;br /&gt;
# Sims Shaders&lt;br /&gt;
#&lt;br /&gt;
# These include a version of the standard material &lt;br /&gt;
# (SimStandardMaterial) that is used for things&lt;br /&gt;
# such as hair and faces, and SimSkin, which is&lt;br /&gt;
# used for a body with composited textures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Any mesh subsets that use composited textures must be use the following material&lt;br /&gt;
# The aliasshader command tells the mel parser that SimSkin has the same parameters as StandardMaterial&lt;br /&gt;
&lt;br /&gt;
# if compositing is to be used, these are the names of the composited textures&lt;br /&gt;
set   compositeBaseTextureName   &amp;quot;&amp;quot;&lt;br /&gt;
set   compositeBaseTextureParam  &amp;quot;&amp;quot;&lt;br /&gt;
set   compositeSpecTextureName   &amp;quot;&amp;quot;&lt;br /&gt;
set   compositeSpecTextureParam  &amp;quot;&amp;quot;&lt;br /&gt;
set   compositeBumpTextureName   &amp;quot;&amp;quot;&lt;br /&gt;
set   compositeBumpTextureParam  &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# allow at most 8 base (diffuse) textures to be composited&lt;br /&gt;
set   baseTexture0 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture1 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture2 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture3 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture4 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture5 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture6 &amp;quot;&amp;quot;&lt;br /&gt;
set   baseTexture7 &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# allow at most 8 specular mask textures to be composited&lt;br /&gt;
set   specTexture0 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture1 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture2 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture3 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture4 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture5 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture6 &amp;quot;&amp;quot;&lt;br /&gt;
set   specTexture7 &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# allow at most 8 normal map textures to be composited&lt;br /&gt;
set   bumpTexture0 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture1 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture2 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture3 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture4 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture5 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture6 &amp;quot;&amp;quot;&lt;br /&gt;
set   bumpTexture7 &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the number of textures to composite&lt;br /&gt;
set   numTexturesToComposite  0&lt;br /&gt;
&lt;br /&gt;
#beginshader SimSkin&lt;br /&gt;
#description The basic material for defining a material that will be composited with Skin.&lt;br /&gt;
#extraparam int  stdMatLayer 0 -32 32 ; attrdescription Layer for drawing, use even for opaque and odd for translucent&lt;br /&gt;
#extraparam enum stdMatAlphaBlendMode  none   (none)   ; Never blended&lt;br /&gt;
#endshader SimSkin&lt;br /&gt;
&lt;br /&gt;
# generic overall hint (ie, in game)&lt;br /&gt;
setb useCPUCompositedTextures true&lt;br /&gt;
&lt;br /&gt;
include DX9SimMaterials.matShad&lt;br /&gt;
include DX8SimMaterials.matShad&lt;br /&gt;
include DX7SimMaterials.matShad&lt;br /&gt;
include SWVSSimMaterials.matShad&lt;br /&gt;
&lt;br /&gt;
# face materials set this to 'true' so that the eyes can move.&lt;br /&gt;
setb eyeGizmoEnable false&lt;br /&gt;
&lt;br /&gt;
# game will set this if in CAS, so all sim materials can composite on the fly.&lt;br /&gt;
setb simSkinFlag false&lt;br /&gt;
setb contentViewer false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This is a fudge factor, what this does is cover up a boo-boo I made.&lt;br /&gt;
# the lighting.txt file was 'tuned' using a DX7 sim material with a 0.4 multiplier, instead of 0.5 (x2 on the blender side to get back to 1.0)&lt;br /&gt;
# what this lead to was a desired look on dx7 cards, but dx8 and dx7 were washed out, being 20% brighter.&lt;br /&gt;
# so this fudge factor scales sims in dx8 and dx9 'down' by this amount to bring them into line with the &amp;quot;broken&amp;quot; dx7.&lt;br /&gt;
# for now, this is a temp fix for E3 2004, but this might live on forever. &lt;br /&gt;
# in a perfect world, this factor will be removed and the game lighting 're tuned' to use the unscaled lighting.&lt;br /&gt;
# this will probably need to happen anyway, with new materials and lighting models planned in the expansion packs.&lt;br /&gt;
&lt;br /&gt;
setf simMaterialLightingScale 0.8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define SimSkin()&lt;br /&gt;
&lt;br /&gt;
	material&lt;br /&gt;
&lt;br /&gt;
	setb simSkinFlag true&lt;br /&gt;
&lt;br /&gt;
	#trace &amp;quot;$currentMaterialName simskin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	setb hasSecondUV (hasVertexFormat(texcoord, 1))&lt;br /&gt;
	#trace &amp;quot;SIMSKIN $currentMaterialName   UV2: $hasSecondUV Eye: $eyeGizmoEnable&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
		&lt;br /&gt;
		# if it has eyes, then it's a face too.&lt;br /&gt;
		# .x = U shift (up/down) of eye, y = V shift (left/right) of eye, z = left eye stretch, w = right eye stretch&lt;br /&gt;
		# might be switched to a 'look at' vector, so the VS can compute the offsets directly.&lt;br /&gt;
&lt;br /&gt;
   # body may stil get these attributes, but the VS attached to the material only looks at these if a 2nd UV exists and &lt;br /&gt;
   # eyeGizmoEnable is true.&lt;br /&gt;
   &lt;br /&gt;
	attributes&lt;br /&gt;
      attribute eyeDirection float2 (0, 0)&lt;br /&gt;
		attribute l_eyeStretch float1 (0)&lt;br /&gt;
		attribute r_eyeStretch float1 (0)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	create SimsShaderPreCreate()    &lt;br /&gt;
	create DetermineHardwareSupport()&lt;br /&gt;
&lt;br /&gt;
	# always composite on the CPU for anything other than dx9.&lt;br /&gt;
	#if ($useSWVertexShaderPath or $useFixedFunctionPath or $useHWShader1Path)&lt;br /&gt;
	#	#trace &amp;quot;Using CPU composited textures&amp;quot;&lt;br /&gt;
	#	setb useCPUCompositedTextures true&lt;br /&gt;
	#endif&lt;br /&gt;
			&lt;br /&gt;
	&lt;br /&gt;
	#if ($useCPUCompositedTextures)&lt;br /&gt;
&lt;br /&gt;
		# pass through base texture name&lt;br /&gt;
		&lt;br /&gt;
		if ($numTexturesToComposite)&lt;br /&gt;
			if (strcmp(&amp;quot;${compositeBaseTextureName}&amp;quot;, &amp;quot;&amp;quot;) != 0)&lt;br /&gt;
				set stdMatBaseTextureName $compositeBaseTextureName&lt;br /&gt;
				set stdMatBaseTextureEnabled true&lt;br /&gt;
			else&lt;br /&gt;
				set stdMatBaseTextureEnabled false&lt;br /&gt;
			endif&lt;br /&gt;
		endif&lt;br /&gt;
      &lt;br /&gt;
		&lt;br /&gt;
		# do nothing is stdMatBaseTextureName is non-null, then just leave it alone...&lt;br /&gt;
		# this is contentViewer case.&lt;br /&gt;
&lt;br /&gt;
		&lt;br /&gt;
								&lt;br /&gt;
		if ($useHWShader2Path and $bumpMapping)&lt;br /&gt;
			if (strcmp(&amp;quot;${compositeBumpTextureName}&amp;quot;, &amp;quot;&amp;quot;) != 0)&lt;br /&gt;
				set stdMatNormalMapTextureName $compositeBumpTextureName&lt;br /&gt;
				setb stdMatNormalMapTextureEnabled true&lt;br /&gt;
			else&lt;br /&gt;
				# if this is null, then make sure stuff is turned off&lt;br /&gt;
				if (strcmp(&amp;quot;${stdMatNormalMapTextureName}&amp;quot;, &amp;quot;&amp;quot;) = 0)&lt;br /&gt;
					setb stdMatNormalMapTextureEnabled false&lt;br /&gt;
				endif&lt;br /&gt;
				&lt;br /&gt;
				#otherwise, leave everything alone, it's a non-compositing simSkin&lt;br /&gt;
				&lt;br /&gt;
			endif&lt;br /&gt;
		endif&lt;br /&gt;
					&lt;br /&gt;
		if ($useHWShader2Path)&lt;br /&gt;
			create CreateSimStandardMaterialDX9()&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
	#	if ($useHWShader1Path)&lt;br /&gt;
	#		create CreateSimStandardMaterialDX8()&lt;br /&gt;
	#	endif&lt;br /&gt;
		&lt;br /&gt;
		if ($useSWVertexShaderPath)&lt;br /&gt;
			create CreateSimStandardMaterialSWVS()&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
		if ($useFixedFunctionPath or $useHWShader1Path)&lt;br /&gt;
			create CreateSimStandardMaterialFixedFunction()&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
	#&amp;lt;&lt;br /&gt;
	else&lt;br /&gt;
&lt;br /&gt;
		&lt;br /&gt;
		# backup case for Content viewer, which can have no compositing.&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${baseTexture0}&amp;quot;,&amp;quot;&amp;quot;) = 0)&lt;br /&gt;
		    # if base is null, then hopefull the stdMatBase/NormalMap names are OK, so send it to SimStandard, which has no layering.&lt;br /&gt;
		    setb contentViewer true&lt;br /&gt;
			create SimStandardMaterial()&lt;br /&gt;
		else&lt;br /&gt;
		&lt;br /&gt;
			if ($useHWShader2Path)&lt;br /&gt;
				#trace &amp;quot;HW2 GPU COMPOSITE: $currentMaterialName&amp;quot;&lt;br /&gt;
				create DX9SimSkinCompositingMaterial()&lt;br /&gt;
			endif&lt;br /&gt;
			&lt;br /&gt;
			&lt;br /&gt;
			if ($useHWShader1Path)&lt;br /&gt;
				#trace &amp;quot;HW1: $currentMaterialName&amp;quot;&lt;br /&gt;
				create CreateSimSkinPerPixelCompositingMaterialPS1()&lt;br /&gt;
			endif&lt;br /&gt;
					&lt;br /&gt;
			&lt;br /&gt;
			if ($useFixedFunctionPath)&lt;br /&gt;
				create CreateSimPerPixelCompositingMaterialFixedFunction()&lt;br /&gt;
			endif&lt;br /&gt;
			&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
	&lt;br /&gt;
	endif&lt;br /&gt;
	#&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#set up default params&lt;br /&gt;
setb simHairFlag false&lt;br /&gt;
&lt;br /&gt;
define SimHair()&lt;br /&gt;
   setb simHairFlag true&lt;br /&gt;
	&lt;br /&gt;
	if (strcmp(&amp;quot;${baseTexture0}&amp;quot;,&amp;quot;&amp;quot;) = 0 or $numTexturesToComposite = 0)&lt;br /&gt;
		create SimStandardMaterial()&lt;br /&gt;
	else&lt;br /&gt;
		create SimSkin()&lt;br /&gt;
	endif&lt;br /&gt;
	&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Any Sim materials (clothes/skin) that do not use composited textures use&lt;br /&gt;
# the following material. &lt;br /&gt;
&lt;br /&gt;
#beginshader SimStandardMaterial&lt;br /&gt;
#description Similar to standard material, but used on Sims themselves (fewer options).&lt;br /&gt;
#extraparam enum stdMatAlphaBlendMode  none   (none blend additive)   ; The transparency mode.&lt;br /&gt;
#extraparam bool stdMatAlphaTestEnabled 0        ; Can drop pixels, like a 'mask'&lt;br /&gt;
#extraparam int stdMatAlphaRefValue 127 0 255    ; which alpha value to keep a pixel, 255 is 'white'.&lt;br /&gt;
#extraparam int  stdMatLayer 0 -32 32 ; attrdescription Layer for drawing, use even for opaque and odd for translucent&lt;br /&gt;
#extraparam enum stdMatEnvCubeMode  none  (none reflection)  ; add a reflection layer to this material, will not propogate to SimSkin.&lt;br /&gt;
#endshader SimStandardMaterial&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define SimStandardMaterial()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	create DetermineHardwareSupport()&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	if ($useHWShader2Path)&lt;br /&gt;
		create CreateSimStandardMaterialDX9()&lt;br /&gt;
	endif&lt;br /&gt;
		&lt;br /&gt;
&lt;br /&gt;
   if ($useSWVertexShaderPath)&lt;br /&gt;
		create CreateSimStandardMaterialSWVS()&lt;br /&gt;
	endif&lt;br /&gt;
		&lt;br /&gt;
	if ($useFixedFunctionPath or $useHWShader1Path)&lt;br /&gt;
		create CreateSimStandardMaterialFixedFunction()&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 SimMaterialSetup()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	validateRenderShaderContext -vertexFormat position	0 required&lt;br /&gt;
	validateRenderShaderContext -vertexFormat normal	0 required&lt;br /&gt;
	validateRenderShaderContext -vertexFormat texcoord	0 required&lt;br /&gt;
&lt;br /&gt;
   # no sim material can have specular, since they might diverse and cause seams.&lt;br /&gt;
   setf stdMatSpecPower 0&lt;br /&gt;
   &lt;br /&gt;
	seti lightingMode $kNoLighting     &lt;br /&gt;
&lt;br /&gt;
	create SetupCommonHWShaderVariablesAndPredicates()&lt;br /&gt;
&lt;br /&gt;
	if (numLightsOfType(${kShapeColorLight}) &amp;gt; 0 ) &lt;br /&gt;
		seti stdMatShapeColorIndex 0&lt;br /&gt;
		set stdMatAlphaBlendMode blend&lt;br /&gt;
	endif&lt;br /&gt;
		&lt;br /&gt;
	#trace &amp;quot;Light counts: DISTANT: $distantLightCount, POINT: $pointLightCount, SPOT $spotLightCount&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	create BumpTextureCount()&lt;br /&gt;
&lt;br /&gt;
	if ($stdMatNormalMapTextureEnabled = false)&lt;br /&gt;
		seti bumpTextureCount 0&lt;br /&gt;
	endif&lt;br /&gt;
	&lt;br /&gt;
   &lt;br /&gt;
	#trace &amp;quot;Bump texture count: 	$bumpTextureCount&amp;quot;&lt;br /&gt;
	#trace &amp;quot;ShapeColor Index for this Sim Material is: $stdMatShapeColorIndex&amp;quot;&lt;br /&gt;
   &lt;br /&gt;
   create TestForEyeMotion()&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;
define BumpTextureCount()&lt;br /&gt;
&lt;br /&gt;
	seti bumpTextureCount 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	if ($bumpMapping)&lt;br /&gt;
	&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture0}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture1}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture2}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture3}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture4}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture5}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture6}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
&lt;br /&gt;
		if (strcmp(&amp;quot;${bumpTexture7}&amp;quot;,&amp;quot;&amp;quot;)!=0)&lt;br /&gt;
			seti bumpTextureCount ($bumpTextureCount +1)&lt;br /&gt;
		endif&lt;br /&gt;
		&lt;br /&gt;
	endif&lt;br /&gt;
&lt;br /&gt;
	setb  hasTangents (hasVertexFormat(tangent,0))&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#==============================================================================&lt;br /&gt;
# Macro	for	setting	alpha blending and alpha test state	for sim hair materials.&lt;br /&gt;
define SimHairAlphaState(alphaBlendMode)   &lt;br /&gt;
   #trace &amp;quot;SimHairAlphaState: $currentMaterialName, Alpha Blending Mode: &amp;amp;{alphaBlendMode}&amp;quot;&lt;br /&gt;
   if (strcmp(&amp;quot;&amp;amp;{alphaBlendMode}&amp;quot;, &amp;quot;blend&amp;quot;) = 0)&lt;br /&gt;
	  alphaBlend srcFactor(srcAlpha) add dstFactor(invSrcAlpha)&lt;br /&gt;
	  depthTest	true -enableDepthWrite true&lt;br /&gt;
	  alphaTest true 60	 	 &lt;br /&gt;
     alphaTestFunction acceptIfGreater	&lt;br /&gt;
   elseif (strcmp(&amp;quot;&amp;amp;{alphaBlendMode}&amp;quot;, &amp;quot;additive&amp;quot;) = 0)&lt;br /&gt;
     alphaBlend srcFactor(srcAlpha) add dstFactor(one)&lt;br /&gt;
	  depthTest	true -enableDepthWrite false&lt;br /&gt;
	  alphaTest $stdMatAlphaTestEnabled $stdMatAlphaRefValue&lt;br /&gt;
     alphaTestFunction acceptIfGreaterOrEqual&lt;br /&gt;
   endif&lt;br /&gt;
enddef&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Niol</name></author>	</entry>

	</feed>