Browse Source

Fixing alpha mask in toon town

JoshEngebretson 8 years ago
parent
commit
7634409906

+ 8 - 1
ToonTown/JavaScript/Resources/Materials/Optimized Leaf Material.material

@@ -1,14 +1,21 @@
 <?xml version="1.0"?>
 <material>
-	<technique name="Techniques/DiffAlphaMask.xml" quality="0" loddistance="0" />
+	<technique name="Techniques/Diff.xml" />
 	<texture unit="diffuse" name="Textures/diffuse.png" />
+	<shader psdefines="ALPHAMASK" />
 	<parameter name="UOffset" value="1 0 0 0" />
 	<parameter name="VOffset" value="0 1 0 0" />
 	<parameter name="MatDiffColor" value="1 1 1 1" />
 	<parameter name="MatEmissiveColor" value="0 0 0" />
 	<parameter name="MatEnvMapColor" value="1 1 1" />
 	<parameter name="MatSpecColor" value="0 0 0 1" />
+	<parameter name="Roughness" value="0.5" />
+	<parameter name="Metallic" value="0" />
 	<cull value="ccw" />
 	<shadowcull value="ccw" />
+	<fill value="solid" />
 	<depthbias constant="0" slopescaled="0" />
+	<alphatocoverage enable="false" />
+	<renderorder value="128" />
+	<occlusion enable="true" />
 </material>