Browse Source

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

Lasse Öörni 8 years ago
parent
commit
21ead269a4
2 changed files with 2 additions and 0 deletions
  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" />
     <parameter name="MatDiffColor" value="1 1 0 1" />
     <depthbias constant="-0.00001" slopescaled="0" />
+    <renderorder value="0" />
 </material>

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

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