瀏覽代碼

Set renderorder 0 to example alpha pass decal materials to make sure they render before e.g. particles. Closes #1862.

Lasse Öörni 8 年之前
父節點
當前提交
21ead269a4
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      bin/Data/Materials/UrhoDecal.xml
  2. 1 0
      bin/Data/Materials/UrhoDecalAlpha.xml

+ 1 - 0
bin/Data/Materials/UrhoDecal.xml

@@ -3,4 +3,5 @@
     <texture unit="diffuse" name="Textures/UrhoDecal.dds" />
     <texture unit="diffuse" name="Textures/UrhoDecal.dds" />
     <parameter name="MatDiffColor" value="1 1 0 1" />
     <parameter name="MatDiffColor" value="1 1 0 1" />
     <depthbias constant="-0.00001" slopescaled="0" />
     <depthbias constant="-0.00001" slopescaled="0" />
+    <renderorder value="0" />
 </material>
 </material>

+ 1 - 0
bin/Data/Materials/UrhoDecalAlpha.xml

@@ -3,4 +3,5 @@
     <texture unit="diffuse" name="Textures/UrhoDecalAlpha.dds" />
     <texture unit="diffuse" name="Textures/UrhoDecalAlpha.dds" />
     <parameter name="MatDiffColor" value="1 1 0 1" />
     <parameter name="MatDiffColor" value="1 1 0 1" />
     <depthbias constant="-0.00001" slopescaled="0" />
     <depthbias constant="-0.00001" slopescaled="0" />
+    <renderorder value="0" />
 </material>
 </material>